diff options
author | Marius Strobl <marius@FreeBSD.org> | 2008-04-26 11:01:38 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2008-04-26 11:01:38 +0000 |
commit | b7ee09f7b0564ef74f4d34d1bbb0179b8d936ca8 (patch) | |
tree | 6671742869f22d63c49a444ca1faad75eaf388f4 /sys/sparc64/isa | |
parent | 4eee14cb27a9ac8cb627fc1ff5a4a21bdc92a3c0 (diff) | |
download | src-b7ee09f7b0564ef74f4d34d1bbb0179b8d936ca8.tar.gz src-b7ee09f7b0564ef74f4d34d1bbb0179b8d936ca8.zip |
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.
Notes
Notes:
svn path=/head/; revision=178579
Diffstat (limited to 'sys/sparc64/isa')
-rw-r--r-- | sys/sparc64/isa/isa.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/sparc64/isa/isa.c b/sys/sparc64/isa/isa.c index 78ea93f354fb..be76e011d5b6 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) |