From owner-cvs-all@FreeBSD.ORG Mon May 3 07:52:43 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1662C16A4CE; Mon, 3 May 2004 07:52:43 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E947643D39; Mon, 3 May 2004 07:52:42 -0700 (PDT) (envelope-from jhb@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 i43EqgGe036132; Mon, 3 May 2004 07:52:42 -0700 (PDT) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i43Eqf6P036100; Mon, 3 May 2004 07:52:42 -0700 (PDT) (envelope-from jhb) Message-Id: <200405031452.i43Eqf6P036100@repoman.freebsd.org> From: John Baldwin Date: Mon, 3 May 2004 07:52:41 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/isa atpic.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 14:52:43 -0000 jhb 2004/05/03 07:52:41 PDT FreeBSD src repository Modified files: sys/i386/isa atpic.c Log: - Add an IMEN_MASK macro that returns the 8-bit bitmask of an atpic interrupt source. - Only do an outb() to the PIC to clear a bit in imen if the bit is set. - Add a NUM_ISA_IRQS macro to replace uglier 'sizeof(array) / sizeof(member)' expressions along with a CTASSERT() to ensure that the macro is correct. Revision Changes Path 1.11 +16 -8 src/sys/i386/isa/atpic.c