cvs commit: src/sys/dev/ppbus if_plip.c lpt.c ppbconf.c ppbconf.h
ppi.c pps.c src/sys/dev/ppc ppc.c ppc_acpi.c ppc_isa.c ppc_pci.c
ppc_puc.c ppcreg.h ppcvar.h
John Baldwin
jhb at FreeBSD.org
Mon Sep 15 22:26:43 UTC 2008
jhb 2008-09-15 22:26:32 UTC
FreeBSD src repository
Modified files:
sys/dev/ppbus if_plip.c lpt.c ppbconf.c ppbconf.h ppi.c
pps.c
sys/dev/ppc ppc.c ppc_acpi.c ppc_isa.c ppc_pci.c
ppc_puc.c ppcreg.h ppcvar.h
Log:
SVN rev 183053 on 2008-09-15 22:26:32Z by jhb
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.
Revision Changes Path
1.46 +12 -27 src/sys/dev/ppbus/if_plip.c
1.41 +5 -11 src/sys/dev/ppbus/lpt.c
1.29 +2 -38 src/sys/dev/ppbus/ppbconf.c
1.21 +0 -5 src/sys/dev/ppbus/ppbconf.h
1.42 +3 -7 src/sys/dev/ppbus/ppi.c
1.53 +5 -9 src/sys/dev/ppbus/pps.c
1.59 +102 -58 src/sys/dev/ppc/ppc.c
1.3 +2 -1 src/sys/dev/ppc/ppc_acpi.c
1.4 +3 -2 src/sys/dev/ppc/ppc_isa.c
1.2 +2 -1 src/sys/dev/ppc/ppc_pci.c
1.6 +2 -1 src/sys/dev/ppc/ppc_puc.c
1.18 +2 -1 src/sys/dev/ppc/ppcreg.h
1.6 +4 -0 src/sys/dev/ppc/ppcvar.h
More information about the cvs-src
mailing list