Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2011 14:26:14 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r222129 - projects/pseries/powerpc/pseries
Message-ID:  <201105201426.p4KEQERk088031@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105201426.p4KEQERk088031>