diff options
author | 2007-10-20 18:46:21 +0000 | |
---|---|---|
committer | 2007-10-20 18:46:21 +0000 | |
commit | 1ead1c58b1935b53ad71cf350d187e1d112ff238 (patch) | |
tree | ebc018468e64f0a52bfbfa34b2763353b98c8553 | |
parent | pull in exname() changes from ragge's repo. we're now back in sync (diff) | |
download | wireguard-openbsd-1ead1c58b1935b53ad71cf350d187e1d112ff238.tar.xz wireguard-openbsd-1ead1c58b1935b53ad71cf350d187e1d112ff238.zip |
Move a few more definitions to pcf8584var.h. Needed for SUNW,envctrl and
SUNW,envctrltwo support.
ok deraadt@
-rw-r--r-- | sys/dev/ic/pcf8584.c | 7 | ||||
-rw-r--r-- | sys/dev/ic/pcf8584var.h | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/ic/pcf8584.c b/sys/dev/ic/pcf8584.c index a428effeaec..8710cc07723 100644 --- a/sys/dev/ic/pcf8584.c +++ b/sys/dev/ic/pcf8584.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcf8584.c,v 1.8 2007/05/21 03:11:11 jsg Exp $ */ +/* $OpenBSD: pcf8584.c,v 1.9 2007/10/20 18:46:21 kettenis Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -60,11 +60,6 @@ #define PCF_STAT_STS (1<<5) #define PCF_STAT_PIN (1<<7) -#define PCF_FREQ_90 0x00 /* 90 kHz */ -#define PCF_FREQ_45 0x01 /* 45 kHz */ -#define PCF_FREQ_11 0x02 /* 11 kHz */ -#define PCF_FREQ_1_5 0x03 /* 1.5 kHz */ - struct cfdriver pcfiic_cd = { NULL, "pcfiic", DV_DULL }; diff --git a/sys/dev/ic/pcf8584var.h b/sys/dev/ic/pcf8584var.h index 95cbbb552d0..03a6d6f66d5 100644 --- a/sys/dev/ic/pcf8584var.h +++ b/sys/dev/ic/pcf8584var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcf8584var.h,v 1.4 2007/05/21 03:11:11 jsg Exp $ */ +/* $OpenBSD: pcf8584var.h,v 1.5 2007/10/20 18:46:21 kettenis Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -40,6 +40,12 @@ struct pcfiic_softc { #define PCF_CLOCK_8 0x18 /* 8 MHz */ #define PCF_CLOCK_12 0x1c /* 12 MHz */ +/* SCL frequency settings */ +#define PCF_FREQ_90 0x00 /* 90 kHz */ +#define PCF_FREQ_45 0x01 /* 45 kHz */ +#define PCF_FREQ_11 0x02 /* 11 kHz */ +#define PCF_FREQ_1_5 0x03 /* 1.5 kHz */ + void pcfiic_attach(struct pcfiic_softc *, i2c_addr_t, u_int8_t, int, void (*)(struct device *, struct i2cbus_attach_args *, void *), void *); |