summaryrefslogtreecommitdiffstats
path: root/sys/alpha/isa
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-09-25 19:34:54 +0000
committerphk <phk@FreeBSD.org>2005-09-25 19:34:54 +0000
commit65daebb7d8605796dea55026cd6831c825257376 (patch)
tree6a6e0b95adbe3911dcda527f7997e67ebde38e80 /sys/alpha/isa
parent7279f0e888c34756066142925925665ea127f138 (diff)
downloadFreeBSD-src-65daebb7d8605796dea55026cd6831c825257376.zip
FreeBSD-src-65daebb7d8605796dea55026cd6831c825257376.tar.gz
This file never needed to see what is in the internal struct resource,
all it needed was a call to rman_get_start().
Diffstat (limited to 'sys/alpha/isa')
-rw-r--r--sys/alpha/isa/isa.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/alpha/isa/isa.c b/sys/alpha/isa/isa.c
index ac08c7b..5675c99 100644
--- a/sys/alpha/isa/isa.c
+++ b/sys/alpha/isa/isa.c
@@ -27,7 +27,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#define __RMAN_RESOURCE_VISIBLE
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -359,28 +358,28 @@ isa_setup_intr(device_t dev, device_t child,
return ENOMEM;
ii->intr = intr;
ii->arg = arg;
- ii->irq = irq->r_start;
+ ii->irq = rman_get_start(irq);
error = alpha_setup_intr(
device_get_nameunit(child ? child : dev),
- 0x800 + (irq->r_start << 4),
+ 0x800 + (ii->irq << 4),
((flags & INTR_FAST) ? isa_handle_fast_intr :
isa_handle_intr), ii, flags, &ii->ih,
- &intrcnt[INTRCNT_ISA_IRQ + irq->r_start],
+ &intrcnt[INTRCNT_ISA_IRQ + ii->irq],
isa_disable_intr, isa_enable_intr);
if (error) {
free(ii, M_DEVBUF);
return error;
}
mtx_lock_spin(&icu_lock);
- isa_intr_enable(irq->r_start);
+ isa_intr_enable(ii->irq);
mtx_unlock_spin(&icu_lock);
*cookiep = ii;
if (child)
device_printf(child, "interrupting at ISA irq %d\n",
- (int)irq->r_start);
+ (int)ii->irq);
return 0;
}
@@ -406,11 +405,10 @@ isa_teardown_intr(device_t dev, device_t child,
if (num_handlers == 1) {
mtx_lock_spin(&icu_lock);
- isa_intr_disable(irq->r_start);
+ isa_intr_disable(ii->irq);
mtx_unlock_spin(&icu_lock);
if (platform.isa_teardown_intr) {
- platform.isa_teardown_intr(dev, child, irq,
- cookie);
+ platform.isa_teardown_intr(dev, child, irq, cookie);
return 0;
}
OpenPOWER on IntegriCloud