summaryrefslogtreecommitdiffstats
path: root/sys/dev/pcic/i82365var.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-11-30 23:30:47 +0000
committerimp <imp@FreeBSD.org>2000-11-30 23:30:47 +0000
commitca6ea62f39d25c60343185b49f7e6c655247720c (patch)
treef305583137c1788a72811e4923ae8f2098bbb6a8 /sys/dev/pcic/i82365var.h
parent0b2373aa5cf1a6b78b59d24c40bfd4ea7e8b3b12 (diff)
downloadFreeBSD-src-ca6ea62f39d25c60343185b49f7e6c655247720c.zip
FreeBSD-src-ca6ea62f39d25c60343185b49f7e6c655247720c.tar.gz
Kill #define of DETACH_FORCE since it is now in card_if.m
Diffstat (limited to 'sys/dev/pcic/i82365var.h')
-rw-r--r--sys/dev/pcic/i82365var.h36
1 files changed, 2 insertions, 34 deletions
diff --git a/sys/dev/pcic/i82365var.h b/sys/dev/pcic/i82365var.h
index 249398e..1b6252f 100644
--- a/sys/dev/pcic/i82365var.h
+++ b/sys/dev/pcic/i82365var.h
@@ -136,40 +136,8 @@ char *pcic_vendor_to_string(int);
int pcic_attach(device_t dev);
-#if 0
-
-static __inline int pcic_read(struct pcic_handle *, int);
-static __inline int
-pcic_read(h, idx)
- struct pcic_handle *h;
- int idx;
-{
- if (idx != -1)
- bus_space_write_1(h->sc->iot, h->sc->ioh, PCIC_REG_INDEX,
- h->sock + idx);
- return (bus_space_read_1(h->sc->iot, h->sc->ioh, PCIC_REG_DATA));
-}
-
-static __inline void pcic_write(struct pcic_handle *, int, int);
-static __inline void
-pcic_write(h, idx, data)
- struct pcic_handle *h;
- int idx;
- int data;
-{
- if (idx != -1)
- bus_space_write_1(h->sc->iot, h->sc->ioh, PCIC_REG_INDEX,
- h->sock + idx);
- bus_space_write_1(h->sc->iot, h->sc->ioh, PCIC_REG_DATA, (data));
-}
-#else
-#define pcic_read(h, idx) \
- (*(h)->ph_read)((h), (idx))
-
-#define pcic_write(h, idx, data) \
- (*(h)->ph_write)((h), (idx), (data))
-
-#endif
+#define pcic_read(h, idx) (*(h)->ph_read)((h), (idx))
+#define pcic_write(h, idx, data) (*(h)->ph_write)((h), (idx), (data))
/*
* bus/device/etc routines
OpenPOWER on IntegriCloud