summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-04-24 13:12:04 +0000
committerjhb <jhb@FreeBSD.org>2015-04-24 13:12:04 +0000
commit34a1e2f18c7e4868d7738e9359ea96a68d8407ea (patch)
tree5bf58dfe92751359546d5524b58d3d5e0850b2aa /sys/sparc64
parent7cde8c97f303127bb18a4d9b4ee68e1706bd532e (diff)
downloadFreeBSD-src-34a1e2f18c7e4868d7738e9359ea96a68d8407ea.zip
FreeBSD-src-34a1e2f18c7e4868d7738e9359ea96a68d8407ea.tar.gz
Update this driver to not save copies of registers that are no longer used
after r281874. While here, also update it to always write the parent's PCI bus number to the primary bus register.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/pci/apb.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/sparc64/pci/apb.c b/sys/sparc64/pci/apb.c
index 9b3fa44..c0d6172 100644
--- a/sys/sparc64/pci/apb.c
+++ b/sys/sparc64/pci/apb.c
@@ -171,20 +171,14 @@ apb_attach(device_t dev)
* Get current bridge configuration.
*/
sc->sc_bsc.ops_pcib_sc.domain = pci_get_domain(dev);
- sc->sc_bsc.ops_pcib_sc.secstat =
- pci_read_config(dev, PCIR_SECSTAT_1, 2);
- sc->sc_bsc.ops_pcib_sc.command =
- pci_read_config(dev, PCIR_COMMAND, 2);
- sc->sc_bsc.ops_pcib_sc.pribus =
- pci_read_config(dev, PCIR_PRIBUS_1, 1);
+ sc->sc_bsc.ops_pcib_sc.pribus = pci_get_bus(dev);
+ pci_write_config(dev, PCIR_PRIBUS_1, sc->sc_bsc.ops_pcib_sc.pribus, 1);
sc->sc_bsc.ops_pcib_sc.bus.sec =
pci_read_config(dev, PCIR_SECBUS_1, 1);
sc->sc_bsc.ops_pcib_sc.bus.sub =
pci_read_config(dev, PCIR_SUBBUS_1, 1);
sc->sc_bsc.ops_pcib_sc.bridgectl =
pci_read_config(dev, PCIR_BRIDGECTL_1, 2);
- sc->sc_bsc.ops_pcib_sc.seclat =
- pci_read_config(dev, PCIR_SECLAT_1, 1);
sc->sc_iomap = pci_read_config(dev, APBR_IOMAP, 1);
sc->sc_memmap = pci_read_config(dev, APBR_MEMMAP, 1);
OpenPOWER on IntegriCloud