Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/pci Report the same PCI domain (cf_uni...



details:   https://anonhg.NetBSD.org/src/rev/cedaeecc284b
branches:  trunk
changeset: 797743:cedaeecc284b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jul 26 07:53:14 2014 +0000

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

diffstat:

 sys/external/bsd/drm2/pci/drm_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8ff2b57374d7 -r cedaeecc284b sys/external/bsd/drm2/pci/drm_pci.c
--- a/sys/external/bsd/drm2/pci/drm_pci.c       Sat Jul 26 07:36:09 2014 +0000
+++ b/sys/external/bsd/drm2/pci/drm_pci.c       Sat Jul 26 07:53:14 2014 +0000
@@ -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 @@
 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;



Home | Main Index | Thread Index | Old Index