summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci/psychovar.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-04-17 12:38:00 +0000
committermarius <marius@FreeBSD.org>2008-04-17 12:38:00 +0000
commit3215bc9d5f31c44edeb0a319c1456140986ac1de (patch)
tree646b5b1dcb4b90320e3790b627d5df68e35cf191 /sys/sparc64/pci/psychovar.h
parentb11f9dd52aac5645107b2d8cb24361e9495b17d6 (diff)
downloadFreeBSD-src-3215bc9d5f31c44edeb0a319c1456140986ac1de.zip
FreeBSD-src-3215bc9d5f31c44edeb0a319c1456140986ac1de.tar.gz
On sparc64 machines with multiple host-PCI-bridges these bridges
have separate configuration spaces so by definition they implement different PCI domains. Thus change psycho(4) to use PCI domains instead of reenumerating all PCI busses so they have globally unique bus numbers and drop support for reenumerating busses in the OFW PCI code. According to CVS history reenumeration was also required in order to get some E450 to boot but given that no other open source kernel changes the PCI bus numbers assigned by the firmware I believe the real problem was that the old code used the bus number as the device number for the PCI busses and unlike most of the other machines the firmwares of the problematic ones don't use disjoint PCI bus numbers across the host-PCI-bridges. MFC after: 1 month
Diffstat (limited to 'sys/sparc64/pci/psychovar.h')
-rw-r--r--sys/sparc64/pci/psychovar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sparc64/pci/psychovar.h b/sys/sparc64/pci/psychovar.h
index b99181d..ef4286b 100644
--- a/sys/sparc64/pci/psychovar.h
+++ b/sys/sparc64/pci/psychovar.h
@@ -71,12 +71,11 @@ struct psycho_softc {
bus_space_handle_t sc_pci_bh[PSYCHO_NRANGE];
- u_int sc_pci_secbus;
- u_int sc_pci_subbus;
-
struct rman sc_pci_mem_rman;
struct rman sc_pci_io_rman;
+ uint8_t sc_pci_secbus;
+
uint8_t sc_pci_hpbcfg[16];
SLIST_ENTRY(psycho_softc) sc_link;
OpenPOWER on IntegriCloud