From fc2f60400f2eeb5b4d5322ee9d0bd0b218225fe4 Mon Sep 17 00:00:00 2001 From: fjoe Date: Fri, 24 Jan 2003 01:32:20 +0000 Subject: - add support for IPX (tested with mount -t nwfs and mars_nwe), IP fast forwarding, SIOCGIFADDR, setting hardware address (not currently enabled in cm driver), multicasts (experimental) - add ARC_MAX_DATA, use IF_HANDOFF, remove arc_sprintf() and some unused variables - if_simloop logic is made more similar to ethernet - drop not ours packets early (if we are not in promiscous mode) Submitted by: mark tinguely (partially) --- sys/dev/cm/smc90cx6.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'sys/dev/cm') diff --git a/sys/dev/cm/smc90cx6.c b/sys/dev/cm/smc90cx6.c index 56f10b2..df4c3e7 100644 --- a/sys/dev/cm/smc90cx6.c +++ b/sys/dev/cm/smc90cx6.c @@ -44,7 +44,7 @@ /* #define CMSOFTCOPY */ #define CMRETRANSMIT /**/ -#undef CM_DEBUG +/* #define CM_DEBUG */ #include #include @@ -346,7 +346,7 @@ cm_attach(sc, unit) #endif } - if_printf(ifp, "link addr 0x%02x(%d)\n", linkaddress, linkaddress); + if_printf(ifp, "link addr 0x%02x (%d)\n", linkaddress, linkaddress); return 0; } @@ -531,7 +531,7 @@ cm_start(ifp) if (m->m_len < 2) m = m_pullup(m, 2); #endif - cm_ram_ptr = buffer*512; + cm_ram_ptr = buffer * 512; if (m == 0) return; @@ -666,7 +666,7 @@ cm_srint(vsc) * (2*sizeof(ulong) - CM_HDRNEWLEN)), packet type dependent. */ - cm_ram_ptr = buffer*512; + cm_ram_ptr = buffer * 512; offset = GETMEM(cm_ram_ptr + 2); if (offset) len = 256 - offset; @@ -844,7 +844,7 @@ cmintr(arg) return; do { -#if defined(CM_DEBUG) && (CM_DEBUG>1) +#if defined(CM_DEBUG) && (CM_DEBUG > 1) if_printf(ifp, "intr: status 0x%02x, intmask 0x%02x\n", isr, sc->sc_intmask); #endif @@ -905,7 +905,7 @@ cmintr(arg) buffer = sc->sc_rx_act; /* look if buffer is marked invalid: */ - if (GETMEM(buffer*512) == 0) { + if (GETMEM(buffer * 512) == 0) { /* * invalid marked buffer (or illegally * configured sender) @@ -959,7 +959,7 @@ cmintr(arg) isr = GETREG(CMSTAT); maskedisr = isr & sc->sc_intmask; } while (maskedisr); -#if defined(CM_DEBUG) && (CM_DEBUG>1) +#if defined(CM_DEBUG) && (CM_DEBUG > 1) if_printf(ifp, "intr (exit): status 0x%02x, intmask 0x%02x\n", isr, sc->sc_intmask); #endif @@ -1008,6 +1008,7 @@ cm_ioctl(ifp, command, data) switch (command) { case SIOCSIFADDR: + case SIOCGIFADDR: case SIOCADDMULTI: case SIOCDELMULTI: case SIOCSIFMTU: -- cgit v1.1