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

John Baldwin jhb at FreeBSD.org
Thu Mar 20 14:24:33 PDT 2008


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


More information about the cvs-all mailing list