From owner-svn-src-head@freebsd.org Thu Apr 28 17:50:17 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 639F3B1F033; Thu, 28 Apr 2016 17:50:17 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1CEF2126C; Thu, 28 Apr 2016 17:50:17 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3SHoGsn015775; Thu, 28 Apr 2016 17:50:16 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3SHoG1x015773; Thu, 28 Apr 2016 17:50:16 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201604281750.u3SHoG1x015773@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Thu, 28 Apr 2016 17:50:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298749 - head/share/man/man9 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2016 17:50:17 -0000 Author: jhb Date: Thu Apr 28 17:50:16 2016 New Revision: 298749 URL: https://svnweb.freebsd.org/changeset/base/298749 Log: Document PCI_RES_BUS as a possible resource type. Modified: head/share/man/man9/bus_activate_resource.9 head/share/man/man9/bus_alloc_resource.9 Modified: head/share/man/man9/bus_activate_resource.9 ============================================================================== --- head/share/man/man9/bus_activate_resource.9 Thu Apr 28 17:48:52 2016 (r298748) +++ head/share/man/man9/bus_activate_resource.9 Thu Apr 28 17:50:16 2016 (r298749) @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 28, 2003 +.Dd April 28, 2016 .Dt BUS_ACTIVATE_RESOURCE 9 .Os .Sh NAME @@ -65,6 +65,8 @@ The type of resource you want to allocat It is one of: .Pp .Bl -tag -width ".Dv SYS_RES_MEMORY" -compact +.It Dv PCI_RES_BUS +for PCI bus numbers .It Dv SYS_RES_IRQ for IRQs .It Dv SYS_RES_DRQ Modified: head/share/man/man9/bus_alloc_resource.9 ============================================================================== --- head/share/man/man9/bus_alloc_resource.9 Thu Apr 28 17:48:52 2016 (r298748) +++ head/share/man/man9/bus_alloc_resource.9 Thu Apr 28 17:50:16 2016 (r298749) @@ -95,6 +95,8 @@ Before allocation, the resource is owned is the type of resource you want to allocate. It is one of: .Bl -tag -width SYS_RES_MEMORY +.It Dv PCI_RES_BUS +for PCI bus numbers .It Dv SYS_RES_IRQ for IRQs .It Dv SYS_RES_DRQ @@ -111,7 +113,7 @@ For ISA this is an index into an array o for this device by either the PnP mechanism, or via the hints mechanism. For PCCARD, this is an index into the array of resources described by the PC Card's CIS entry. -For PCI, the offset into pci config space which has the BAR to use to access +For PCI, the offset into PCI config space which has the BAR to use to access the resource. The bus methods are free to change the RIDs that they are given as a parameter. You must not depend on the value you gave it earlier.