summaryrefslogtreecommitdiffstats
path: root/sys/dev/sk
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2001-07-09 17:58:42 +0000
committerwpaul <wpaul@FreeBSD.org>2001-07-09 17:58:42 +0000
commited90ce83ec27cf20ba16990749199344669588b2 (patch)
treea22d58c02f4a3e211ed7eca88e120ce01d245b91 /sys/dev/sk
parent431a592722db6b9341bb9b1e6a409a39edee7797 (diff)
downloadFreeBSD-src-ed90ce83ec27cf20ba16990749199344669588b2.zip
FreeBSD-src-ed90ce83ec27cf20ba16990749199344669588b2.tar.gz
Apply patch supplied by Jonathan Chen: use the correct arguments to
pci_enable_io(). We need to use SYS_RES_IOPORT/SYS_RES_MEMORY instead of PCIM_CMD_PORTEN/PCIM_CMD_MEMEN.
Diffstat (limited to 'sys/dev/sk')
-rw-r--r--sys/dev/sk/if_sk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c
index 6c9ec6a..9c842d5 100644
--- a/sys/dev/sk/if_sk.c
+++ b/sys/dev/sk/if_sk.c
@@ -1217,8 +1217,8 @@ static int sk_attach(dev)
* Map control/status registers.
*/
pci_enable_busmaster(dev);
- pci_enable_io(dev, PCIM_CMD_PORTEN);
- pci_enable_io(dev, PCIM_CMD_MEMEN);
+ pci_enable_io(dev, SYS_RES_IOPORT);
+ pci_enable_io(dev, SYS_RES_MEMORY);
command = pci_read_config(dev, PCIR_COMMAND, 4);
#ifdef SK_USEIOSPACE
OpenPOWER on IntegriCloud