Module Name:    src
Committed By:   riastradh
Date:           Sat Jul 26 07:53:14 UTC 2014

Modified Files:
        src/sys/external/bsd/drm2/pci: drm_pci.c

Log Message:
Report the same PCI domain (cf_unit) as everything else in NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/pci/drm_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/pci/drm_pci.c
diff -u src/sys/external/bsd/drm2/pci/drm_pci.c:1.5 src/sys/external/bsd/drm2/pci/drm_pci.c:1.6
--- src/sys/external/bsd/drm2/pci/drm_pci.c:1.5	Thu Jul 17 21:13:49 2014
+++ src/sys/external/bsd/drm2/pci/drm_pci.c	Sat Jul 26 07:53:14 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: drm_pci.c,v 1.5 2014/07/17 21:13:49 riastradh Exp $	*/
+/*	$NetBSD: drm_pci.c,v 1.6 2014/07/26 07:53:14 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.5 2014/07/17 21:13:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.6 2014/07/26 07:53:14 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/errno.h>
@@ -280,7 +280,7 @@ drm_pci_get_name(struct drm_device *dev)
 static int
 drm_pci_format_unique(struct drm_device *dev, char *buf, size_t size)
 {
-	const unsigned int domain = 0; /* XXX PCI domains? */
+	const unsigned int domain = device_unit(device_parent(dev->dev));
 	const unsigned int bus = dev->pdev->pd_pa.pa_bus;
 	const unsigned int device = dev->pdev->pd_pa.pa_device;
 	const unsigned int function = dev->pdev->pd_pa.pa_function;

Reply via email to