diff options
author | dfr <dfr@FreeBSD.org> | 2001-05-23 19:44:17 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2001-05-23 19:44:17 +0000 |
commit | 2434332d91b4f39ff3786b3aab3122174307715e (patch) | |
tree | 61074a40ef2eba99c2d03a6241a1a87ab4851204 /sys/alpha/pci/irongate.c | |
parent | 3f4e4d353ca694c8535f3410280128fde8e1cc06 (diff) | |
download | FreeBSD-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/irongate.c')
-rw-r--r-- | sys/alpha/pci/irongate.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/alpha/pci/irongate.c b/sys/alpha/pci/irongate.c index b1ba10d..17bdd33 100644 --- a/sys/alpha/pci/irongate.c +++ b/sys/alpha/pci/irongate.c @@ -43,7 +43,6 @@ #include <alpha/isa/isavar.h> #include <alpha/pci/irongatereg.h> #include <alpha/pci/irongatevar.h> -#include <alpha/pci/pcibus.h> #include <machine/bwx.h> #include <machine/intr.h> #include <machine/intrcnt.h> @@ -100,10 +99,6 @@ static device_method_t irongate_methods[] = { /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), - 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, isa_setup_intr), DEVMETHOD(bus_teardown_intr, isa_teardown_intr), @@ -131,8 +126,8 @@ irongate_init() bwx_init_space(&io_space, KV(IRONGATE_IO)); bwx_init_space(&mem_space, KV(IRONGATE_MEM)); - 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; if (platform.pci_intr_init) platform.pci_intr_init(); @@ -146,7 +141,6 @@ irongate_probe(device_t dev) return ENXIO; irongate0 = dev; device_set_desc(dev, "AMD 751 Core Logic chipset"); - pci_init_resources(); isa_init_intr(); device_add_child(dev, "pcib", 0); return 0; |