mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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 <kallio@kanto.cc.jyu.fi>
This commit is contained in:
parent
2e60812e3a
commit
3042aad3e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16253
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user