diff options
author | nyan <nyan@FreeBSD.org> | 2001-07-04 13:00:21 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2001-07-04 13:00:21 +0000 |
commit | 497620bac5a53c422f1848241d5df96e19c8f71e (patch) | |
tree | 9e2aa991c3b2c116dea316c8fd95067921cb43c2 /sys/dev/lnc/if_lnc_isa.c | |
parent | 53b01bc71cc702ed3a886222afd9162fc7067c20 (diff) | |
download | FreeBSD-src-497620bac5a53c422f1848241d5df96e19c8f71e.zip FreeBSD-src-497620bac5a53c422f1848241d5df96e19c8f71e.tar.gz |
- Don't overwrite inb, inw and outw.
- Move the lance_probe function to if_lnc.c.
- Support C-NET(98)S again.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) and nyan
No response from: Paul Richards
Diffstat (limited to 'sys/dev/lnc/if_lnc_isa.c')
-rw-r--r-- | sys/dev/lnc/if_lnc_isa.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sys/dev/lnc/if_lnc_isa.c b/sys/dev/lnc/if_lnc_isa.c index a82ff5a..c973494 100644 --- a/sys/dev/lnc/if_lnc_isa.c +++ b/sys/dev/lnc/if_lnc_isa.c @@ -37,8 +37,6 @@ #include <sys/malloc.h> #include <sys/socket.h> -#include <machine/bus_memio.h> -#include <machine/bus_pio.h> #include <machine/bus.h> #include <machine/resource.h> #include <sys/rman.h> @@ -56,31 +54,6 @@ static struct isa_pnp_id lnc_pnp_ids[] = { {0, NULL} }; -extern void write_csr(struct lnc_softc *, u_short, u_short); -extern u_short read_csr(struct lnc_softc *, u_short); -extern void lnc_release_resources(device_t); - -static int -lance_probe(struct lnc_softc *sc) -{ - write_csr(sc, CSR0, STOP); - - if ((bus_space_read_2(sc->lnc_btag, sc->lnc_bhandle, sc->rdp) & STOP) && - ! (read_csr(sc, CSR3))) { - /* - * Check to see if it's a C-LANCE. For the LANCE the INEA bit - * cannot be set while the STOP bit is. This restriction is - * removed for the C-LANCE. - */ - write_csr(sc, CSR0, INEA); - if (read_csr(sc, CSR0) & INEA) - return (C_LANCE); - else - return (LANCE); - } else - return (UNKNOWN); -} - static int lnc_legacy_probe(device_t dev) { |