summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/tsunami_pci.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-05-23 19:44:17 +0000
committerdfr <dfr@FreeBSD.org>2001-05-23 19:44:17 +0000
commit2434332d91b4f39ff3786b3aab3122174307715e (patch)
tree61074a40ef2eba99c2d03a6241a1a87ab4851204 /sys/alpha/pci/tsunami_pci.c
parent3f4e4d353ca694c8535f3410280128fde8e1cc06 (diff)
downloadFreeBSD-src-2434332d91b4f39ff3786b3aab3122174307715e.zip
FreeBSD-src-2434332d91b4f39ff3786b3aab3122174307715e.tar.gz
Make sure that all resource allocation is handled in the pcib device, not
the chipset. This is already how the multi-hose systems handle resource allocation and it fixes a bug where dense and bwx memory allocations were not handled properly. Reviewed by: gallatin
Diffstat (limited to 'sys/alpha/pci/tsunami_pci.c')
-rw-r--r--sys/alpha/pci/tsunami_pci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/alpha/pci/tsunami_pci.c b/sys/alpha/pci/tsunami_pci.c
index b77754a..495161c 100644
--- a/sys/alpha/pci/tsunami_pci.c
+++ b/sys/alpha/pci/tsunami_pci.c
@@ -63,6 +63,7 @@ tsunami_pcib_probe(device_t dev)
device_set_desc(dev, "21271 PCI host bus adapter");
+ pci_init_resources(); /* XXX probably don't need */
child = device_add_child(dev, "pci", -1);
bwx_init_space(&sc->io, KV(TSUNAMI_IO(device_get_unit(dev))));
@@ -89,8 +90,8 @@ tsunami_pcib_probe(device_t dev)
* isn't stictly necessary but it keeps things tidy.
*/
if (device_get_unit(dev) == 0) {
- busspace_isa_io = (kobj_t) &sc->io;
- busspace_isa_mem = (kobj_t) &sc->mem;
+ busspace_isa_io = (struct alpha_busspace *) &sc->io;
+ busspace_isa_mem = (struct alpha_busspace *) &sc->mem;
}
return 0;
OpenPOWER on IntegriCloud