summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/isa
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-04-26 11:01:38 +0000
committermarius <marius@FreeBSD.org>2008-04-26 11:01:38 +0000
commitcea060d682520e7be22be9111ea74d28f51de01a (patch)
tree6671742869f22d63c49a444ca1faad75eaf388f4 /sys/sparc64/isa
parent2381edc5468ff27df84fcf44a3cf35b65691e9d7 (diff)
downloadFreeBSD-src-cea060d682520e7be22be9111ea74d28f51de01a.zip
FreeBSD-src-cea060d682520e7be22be9111ea74d28f51de01a.tar.gz
Remove the MD isa_irq_pending() and the underlying PCI-specific
infrastructure. Its only consumer ever was sio(4) and thus was unused on sparc64 since removing the last traces of sio(4) in sparc64 configuration files in favor for uart(4) over three years ago. If similar functionality is required again it should be brought back as an MD intr_pending() which works for all busses by using for example interrupt controller hooks.
Diffstat (limited to 'sys/sparc64/isa')
-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