summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/t2.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/t2.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/t2.c')
-rw-r--r--sys/alpha/pci/t2.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/alpha/pci/t2.c b/sys/alpha/pci/t2.c
index 5a80b6e..05c0a0b 100644
--- a/sys/alpha/pci/t2.c
+++ b/sys/alpha/pci/t2.c
@@ -66,7 +66,6 @@
#include <alpha/pci/t2reg.h>
#include <alpha/pci/t2var.h>
-#include <alpha/pci/pcibus.h>
#include <alpha/isa/isavar.h>
#include <machine/intr.h>
#include <machine/resource.h>
@@ -165,10 +164,6 @@ static device_method_t t2_methods[] = {
DEVMETHOD(device_attach, t2_attach),
/* Bus interface */
- DEVMETHOD(bus_alloc_resource, pci_alloc_resource),
- DEVMETHOD(bus_release_resource, pci_release_resource),
- DEVMETHOD(bus_activate_resource, pci_activate_resource),
- DEVMETHOD(bus_deactivate_resource, pci_deactivate_resource),
DEVMETHOD(bus_setup_intr, t2_setup_intr),
DEVMETHOD(bus_teardown_intr, t2_teardown_intr),
@@ -303,8 +298,8 @@ t2_init()
swiz_init_space_hae(&mem_space, KV(T2_PCI_SPARSE),
t2_set_hae_mem, 0);
- busspace_isa_io = (kobj_t) &io_space;
- busspace_isa_mem = (kobj_t) &mem_space;
+ busspace_isa_io = (struct alpha_busspace *) &io_space;
+ busspace_isa_mem = (struct alpha_busspace *) &mem_space;
chipset = t2_chipset;
@@ -350,8 +345,6 @@ t2_probe(device_t dev)
/* t2_num_hoses = 2; XXX not ready for this yet */
}
- pci_init_resources();
-
for (h = 0; h < t2_num_hoses; h++)
t2_csr_init(h);
OpenPOWER on IntegriCloud