diff options
author | sos <sos@FreeBSD.org> | 2000-10-04 08:28:37 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2000-10-04 08:28:37 +0000 |
commit | 97127e89746f28e62205beb3967a8c39c64f4520 (patch) | |
tree | 139cba9ff13ae22193afae2092ce806b9d645ebe /sys | |
parent | fab87e4edb0b87bfb1f5fc7307672aff6279d288 (diff) | |
download | FreeBSD-src-97127e89746f28e62205beb3967a8c39c64f4520.zip FreeBSD-src-97127e89746f28e62205beb3967a8c39c64f4520.tar.gz |
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 ...
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/ata-all.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 2040ef2..aa106ec 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -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); |