aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/powermac/hrowpicvar.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2007-08-11 19:25:32 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2007-08-11 19:25:32 +0000
commit77d40ffd9877d089982d29a457bd816a1e72b19a (patch)
tree5173256f6143a83fb0650d3f3d3b059f81b0c1b3 /sys/powerpc/powermac/hrowpicvar.h
parent93cccbf874db5f7805f2729d088e68ac45bfdc34 (diff)
downloadsrc-77d40ffd9877d089982d29a457bd816a1e72b19a.tar.gz
src-77d40ffd9877d089982d29a457bd816a1e72b19a.zip
Revamp the interrupt handling in support of INTR_FILTER. This includes:
o Revamp the PIC I/F to only abstract the PIC hardware. The resource handling has been moved to nexus, where it belongs. o Include EOI and MASK+EOI methods to the PIC I/F in support of INTR_FILTER. o With the allocation of interrupt resources and setup of interrupt handlers in the common platform code we can delay talking to the PIC hardware after enumeration of all devices. Introduce a call to powerpc_intr_enable() in configure_final() to achieve that and have powerpc_setup_intr() only program the PIC when !cold. o As a consequence of the above, remove all early_attach() glue from the OpenPIC and Heathrow PIC drivers and have them register themselves when they're found during enumeration. o Decouple the interrupt vector from the interrupt request line. Allocate vectors increasingly so that they can be used for the intrcnt index as well. Extend the Heathrow PIC driver to translate between IRQ and vector. The OpenPIC driver already has the support for vectors in hardware. Approved by: re (blanket)
Notes
Notes: svn path=/head/; revision=171805
Diffstat (limited to 'sys/powerpc/powermac/hrowpicvar.h')
-rw-r--r--sys/powerpc/powermac/hrowpicvar.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/powerpc/powermac/hrowpicvar.h b/sys/powerpc/powermac/hrowpicvar.h
index 6a536ccb4d44..ac643f574d48 100644
--- a/sys/powerpc/powermac/hrowpicvar.h
+++ b/sys/powerpc/powermac/hrowpicvar.h
@@ -62,16 +62,14 @@
#define HPIC_1ST_OFFSET 0x10 /* offset to primary reg bank */
-
struct hrowpic_softc {
- struct rman sc_rman; /* resource mgr for IRQs */
- u_int32_t sc_irq[HROWPIC_IRQMAX]; /* allocated IRQ flags */
- u_int32_t sc_softreg[2]; /* ENABLE reg copy */
- device_t sc_maciodev; /* macio device */
- struct resource *sc_memr; /* macio bus resource */
+ device_t sc_dev; /* macio device */
+ struct resource *sc_rres; /* macio bus resource */
bus_space_tag_t sc_bt; /* macio bus tag/handle */
bus_space_handle_t sc_bh;
+ int sc_rrid;
+ uint32_t sc_softreg[2]; /* ENABLE reg copy */
+ u_int sc_vector[HROWPIC_IRQMAX];
};
-
#endif /* _POWERPC_POWERMAC_HROWPICVAR_H_ */