summaryrefslogtreecommitdiff
path: root/sys/dev/pci/nofn.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-06-29 21:34:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-06-29 21:34:52 +0000
commitc66b8d9e8f44d9cf57a383eab9733626f5bbccb7 (patch)
tree6fda747f5738d7b18016280ebf13664c6f565ec0 /sys/dev/pci/nofn.c
parent80290b5358f469002c08bc1ec56ce9c7bca5b2b0 (diff)
do not check for master/io/mem enables; ok kettenis
Diffstat (limited to 'sys/dev/pci/nofn.c')
-rw-r--r--sys/dev/pci/nofn.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/dev/pci/nofn.c b/sys/dev/pci/nofn.c
index 9d26b0a7ef2..35ca1d69996 100644
--- a/sys/dev/pci/nofn.c
+++ b/sys/dev/pci/nofn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nofn.c,v 1.14 2005/08/09 04:10:13 mickey Exp $ */
+/* $OpenBSD: nofn.c,v 1.15 2006/06/29 21:34:51 deraadt Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -111,21 +111,9 @@ nofn_attach(parent, self, aux)
pci_intr_handle_t ih;
const char *intrstr = NULL;
bus_size_t bar0size = 0, bar3size = 0;
- u_int32_t cmd;
sc->sc_dmat = pa->pa_dmat;
- cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
- if (!(cmd & PCI_COMMAND_MEM_ENABLE)) {
- printf(": failed to enable memory mapping\n");
- goto fail;
- }
-
- if (!(cmd & PCI_COMMAND_MASTER_ENABLE)) {
- printf(": failed to enable bus mastering\n");
- goto fail;
- }
-
if (pci_mapreg_map(pa, NOFN_BAR0_REGS, PCI_MAPREG_TYPE_MEM, 0,
&sc->sc_st, &sc->sc_sh, NULL, &bar0size, 0)) {
printf(": can't map bar0 regs\n");