From 91dba6ee0a24c0f4937b18fe212e16bd7542cb96 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 26 Jun 2001 03:54:32 +0000 Subject: this is not a bus master --- sys/dev/pci/lofn.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sys/dev/pci') 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); -- cgit v1.2.3