aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dc/if_dc.c
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2001-07-09 17:58:42 +0000
committerBill Paul <wpaul@FreeBSD.org>2001-07-09 17:58:42 +0000
commit75ff968cd57ae393a78c30151fcc2b869728770c (patch)
treea22d58c02f4a3e211ed7eca88e120ce01d245b91 /sys/dev/dc/if_dc.c
parentccdee0d9f476bf08d0ad27677d3ec2b679f2d2ee (diff)
downloadsrc-75ff968cd57ae393a78c30151fcc2b869728770c.tar.gz
src-75ff968cd57ae393a78c30151fcc2b869728770c.zip
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.
Notes
Notes: svn path=/head/; revision=79472
Diffstat (limited to 'sys/dev/dc/if_dc.c')
-rw-r--r--sys/dev/dc/if_dc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index 0ef88c33b7de..ec18090e5d51 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -1776,8 +1776,8 @@ static int dc_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 DC_USEIOSPACE