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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66626

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