Allow newer Linksys 10/100 PCMCIA cards to work.
Reviewed by: imp
This commit is contained in:
parent
7013252cf8
commit
9e672f19b5
@ -1006,18 +1006,16 @@ ed_probe_Novell_generic(dev, port_rid, flags)
|
||||
ed_pio_writemem(sc, test_pattern, 8192, sizeof(test_pattern));
|
||||
ed_pio_readmem(sc, 8192, test_buffer, sizeof(test_pattern));
|
||||
|
||||
if (bcmp(test_pattern, test_buffer, sizeof(test_pattern)) == 0) {
|
||||
/* could be either an NE1000 or a Linksys ethernet controller */
|
||||
/* Check for Linksys first. */
|
||||
linksys = ed_get_Linksys(sc);
|
||||
if (linksys) {
|
||||
outb(sc->nic_addr + ED_P0_DCR, ED_DCR_WTS | ED_DCR_FT1 | ED_DCR_LS);
|
||||
sc->isa16bit = 1;
|
||||
sc->type = ED_TYPE_NE2000;
|
||||
sc->type_str = "Linksys";
|
||||
} else {
|
||||
} else if (bcmp(test_pattern, test_buffer, sizeof(test_pattern)) == 0) {
|
||||
sc->type = ED_TYPE_NE1000;
|
||||
sc->type_str = "NE1000";
|
||||
}
|
||||
} else {
|
||||
|
||||
/* neither an NE1000 nor a Linksys - try NE2000 */
|
||||
|
Loading…
Reference in New Issue
Block a user