From owner-cvs-src@FreeBSD.ORG Mon Sep 15 22:26:43 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 290611065816; Mon, 15 Sep 2008 22:26:43 +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 B49898FC1A; Mon, 15 Sep 2008 22:26:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8FMQgUr014695; Mon, 15 Sep 2008 22:26:42 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8FMQghN014694; Mon, 15 Sep 2008 22:26:42 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200809152226.m8FMQghN014694@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Mon, 15 Sep 2008 22:26:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2008 22:26:43 -0000 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