summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-09-25 19:48:51 +0000
committerphk <phk@FreeBSD.org>2005-09-25 19:48:51 +0000
commit9b57d498dbcc565f233584e6c1cf8b14048d4cc0 (patch)
tree5d05c1fa6dd8aa73a63fc495fe49ba7a3877fbef
parent65daebb7d8605796dea55026cd6831c825257376 (diff)
downloadFreeBSD-src-9b57d498dbcc565f233584e6c1cf8b14048d4cc0.zip
FreeBSD-src-9b57d498dbcc565f233584e6c1cf8b14048d4cc0.tar.gz
Substitute rman_get_start() for __RMAN_RESOURCE_VISIBLE
-rw-r--r--sys/alpha/pci/apecs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/alpha/pci/apecs.c b/sys/alpha/pci/apecs.c
index a5c9c26..a2bbe53 100644
--- a/sys/alpha/pci/apecs.c
+++ b/sys/alpha/pci/apecs.c
@@ -57,7 +57,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#define __RMAN_RESOURCE_VISIBLE
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -338,8 +337,9 @@ apecs_setup_intr(device_t dev, device_t child,
struct resource *irq, int flags,
driver_intr_t *intr, void *arg, void **cookiep)
{
- int error;
+ int error, start;
+ start = rman_get_start(irq);
/*
* the avanti routes interrupts through the isa interrupt
* controller, so we need to special case it
@@ -353,19 +353,19 @@ apecs_setup_intr(device_t dev, device_t child,
return error;
error = alpha_setup_intr(device_get_nameunit(child ? child : dev),
- 0x900 + (irq->r_start << 4), intr, arg, flags, cookiep,
- &intrcnt[INTRCNT_EB64PLUS_IRQ + irq->r_start],
+ 0x900 + (start << 4), intr, arg, flags, cookiep,
+ &intrcnt[INTRCNT_EB64PLUS_IRQ + start],
apecs_disable_intr, apecs_enable_intr);
if (error)
return error;
/* Enable PCI interrupt */
mtx_lock_spin(&icu_lock);
- platform.pci_intr_enable(irq->r_start);
+ platform.pci_intr_enable(start);
mtx_unlock_spin(&icu_lock);
- device_printf(child, "interrupting at APECS irq %d\n",
- (int) irq->r_start);
+ device_printf(child, "interrupting at APECS irq %d\n", start);
+
return 0;
OpenPOWER on IntegriCloud