From owner-cvs-src@FreeBSD.ORG Tue Sep 9 23:00:54 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B83516A4BF; Tue, 9 Sep 2003 23:00:54 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95CE843FB1; Tue, 9 Sep 2003 23:00:53 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h8A60r0U056048; Tue, 9 Sep 2003 23:00:53 -0700 (PDT) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h8A60rXc056047; Tue, 9 Sep 2003 23:00:53 -0700 (PDT) Message-Id: <200309100600.h8A60rXc056047@repoman.freebsd.org> From: John Baldwin Date: Tue, 9 Sep 2003 23:00:53 -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/pci pci_cfgreg.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 10 Sep 2003 06:00:54 -0000 jhb 2003/09/09 23:00:53 PDT FreeBSD src repository Modified files: sys/i386/pci pci_cfgreg.c Log: We represent PCI intpin's two different ways. One is the way that the intpin register is expressed in hardware where 0 means none, 1 means INTA, 2 INTB, etc. The other way is commonly used in loops where 0 means INTA, 1 means INTB, etc. The matchpin argument to pci_cfgintr_search() is supposed to be the first form, but we passsed in a loop index of the second. This fix adds one to the loop index to convert to the first form. Reported by: Pavlin Radoslavov Revision Changes Path 1.105 +1 -1 src/sys/i386/pci/pci_cfgreg.c