diff options
Diffstat (limited to 'sys/arch/sgi/dev/if_mec.c')
-rw-r--r-- | sys/arch/sgi/dev/if_mec.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/sys/arch/sgi/dev/if_mec.c b/sys/arch/sgi/dev/if_mec.c index 3db7d5a2992..ec7471cbeef 100644 --- a/sys/arch/sgi/dev/if_mec.c +++ b/sys/arch/sgi/dev/if_mec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mec.c,v 1.1 2004/08/10 07:30:57 mickey Exp $ */ +/* $OpenBSD: if_mec.c,v 1.2 2004/08/10 13:47:45 pefo Exp $ */ /* $NetBSD: if_mec_mace.c,v 1.5 2004/08/01 06:36:36 tsutsui Exp $ */ /* @@ -106,8 +106,6 @@ #include <mips64/arcbios.h> #include <sgi/dev/if_mecreg.h> -#define MEC_DEBUG - #ifdef MEC_DEBUG #define MEC_DEBUG_RESET 0x01 #define MEC_DEBUG_START 0x02 @@ -334,8 +332,6 @@ void mec_statchg(struct device *); void mec_mediastatus(struct ifnet *, struct ifmediareq *); int mec_mediachange(struct ifnet *); -static void enaddr_aton(const char *, uint8_t *); - int mec_init(struct ifnet * ifp); void mec_start(struct ifnet *); void mec_watchdog(struct ifnet *); @@ -643,39 +639,6 @@ mec_mediachange(struct ifnet *ifp) return mii_mediachg(&sc->sc_mii); } -/* - * XXX - * maybe this function should be moved to common part - * (sgimips/machdep.c or elsewhere) for all on-board network devices. - */ -static void -enaddr_aton(const char *str, uint8_t *eaddr) -{ - int i; - char c; - - for (i = 0; i < ETHER_ADDR_LEN; i++) { - if (*str == ':') - str++; - - c = *str++; - if ('0' <= c && c <= '9') - eaddr[i] = (c - '0'); - else if ('A' <= c && c <= 'F') - eaddr[i] = c + 10 - 'A'; - else if ('a' <= c && c <= 'f') - eaddr[i] = c + 10 - 'a'; - - c = *str++; - if ('0' <= c && c <= '9') - eaddr[i] = (eaddr[i] << 4) | (c - '0'); - else if ('A' <= c && c <= 'F') - eaddr[i] = (eaddr[i] << 4) | (c + 10 - 'A'); - else if ('a' <= c && c <= 'f') - eaddr[i] = (eaddr[i] << 4) | (c + 10 - 'a'); - } -} - int mec_init(struct ifnet *ifp) { |