From ca3d37955c7c41e64a80c97b3f1c1fa4e9ff4897 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 15 Sep 2008 22:26:32 +0000 Subject: Rework the handling of interrupt handlers for children of ppc and ppbus: - Retire IVARs for passing IRQs around. Instead, ppbus and ppc now allow child devices to access the interrupt by via a rid 0 IRQ resource using bus_alloc_resource_any(). - ppc creates its own interrupt event to manage the interrupt handlers of child devices. ppc does not allow child devices to use filters. It could allow this if needed, but none of the current drivers use them and it adds a good bit of complication. It uses intr_event_execute_handlers() to fire the child device interrupt handlers from its threaded interrupt handler. - Remove the ppbus_dummy_intr() hack. Now the ppc device always has an interrupt handler registered and we no longer bounce all the way up to nexus to manage adding/removing ppbus child interrupt handlers. Instead, the child handlers are added and removed to the private interrupt event in the ppc device. --- sys/dev/ppc/ppcreg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/ppc/ppcreg.h') diff --git a/sys/dev/ppc/ppcreg.h b/sys/dev/ppc/ppcreg.h index 25f3fc2db852..8464f9c0a3df 100644 --- a/sys/dev/ppc/ppcreg.h +++ b/sys/dev/ppc/ppcreg.h @@ -109,7 +109,8 @@ struct ppc_data { void *intr_cookie; - int ppc_registered; /* 1 if ppcintr() is the registered interrupt */ + struct intr_event *ppc_intr_event; + int ppc_child_handlers; }; /* -- cgit v1.3