diff options
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) { |