Date: Thu, 20 Mar 2008 21:24:33 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/amd64/amd64 nexus.c src/sys/i386/i386 nexus.c src/sys/kern bus_if.m subr_bus.c src/sys/sys bus.h Message-ID: <200803202124.m2KLOXwn081891@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2008-03-20 21:24:32 UTC
FreeBSD src repository
Modified files:
sys/amd64/amd64 nexus.c
sys/i386/i386 nexus.c
sys/kern bus_if.m subr_bus.c
sys/sys bus.h
Log:
Implement a BUS_BIND_INTR() method in the bus interface to bind an IRQ
resource to a CPU. The default method is to pass the request up to the
parent similar to BUS_CONFIG_INTR() so that all busses don't have to
explicitly implement bus_bind_intr. A bus_bind_intr(9) wrapper routine
similar to bus_setup/teardown_intr() is added for device drivers to use.
Unbinding an interrupt is done by binding it to NOCPU. The IRQ resource
must be allocated, but it can happen in any order with respect to
bus_setup_intr(). Currently it is only supported on amd64 and i386 via
nexus(4) methods that simply call the intr_bind() routine.
Tested by: gallatin
Revision Changes Path
1.80 +14 -0 src/sys/amd64/amd64/nexus.c
1.75 +14 -0 src/sys/i386/i386/nexus.c
1.35 +17 -0 src/sys/kern/bus_if.m
1.207 +31 -0 src/sys/kern/subr_bus.c
1.81 +3 -0 src/sys/sys/bus.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803202124.m2KLOXwn081891>
