From owner-cvs-src@FreeBSD.ORG Wed Apr 21 13:19:57 2004 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 275CA16A4CE; Wed, 21 Apr 2004 13:19:57 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 233A143D31; Wed, 21 Apr 2004 13:19:57 -0700 (PDT) (envelope-from imp@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 i3LKJuGe063883; Wed, 21 Apr 2004 13:19:56 -0700 (PDT) (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3LKJuiQ063882; Wed, 21 Apr 2004 13:19:56 -0700 (PDT) (envelope-from imp) Message-Id: <200404212019.i3LKJuiQ063882@repoman.freebsd.org> From: Warner Losh Date: Wed, 21 Apr 2004 13:19:56 -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/dev/pci pci.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, 21 Apr 2004 20:19:57 -0000 imp 2004/04/21 13:19:56 PDT FreeBSD src repository Modified files: sys/dev/pci pci.c Log: ata devices in legacy are special, and we must treat them as such. While I would have prefered to have a solution that didn't move knowledge of this into the pci layer. However, this is literally the only exception that's listed in the PCI standard to the usual way of decoding BARs. atapci devices in legacy mode now ignore the first 4 bars and hard code the values to the legacy ide values (well, for each of the controllers that are in legacy mode). The 5th bar is handled normally. Remove the zero bar handling. zero bars should be ignored at all other times, and since we handle that specially, we don't need the older workaround. Revision Changes Path 1.247 +99 -45 src/sys/dev/pci/pci.c