mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-22 00:04:58 +00:00
Fix my error in rev. 1.109.
Submitted by: jhb Pointy hat to: glebius
This commit is contained in:
parent
444f80d54b
commit
824d7cd2cc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161810
|
@ -1973,8 +1973,8 @@ em_identify_hardware(struct adapter *adapter)
|
|||
|
||||
/* Make sure our PCI config space has the necessary stuff set */
|
||||
adapter->hw.pci_cmd_word = pci_read_config(dev, PCIR_COMMAND, 2);
|
||||
if ((adapter->hw.pci_cmd_word & PCIM_CMD_BUSMASTEREN) == 0 &&
|
||||
(adapter->hw.pci_cmd_word & PCIM_CMD_MEMEN)) {
|
||||
if (!((adapter->hw.pci_cmd_word & PCIM_CMD_BUSMASTEREN) &&
|
||||
(adapter->hw.pci_cmd_word & PCIM_CMD_MEMEN))) {
|
||||
device_printf(dev, "Memory Access and/or Bus Master bits "
|
||||
"were not set!\n");
|
||||
adapter->hw.pci_cmd_word |=
|
||||
|
|
Loading…
Reference in a new issue