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 drm_pci_device_is_agp is no more; ...



details:   https://anonhg.NetBSD.org/src/rev/ecee208e16d7
branches:  trunk
changeset: 1027888:ecee208e16d7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:04:26 2021 +0000

description:
drm_pci_device_is_agp is no more; just test PCI cap.

diffstat:

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

diffs (27 lines):

diff -r 01a1ddae27b1 -r ecee208e16d7 sys/external/bsd/drm2/pci/drm_pci.c
--- a/sys/external/bsd/drm2/pci/drm_pci.c       Sun Dec 19 01:04:19 2021 +0000
+++ b/sys/external/bsd/drm2/pci/drm_pci.c       Sun Dec 19 01:04:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_pci.c,v 1.33 2020/02/14 04:29:19 riastradh Exp $   */
+/*     $NetBSD: drm_pci.c,v 1.34 2021/12/19 01:04:26 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.33 2020/02/14 04:29:19 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.34 2021/12/19 01:04:26 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/errno.h>
@@ -127,7 +127,7 @@
 
        /* Set up AGP stuff if requested.  */
        if (drm_core_check_feature(dev, DRIVER_USE_AGP)) {
-               if (drm_pci_device_is_agp(dev))
+               if (pci_find_capability(dev->pdev, PCI_CAP_ID_AGP))
                        dev->agp = drm_agp_init(dev);
                if (dev->agp)
                        dev->agp->agp_mtrr = arch_phys_wc_add(dev->agp->base,



Home | Main Index | Thread Index | Old Index