summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_ed.c
diff options
context:
space:
mode:
authortoshi <toshi@FreeBSD.org>2000-12-18 15:28:53 +0000
committertoshi <toshi@FreeBSD.org>2000-12-18 15:28:53 +0000
commit3918bafb693d74e0f8588a72df5c05e4da554c28 (patch)
tree22139df9e7aa0163bfc0a36c77fa19c0d9e2d92c /sys/dev/ed/if_ed.c
parent7fe8bd2b880598e53bc05e6231d702f96becc09e (diff)
downloadFreeBSD-src-3918bafb693d74e0f8588a72df5c05e4da554c28.zip
FreeBSD-src-3918bafb693d74e0f8588a72df5c05e4da554c28.tar.gz
Linksys Fast Ethernet PCCARD cards supported by the ed driver now
require the addition of flag 0x80000 to their config line in pccard.conf(5). This flag is not optional. These Linksys cards will not be recognized without it. Reviewed by: imp, iwasaki
Diffstat (limited to 'sys/dev/ed/if_ed.c')
-rw-r--r--sys/dev/ed/if_ed.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index a7ca8db..f978954 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -902,44 +902,6 @@ ed_probe_3Com(dev, port_rid, flags)
}
/*
- * Probe the Ethernet MAC addrees for PCMCIA Linksys EtherFast 10/100
- * and compatible cards (DL10019C Ethernet controller).
- *
- * Note: The PAO patches try to use more memory for the card, but that
- * seems to fail for my card. A future optimization would add this back
- * conditionally.
- */
-int
-ed_get_Linksys(dev)
- device_t dev;
-{
- struct ed_softc *sc = device_get_softc(dev);
- u_char sum;
- int i;
-
- /*
- * Linksys registers(offset from ASIC base)
- *
- * 0x04-0x09 : Physical Address Register 0-5 (PAR0-PAR5)
- * 0x0A : Card ID Register (CIR)
- * 0x0B : Check Sum Register (SR)
- */
- for (sum = 0, i = 0x04; i < 0x0c; i++)
- sum += ed_asic_inb(sc, i);
- if (sum != 0xff)
- return (0); /* invalid DL10019C */
- for (i = 0; i < ETHER_ADDR_LEN; i++) {
- sc->arpcom.ac_enaddr[i] = ed_asic_inb(sc, 0x04 + i);
- }
-
- ed_nic_outb(sc, ED_P0_DCR, ED_DCR_WTS | ED_DCR_FT1 | ED_DCR_LS);
- sc->isa16bit = 1;
- sc->type = ED_TYPE_NE2000;
- sc->type_str = "Linksys";
- return (1);
-}
-
-/*
* Probe and vendor-specific initialization routine for NE1000/2000 boards
*/
int
OpenPOWER on IntegriCloud