From owner-cvs-src-old@FreeBSD.ORG Thu Oct 15 14:58:19 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D85C8106566B for ; Thu, 15 Oct 2009 14:58:19 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A96BF8FC20 for ; Thu, 15 Oct 2009 14:58:19 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9FEwJw2029970 for ; Thu, 15 Oct 2009 14:58:19 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9FEwJfQ029969 for cvs-src-old@freebsd.org; Thu, 15 Oct 2009 14:58:19 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200910151458.n9FEwJfQ029969@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Thu, 15 Oct 2009 14:54:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/share/man/man9 BUS_DESCRIBE_INTR.9 Makefile src/sys/amd64/amd64 intr_machdep.c nexus.c src/sys/amd64/include intr_machdep.h src/sys/i386/i386 intr_machdep.c nexus.c src/sys/i386/include intr_machdep.h src/sys/kern bus_if.m ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 14:58:19 -0000 jhb 2009-10-15 14:54:35 UTC FreeBSD src repository Modified files: share/man/man9 Makefile sys/amd64/amd64 intr_machdep.c nexus.c sys/amd64/include intr_machdep.h sys/i386/i386 intr_machdep.c nexus.c sys/i386/include intr_machdep.h sys/kern bus_if.m kern_intr.c subr_bus.c sys/sys bus.h interrupt.h Added files: share/man/man9 BUS_DESCRIBE_INTR.9 Log: SVN rev 198134 on 2009-10-15 14:54:35Z by jhb Add a facility for associating optional descriptions with active interrupt handlers. This is primarily intended as a way to allow devices that use multiple interrupts (e.g. MSI) to meaningfully distinguish the various interrupt handlers. - Add a new BUS_DESCRIBE_INTR() method to the bus interface to associate a description with an active interrupt handler setup by BUS_SETUP_INTR. It has a default method (bus_generic_describe_intr()) which simply passes the request up to the parent device. - Add a bus_describe_intr() wrapper around BUS_DESCRIBE_INTR() that supports printf(9) style formatting using var args. - Reserve MAXCOMLEN bytes in the intr_handler structure to hold the name of an interrupt handler and copy the name passed to intr_event_add_handler() into that buffer instead of just saving the pointer to the name. - Add a new intr_event_describe_handler() which appends a description string to an interrupt handler's name. - Implement support for interrupt descriptions on amd64 and i386 by having the nexus(4) driver supply a custom bus_describe_intr method that invokes a new intr_describe() MD routine which in turn looks up the associated interrupt event and invokes intr_event_describe_handler(). Requested by: many Reviewed by: scottl MFC after: 2 weeks Revision Changes Path 1.1 +104 -0 src/share/man/man9/BUS_DESCRIBE_INTR.9 (new) 1.363 +2 -0 src/share/man/man9/Makefile 1.46 +17 -0 src/sys/amd64/amd64/intr_machdep.c 1.81 +12 -0 src/sys/amd64/amd64/nexus.c 1.25 +1 -0 src/sys/amd64/include/intr_machdep.h 1.42 +17 -0 src/sys/i386/i386/intr_machdep.c 1.76 +12 -0 src/sys/i386/i386/nexus.c 1.26 +1 -0 src/sys/i386/include/intr_machdep.h 1.38 +19 -1 src/sys/kern/bus_if.m 1.173 +57 -2 src/sys/kern/kern_intr.c 1.232 +40 -0 src/sys/kern/subr_bus.c 1.90 +5 -0 src/sys/sys/bus.h 1.46 +3 -1 src/sys/sys/interrupt.h