Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Nov 2003 13:25:52 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/i386 intr_machdep.c src/sys/i386/include intr_machdep.h
Message-ID:  <200311032125.hA3LPqnw091392@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2003/11/03 13:25:52 PST

  FreeBSD src repository

  Added files:
    sys/i386/i386        intr_machdep.c 
    sys/i386/include     intr_machdep.h 
  Log:
  New device interrupt code.  This defines an interrupt source abstraction
  that provides methods via a PIC driver to do things like mask a source,
  unmask a source, enable it when the first interrupt handler is added, etc.
  The interrupt code provides a table of interrupt sources indexed by IRQ
  numbers, or vectors.  These vectors are what new-bus uses for its IRQ
  resources and for bus_setup_intr()/bus_teardown_intr().  The interrupt
  code then maps that vector a given interrupt source object.  When an
  interrupt comes in, the low-level interrupt code looks up the interrupt
  source for the source that triggered the interrupt and hands it off to
  this code to execute the appropriate handlers.
  
  By having an interrupt source abstraction, this allows us to have different
  types of interrupt source providers within the shared IRQ address space.
  For example, IRQ 0 may map to pin 0 of the master 8259A PIC, IRQs 1
  through 60 may map to pins on various I/O APICs, and IRQs 120 through
  128 may map to MSI interrupts for various PCI devices.
  
  Revision  Changes    Path
  1.1       +296 -0    src/sys/i386/i386/intr_machdep.c (new)
  1.1       +91 -0     src/sys/i386/include/intr_machdep.h (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311032125.hA3LPqnw091392>