summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/isa/isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sparc64/isa/isa.c')
-rw-r--r--sys/sparc64/isa/isa.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/sparc64/isa/isa.c b/sys/sparc64/isa/isa.c
index 78ea93f..be76e01 100644
--- a/sys/sparc64/isa/isa.c
+++ b/sys/sparc64/isa/isa.c
@@ -64,7 +64,6 @@ device_t isa_bus_device;
static phandle_t isab_node;
static struct isa_ranges *isab_ranges;
static int isab_nrange;
-static ofw_pci_intr_t isa_ino[8];
static struct ofw_bus_iinfo isa_iinfo;
/*
@@ -82,23 +81,6 @@ static struct ofw_bus_iinfo isa_iinfo;
static void isa_setup_children(device_t, phandle_t);
-intrmask_t
-isa_irq_pending(void)
-{
- intrmask_t pending;
- int i;
-
- /* XXX: Is this correct? */
- for (i = 7, pending = 0; i >= 0; i--) {
- pending <<= 1;
- if (isa_ino[i] != PCI_INVALID_IRQ) {
- pending |= (OFW_PCI_INTR_PENDING(isa_bus_device,
- isa_ino[i]) == 0) ? 0 : 1;
- }
- }
- return (pending);
-}
-
void
isa_init(device_t dev)
{
@@ -115,17 +97,6 @@ isa_init(device_t dev)
ofw_bus_setup_iinfo(isab_node, &isa_iinfo, sizeof(ofw_isa_intr_t));
- /*
- * This is really a bad kludge; however, it is needed to provide
- * isa_irq_pending(), which is unfortunately still used by some
- * drivers.
- * XXX: The only driver still using isa_irq_pending() is sio(4)
- * which we don't use on sparc64. Should we just drop support
- * for isa_irq_pending()?
- */
- for (i = 0; i < 8; i++)
- isa_ino[i] = PCI_INVALID_IRQ;
-
isa_setup_children(dev, isab_node);
for (i = isab_nrange - 1; i >= 0; i--) {
@@ -275,7 +246,6 @@ isa_setup_children(device_t dev, phandle_t parent)
intrs[i], (unsigned long)node, name);
continue;
}
- isa_ino[intrs[i]] = rintr;
bus_set_resource(cdev, SYS_RES_IRQ, i, rintr, 1);
}
if (intrs != NULL)
OpenPOWER on IntegriCloud