summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/apecs.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/apecs.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/apecs.c')
-rw-r--r--sys/alpha/pci/apecs.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/sys/alpha/pci/apecs.c b/sys/alpha/pci/apecs.c
index ba71978..4b30176 100644
--- a/sys/alpha/pci/apecs.c
+++ b/sys/alpha/pci/apecs.c
@@ -69,7 +69,6 @@
#include <alpha/pci/apecsreg.h>
#include <alpha/pci/apecsvar.h>
-#include <alpha/pci/pcibus.h>
#include <alpha/isa/isavar.h>
#include <machine/intr.h>
#include <machine/resource.h>
@@ -151,12 +150,6 @@ apecs_write_hae(u_int64_t hae)
static int apecs_probe(device_t dev);
static int apecs_attach(device_t dev);
-static struct resource *apecs_alloc_resource(device_t bus, device_t child,
- int type, int *rid, u_long start,
- u_long end, u_long count,
- u_int flags);
-static int apecs_release_resource(device_t bus, device_t child,
- int type, int rid, struct resource *r);
static int apecs_setup_intr(device_t dev, device_t child,
struct resource *irq, int flags,
driver_intr_t *intr, void *arg, void **cookiep);
@@ -169,10 +162,6 @@ static device_method_t apecs_methods[] = {
DEVMETHOD(device_attach, apecs_attach),
/* Bus interface */
- DEVMETHOD(bus_alloc_resource, apecs_alloc_resource),
- DEVMETHOD(bus_release_resource, apecs_release_resource),
- DEVMETHOD(bus_activate_resource, pci_activate_resource),
- DEVMETHOD(bus_deactivate_resource, pci_deactivate_resource),
DEVMETHOD(bus_setup_intr, apecs_setup_intr),
DEVMETHOD(bus_teardown_intr, apecs_teardown_intr),
@@ -280,7 +269,6 @@ apecs_probe(device_t dev)
}
apecs_hae_mem = REGVAL(EPIC_HAXR1);
- pci_init_resources();
isa_init_intr();
apecs_init_sgmap();
@@ -314,29 +302,6 @@ apecs_attach(device_t dev)
return 0;
}
-static struct resource *
-apecs_alloc_resource(device_t bus, device_t child, int type, int *rid,
- u_long start, u_long end, u_long count, u_int flags)
-{
- if ((hwrpb->rpb_type == ST_DEC_2100_A50) &&
- (type == SYS_RES_IRQ))
- return isa_alloc_intr(bus, child, start);
- else
- return pci_alloc_resource(bus, child, type, rid,
- start, end, count, flags);
-}
-
-static int
-apecs_release_resource(device_t bus, device_t child, int type, int rid,
- struct resource *r)
-{
- if ((hwrpb->rpb_type == ST_DEC_2100_A50) &&
- (type == SYS_RES_IRQ))
- return isa_release_intr(bus, child, r);
- else
- return pci_release_resource(bus, child, type, rid, r);
-}
-
static void
apecs_disable_intr(int vector)
{
OpenPOWER on IntegriCloud