summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2006-04-13 15:07:59 +0000
committercognet <cognet@FreeBSD.org>2006-04-13 15:07:59 +0000
commit89b59ebb5e7a9103905c28384eb07e9fc704ac8b (patch)
treeda724d0a6de91ade0e4b954a138cc412c12af5cc /sys/arm
parentb63a034818e83219b8ab36d4bc977dfd83d931ba (diff)
downloadFreeBSD-src-89b59ebb5e7a9103905c28384eb07e9fc704ac8b.zip
FreeBSD-src-89b59ebb5e7a9103905c28384eb07e9fc704ac8b.tar.gz
We need to adjust the bus handle if the resource is SYS_RES_MEMORY, NOT
SYS_RES_IOPORT.
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/xscale/i80321/i80321_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arm/xscale/i80321/i80321_pci.c b/sys/arm/xscale/i80321/i80321_pci.c
index 21814fc..559b51f 100644
--- a/sys/arm/xscale/i80321/i80321_pci.c
+++ b/sys/arm/xscale/i80321/i80321_pci.c
@@ -381,7 +381,8 @@ i80321_pci_alloc_resource(device_t bus, device_t child, int type, int *rid,
if (rv == NULL)
return (NULL);
if (type != SYS_RES_IRQ) {
- bh += (rman_get_start(rv));
+ if (type == SYS_RES_MEMORY)
+ bh += (rman_get_start(rv));
rman_set_bustag(rv, bt);
rman_set_bushandle(rv, bh);
if (flags & RF_ACTIVE) {
OpenPOWER on IntegriCloud