summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/t2_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/t2_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/t2_pci.c')
-rw-r--r--sys/alpha/pci/t2_pci.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/alpha/pci/t2_pci.c b/sys/alpha/pci/t2_pci.c
index cd0bf06..82a650b 100644
--- a/sys/alpha/pci/t2_pci.c
+++ b/sys/alpha/pci/t2_pci.c
@@ -39,6 +39,7 @@
#include <alpha/pci/t2reg.h>
#include <alpha/pci/t2var.h>
+#include <alpha/pci/pcibus.h>
#include "alphapci_if.h"
#include "pcib_if.h"
@@ -54,6 +55,8 @@ t2_pcib_probe(device_t dev)
device_set_desc(dev, "T2 PCI host bus adapter");
+ pci_init_resources();
+
child = device_add_child(dev, "pci", 0);
device_set_ivars(child, 0);
@@ -177,10 +180,10 @@ static device_method_t t2_pcib_methods[] = {
/* Bus interface */
DEVMETHOD(bus_print_child, bus_generic_print_child),
DEVMETHOD(bus_read_ivar, t2_pcib_read_ivar),
- DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource),
- DEVMETHOD(bus_release_resource, bus_generic_release_resource),
- DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
- DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
+ 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, bus_generic_setup_intr),
DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
OpenPOWER on IntegriCloud