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:
Søren Schmidt 2000-10-04 08:28:37 +00:00
parent 507c85be96
commit 9b09a33635

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);