From 3042aad3e16898eccb8af784604f8adf9b374f58 Mon Sep 17 00:00:00 2001 From: Martin Renters Date: Sun, 9 Jun 1996 14:44:17 +0000 Subject: [PATCH] Add a check in the SMC probe to verify that the card has an ethernet address that starts with 0000C0xxxxxx. This prevents the probe code from finding GUS cards. Pointed out by: Seppo Kallio --- sys/i386/boot/netboot/ns8390.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/i386/boot/netboot/ns8390.c b/sys/i386/boot/netboot/ns8390.c index 9fb328d4dd6a..e0875e22e003 100644 --- a/sys/i386/boot/netboot/ns8390.c +++ b/sys/i386/boot/netboot/ns8390.c @@ -75,6 +75,10 @@ eth_probe() for (eth_asic_base = WD_LOW_BASE; eth_asic_base <= WD_HIGH_BASE; eth_asic_base += 0x20) { chksum = 0; + /* Check for WD/SMC card by checking ethernet address */ + if (inb(eth_asic_base+8) != 0) continue; + if (inb(eth_asic_base+9) != 0) continue; + if (inb(eth_asic_base+10) != 0xC0) continue; for (i=8; i<16; i++) chksum += inb(i+eth_asic_base); if ((chksum & 0x00FF) == 0x00FF)