diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-06-26 03:54:32 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-06-26 03:54:32 +0000 |
commit | 91dba6ee0a24c0f4937b18fe212e16bd7542cb96 (patch) | |
tree | a1c8498ba8ada6ffaf92161b77dfb1a017f9e771 /sys/dev | |
parent | 61c02c4209050b64dec4b2427ec81f8596fb505e (diff) |
this is not a bus master
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/lofn.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/pci/lofn.c b/sys/dev/pci/lofn.c index 62702e9c47c..da38fbd7fb4 100644 --- a/sys/dev/pci/lofn.c +++ b/sys/dev/pci/lofn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lofn.c,v 1.1 2001/06/25 23:04:45 jason Exp $ */ +/* $OpenBSD: lofn.c,v 1.2 2001/06/26 03:54:31 jason Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -102,7 +102,7 @@ lofn_attach(parent, self, aux) u_int32_t cmd; cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); - cmd |= PCI_COMMAND_MEM_ENABLE | PCI_COMMAND_MASTER_ENABLE; + cmd |= PCI_COMMAND_MEM_ENABLE; pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, cmd); cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); @@ -111,11 +111,6 @@ lofn_attach(parent, self, aux) return; } - if (!(cmd & PCI_COMMAND_MASTER_ENABLE)) { - printf(": failed to enable bus mastering\n"); - return; - } - if (pci_mapreg_map(pa, LOFN_BAR0, PCI_MAPREG_TYPE_MEM, 0, &sc->sc_st, &sc->sc_sh, NULL, &iosize, 0)) { printf(": can't map mem space %d\n", 0); @@ -140,6 +135,8 @@ lofn_attach(parent, self, aux) goto fail_io; } + printf("\n"); + return; pci_intr_disestablish(pc, sc->sc_ih); |