diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-05-14 13:23:39 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-05-14 13:23:39 +0000 |
commit | 0fcf41737655b60efb019f6fec33236532460222 (patch) | |
tree | e8618ffb5aad6d471e774e41c17bbe6cf0e21230 /sys/dev/pci/ppb.c | |
parent | 45f92a2ec6451a60879aef9c95e90060c83d1903 (diff) |
Pass flags down the PCI bus hierarchy. Soon to be used to selectively enable
Message Signalled Interrupts.
ok krw@ with a fix pointed out by many
Diffstat (limited to 'sys/dev/pci/ppb.c')
-rw-r--r-- | sys/dev/pci/ppb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/ppb.c b/sys/dev/pci/ppb.c index 2009fd7dfd8..3e671c6515d 100644 --- a/sys/dev/pci/ppb.c +++ b/sys/dev/pci/ppb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ppb.c,v 1.48 2011/04/18 04:18:36 deraadt Exp $ */ +/* $OpenBSD: ppb.c,v 1.49 2011/05/14 13:23:38 kettenis Exp $ */ /* $NetBSD: ppb.c,v 1.16 1997/06/06 23:48:05 thorpej Exp $ */ /* @@ -291,12 +291,10 @@ ppbattach(struct device *parent, struct device *self, void *aux) pba.pba_memt = pa->pa_memt; pba.pba_dmat = pa->pa_dmat; pba.pba_pc = pc; + pba.pba_flags = pa->pa_flags & ~PCI_FLAGS_MRM_OKAY; pba.pba_ioex = sc->sc_ioex; pba.pba_memex = sc->sc_memex; pba.pba_pmemex = sc->sc_pmemex; -#if 0 - pba.pba_flags = pa->pa_flags & ~PCI_FLAGS_MRM_OKAY; -#endif pba.pba_domain = pa->pa_domain; pba.pba_bus = PPB_BUSINFO_SECONDARY(busdata); pba.pba_bridgeih = sc->sc_ih; |