From owner-p4-projects@FreeBSD.ORG Mon Feb 9 21:54:39 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1530616A4D0; Mon, 9 Feb 2004 21:54:39 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE21616A4CE for ; Mon, 9 Feb 2004 21:54:38 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC53543D1D for ; Mon, 9 Feb 2004 21:54:38 -0800 (PST) (envelope-from scottl@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i1A5scGe033818 for ; Mon, 9 Feb 2004 21:54:38 -0800 (PST) (envelope-from scottl@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i1A5sclu033815 for perforce@freebsd.org; Mon, 9 Feb 2004 21:54:38 -0800 (PST) (envelope-from scottl@freebsd.org) Date: Mon, 9 Feb 2004 21:54:38 -0800 (PST) Message-Id: <200402100554.i1A5sclu033815@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to scottl@freebsd.org using -f From: Scott Long To: Perforce Change Reviews Subject: PERFORCE change 46737 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2004 05:54:39 -0000 http://perforce.freebsd.org/chv.cgi?CH=46737 Change 46737 by scottl@scottl-newint on 2004/02/09 21:53:50 sys/sys/bus.h: Change the interrupt handler prototype and define some return values. With this change, LINT will not compile until everything is converted. Affected files ... .. //depot/projects/newint/sys/sys/bus.h#2 edit Differences ... ==== //depot/projects/newint/sys/sys/bus.h#2 (text+ko) ==== @@ -88,7 +88,14 @@ typedef struct devclass *devclass_t; #define device_method_t kobj_method_t -typedef void driver_intr_t(void*); +enum intr_rtn { + INTR_RTN_NONE = 0, /* No action. Default compat for now */ + INTR_RTN_OWNER = 1, /* Driver hardware generated the interrupt */ + INTR_RTN_HANDLED = 2, /* Driver acknowledged the interrupt */ + INTR_RTN_ITHREAD = 4 /* Driver wants to run its ithread */ +}; + +typedef int driver_intr_t(void*); /* * Interrupt type bits. These flags are used both by newbus interrupt