summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppc/ppcreg.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-09-15 22:26:32 +0000
committerjhb <jhb@FreeBSD.org>2008-09-15 22:26:32 +0000
commitc0edaf988ab997509a5c7a738c5fb5c5305cc014 (patch)
treec5d594dd29d8cb1dbd07768c75b6649ad621cee2 /sys/dev/ppc/ppcreg.h
parenta55e334c2b95f0796667f2ecdd2434e08fe6f8fc (diff)
downloadFreeBSD-src-c0edaf988ab997509a5c7a738c5fb5c5305cc014.zip
FreeBSD-src-c0edaf988ab997509a5c7a738c5fb5c5305cc014.tar.gz
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.
Diffstat (limited to 'sys/dev/ppc/ppcreg.h')
-rw-r--r--sys/dev/ppc/ppcreg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ppc/ppcreg.h b/sys/dev/ppc/ppcreg.h
index 25f3fc2..8464f9c 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;
};
/*
OpenPOWER on IntegriCloud