summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-07-08 01:34:24 +0000
committerpeter <peter@FreeBSD.org>2004-07-08 01:34:24 +0000
commitdd3c90cb130487da4a03fb9222df5e64c180e55f (patch)
treea61e8bd3b39ac22a0d09d08e1e74af7bd0f283cb /sys/amd64
parentfc114e00d892dffc2f3a204f421ce51489fb4514 (diff)
downloadFreeBSD-src-dd3c90cb130487da4a03fb9222df5e64c180e55f.zip
FreeBSD-src-dd3c90cb130487da4a03fb9222df5e64c180e55f.tar.gz
MFi386: use rman access methods instead of groping around inside
struct resource
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/nexus.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/amd64/amd64/nexus.c b/sys/amd64/amd64/nexus.c
index 12e9754..d45ace1 100644
--- a/sys/amd64/amd64/nexus.c
+++ b/sys/amd64/amd64/nexus.c
@@ -342,7 +342,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
rman_set_bustag(rv, AMD64_BUS_SPACE_MEM);
} else if (type == SYS_RES_IOPORT) {
rman_set_bustag(rv, AMD64_BUS_SPACE_IO);
- rman_set_bushandle(rv, rv->r_start);
+ rman_set_bushandle(rv, rman_get_start(rv));
}
if (needactivate) {
@@ -359,6 +359,7 @@ static int
nexus_activate_resource(device_t bus, device_t child, int type, int rid,
struct resource *r)
{
+
/*
* If this is a memory resource, map it into the kernel.
*/
@@ -434,7 +435,7 @@ nexus_setup_intr(device_t bus, device_t child, struct resource *irq,
panic("nexus_setup_intr: NULL irq resource!");
*cookiep = 0;
- if ((irq->r_flags & RF_SHAREABLE) == 0)
+ if ((rman_get_flags(irq) & RF_SHAREABLE) == 0)
flags |= INTR_EXCL;
/*
@@ -444,8 +445,8 @@ nexus_setup_intr(device_t bus, device_t child, struct resource *irq,
if (error)
return (error);
- error = intr_add_handler(device_get_nameunit(child), irq->r_start,
- ihand, arg, flags, cookiep);
+ error = intr_add_handler(device_get_nameunit(child),
+ rman_get_start(irq), ihand, arg, flags, cookiep);
return (error);
}
OpenPOWER on IntegriCloud