mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
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:
parent
507c85be96
commit
9b09a33635
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66626
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue