1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Check both PORTEN and MEMEN for enabled HW.

This commit is contained in:
Søren Schmidt 2004-02-21 18:21:13 +00:00
parent 0c7ab1146f
commit 73f8099662
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126073

View File

@ -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;
}