From owner-cvs-src-old@FreeBSD.ORG Tue Jul 21 19:07:17 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00D73106566B for ; Tue, 21 Jul 2009 19:07:17 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E240B8FC19 for ; Tue, 21 Jul 2009 19:07:16 +0000 (UTC) (envelope-from marius@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 n6LJ7Gku085385 for ; Tue, 21 Jul 2009 19:07:16 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6LJ7G1C085384 for cvs-src-old@freebsd.org; Tue, 21 Jul 2009 19:07:16 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <200907211907.n6LJ7G1C085384@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Tue, 21 Jul 2009 19:06:39 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/pci pci.c src/sys/sparc64/include param.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 19:07:17 -0000 marius 2009-07-21 19:06:39 UTC FreeBSD src repository Modified files: sys/dev/pci pci.c sys/sparc64/include param.h Log: SVN rev 195808 on 2009-07-21 19:06:39Z by marius Add a MD __PCI_BAR_ZERO_VALID which denotes that BARs containing 0 actually specify valid bases that should be treated just as normal. The PCI specifications have no indication that 0 would be a magic value indicating a disabled BAR as commonly used on at least amd64 and i386 but not sparc64. It's unclear what to do in pci_delete_resource() instead of writing 0 to a BAR though as there's no (other) way do disable individual BARs so its decoding is left enabled in case of __PCI_BAR_ZERO_VALID for now. Approved by: re (kib), jhb MFC after: 1 week Revision Changes Path 1.386 +15 -8 src/sys/dev/pci/pci.c 1.28 +2 -0 src/sys/sparc64/include/param.h