diff options
author | marcel <marcel@FreeBSD.org> | 2003-02-23 03:39:22 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-02-23 03:39:22 +0000 |
commit | 3f47a37129a77e7545b41259b2b2e5ed687fde9c (patch) | |
tree | 1e3b1968a36273e93db209bfee8dfeceab26da46 /sys/dev | |
parent | add44bfbad14aeaf794875f6c7db1af3319eb365 (diff) | |
download | FreeBSD-src-3f47a37129a77e7545b41259b2b2e5ed687fde9c.zip FreeBSD-src-3f47a37129a77e7545b41259b2b2e5ed687fde9c.tar.gz |
Fix compilation on non-i386 machines. Inconsistent conditional
compilation yielded definitions that we're used.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ep/if_ep_isa.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ep/if_ep_isa.c b/sys/dev/ep/if_ep_isa.c index bec4045..f10ae13 100644 --- a/sys/dev/ep/if_ep_isa.c +++ b/sys/dev/ep/if_ep_isa.c @@ -55,9 +55,8 @@ #include <i386/isa/elink.h> #endif -static u_int16_t get_eeprom_data (int, int); - #ifdef __i386__ +static u_int16_t get_eeprom_data (int, int); static void ep_isa_identify (driver_t *, device_t); #endif static int ep_isa_probe (device_t); @@ -80,6 +79,7 @@ const char * ep_isa_match_id (u_int32_t, struct isa_ident *); #define ISA_ID_3C569B_TPO 0x506d5695 #endif +#ifdef __i386__ static struct isa_ident ep_isa_devs[] = { { ISA_ID_3C509_TP, "3Com 3C509-TP EtherLink III" }, { ISA_ID_3C509_BNC, "3Com 3C509-BNC EtherLink III" }, @@ -92,6 +92,7 @@ static struct isa_ident ep_isa_devs[] = { #endif { 0, NULL }, }; +#endif static struct isa_pnp_id ep_ids[] = { { 0x90506d50, "3Com 3C509B-TP EtherLink III (PnP)" }, /* TCM5090 */ @@ -115,7 +116,7 @@ static struct isa_pnp_id ep_ids[] = { * the AX register which is conveniently returned to us by inb(). Hence; we * read 16 times getting one bit of data with each read. */ - +#ifdef __i386__ static u_int16_t get_eeprom_data(id_port, offset) int id_port; @@ -132,6 +133,7 @@ get_eeprom_data(id_port, offset) } return (data); } +#endif const char * ep_isa_match_id (id, isa_devs) |