Fix the MASTERDEV breakage the caused the PIIX controllers to get

missed in the probe. This might break the CMD chips again, more
testing is needed on that, but we need the mainstream chips to
work again ...
This commit is contained in:
sos 2000-10-04 08:28:37 +00:00
parent fab87e4edb
commit 97127e8974

View File

@ -71,7 +71,8 @@
#define ATA_IOADDR_RID 0
#define ATA_ALTADDR_RID 1
#define ATA_BMADDR_RID 2
#define ATA_MASTERDEV(dev) ((pci_get_progif(dev) & 0x8f) == 0x8a)
#define ATA_MASTERDEV(dev) ((pci_get_progif(dev) & 0x80) && \
(pci_get_progif(dev) & 0x05) != 0x05)
/* prototypes */
static int ata_probe(device_t);