aboutsummaryrefslogtreecommitdiff
path: root/sys/pci/if_tl.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/pci/if_tl.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/pci/if_tl.c')
-rw-r--r--sys/pci/if_tl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c
index 727f8d143df4..de4f82221754 100644
--- a/sys/pci/if_tl.c
+++ b/sys/pci/if_tl.c
@@ -1131,8 +1131,8 @@ static int tl_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 TL_USEIOSPACE