diff options
author | sos <sos@FreeBSD.org> | 2004-02-21 18:21:13 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2004-02-21 18:21:13 +0000 |
commit | 7a8fa65984697a768d10c27781d9ef294168efda (patch) | |
tree | 7b44d0a45eefac106f6995ad034e55212e3c9894 | |
parent | 74a845e42eb1db6cbe239389b0dc03c55da3d8f8 (diff) | |
download | FreeBSD-src-7a8fa65984697a768d10c27781d9ef294168efda.zip FreeBSD-src-7a8fa65984697a768d10c27781d9ef294168efda.tar.gz |
Check both PORTEN and MEMEN for enabled HW.
-rw-r--r-- | sys/dev/ata/ata-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index d9206be..81013ac 100644 --- a/sys/dev/ata/ata-pci.c +++ b/sys/dev/ata/ata-pci.c @@ -164,7 +164,7 @@ ata_pci_attach(device_t dev) subclass = pci_get_subclass(dev); cmd = pci_read_config(dev, PCIR_COMMAND, 2); - if (!(cmd & PCIM_CMD_PORTEN)) { + if (!(cmd & (PCIM_CMD_PORTEN | PCIM_CMD_MEMEN))) { device_printf(dev, "ATA channel disabled by BIOS\n"); return 0; } |