diff options
author | 2006-06-29 21:35:39 +0000 | |
---|---|---|
committer | 2006-06-29 21:35:39 +0000 | |
commit | 14f58c79c66142db5618f26b463df4bc172fc9e0 (patch) | |
tree | aa5798a6418a8601807dba61bae447177bd2e839 /sys | |
parent | do not check for master/io/mem enables; ok kettenis (diff) | |
download | wireguard-openbsd-14f58c79c66142db5618f26b463df4bc172fc9e0.tar.xz wireguard-openbsd-14f58c79c66142db5618f26b463df4bc172fc9e0.zip |
no need to check io/mem enables before calling pci_mapreg_map()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_tl.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/pci/if_tl.c b/sys/dev/pci/if_tl.c index dce96682a92..1a34d799ed8 100644 --- a/sys/dev/pci/if_tl.c +++ b/sys/dev/pci/if_tl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tl.c,v 1.41 2006/05/28 00:04:24 jason Exp $ */ +/* $OpenBSD: if_tl.c,v 1.42 2006/06/29 21:35:39 deraadt Exp $ */ /* * Copyright (c) 1997, 1998 @@ -2006,13 +2006,8 @@ tl_attach(parent, self, aux) /* * Map control/status registers. */ - command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); #ifdef TL_USEIOSPACE - if (!(command & PCI_COMMAND_IO_ENABLE)) { - printf(": failed to enable I/O ports\n"); - return; - } if (pci_mapreg_map(pa, TL_PCI_LOIO, PCI_MAPREG_TYPE_IO, 0, &sc->tl_btag, &sc->tl_bhandle, NULL, &iosize, 0)) { if (pci_mapreg_map(pa, TL_PCI_LOMEM, PCI_MAPREG_TYPE_IO, 0, @@ -2022,10 +2017,6 @@ tl_attach(parent, self, aux) } } #else - if (!(command & PCI_COMMAND_MEM_ENABLE)) { - printf(": failed to enable memory mapping\n"); - return; - } if (pci_mapreg_map(pa, TL_PCI_LOMEM, PCI_MAPREG_TYPE_MEM, 0, &sc->tl_btag, &sc->tl_bhandle, NULL, &iosize, 0)){ if (pci_mapreg_map(pa, TL_PCI_LOIO, PCI_MAPREG_TYPE_MEM, 0, |