From owner-svn-src-projects@FreeBSD.ORG Fri May 20 14:26:14 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36CFB1065672; Fri, 20 May 2011 14:26:14 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 26A9D8FC12; Fri, 20 May 2011 14:26:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4KEQEbO088033; Fri, 20 May 2011 14:26:14 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4KEQERk088031; Fri, 20 May 2011 14:26:14 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201105201426.p4KEQERk088031@svn.freebsd.org> From: Nathan Whitehorn Date: Fri, 20 May 2011 14:26:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222129 - projects/pseries/powerpc/pseries X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 14:26:14 -0000 Author: nwhitehorn Date: Fri May 20 14:26:13 2011 New Revision: 222129 URL: http://svn.freebsd.org/changeset/base/222129 Log: A small nit: RTAS (and this driver) support multi-domain PCI systems, so set the PCI domain to the PCI root bus unit number. This may be overkill, but is guaranteed to work. Modified: projects/pseries/powerpc/pseries/rtas_pci.c Modified: projects/pseries/powerpc/pseries/rtas_pci.c ============================================================================== --- projects/pseries/powerpc/pseries/rtas_pci.c Fri May 20 14:22:10 2011 (r222128) +++ projects/pseries/powerpc/pseries/rtas_pci.c Fri May 20 14:26:13 2011 (r222129) @@ -390,7 +390,7 @@ rtaspci_read_ivar(device_t dev, device_t switch (which) { case PCIB_IVAR_DOMAIN: - *result = 0; + *result = device_get_unit(dev); return (0); case PCIB_IVAR_BUS: *result = sc->sc_bus;