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/linux Stub dev_is_pci



details:   https://anonhg.NetBSD.org/src/rev/3cbdb60bda71
branches:  trunk
changeset: 1028207:3cbdb60bda71
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 09:49:39 2021 +0000

description:
Stub dev_is_pci


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/include/linux/pci.h |   3 ++-
 sys/external/bsd/drm2/linux/linux_pci.c   |  10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r a422d2d804b5 -r 3cbdb60bda71 sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Sun Dec 19 09:49:31 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Sun Dec 19 09:49:39 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci.h,v 1.44 2021/12/19 01:48:12 riastradh Exp $       */
+/*     $NetBSD: pci.h,v 1.45 2021/12/19 09:49:39 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -306,5 +306,6 @@
 
 void           pci_save_state(struct pci_dev *);
 void           pci_restore_state(struct pci_dev *);
+bool           dev_is_pci(struct pci_dev *);
 
 #endif  /* _LINUX_PCI_H_ */
diff -r a422d2d804b5 -r 3cbdb60bda71 sys/external/bsd/drm2/linux/linux_pci.c
--- a/sys/external/bsd/drm2/linux/linux_pci.c   Sun Dec 19 09:49:31 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_pci.c   Sun Dec 19 09:49:39 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_pci.c,v 1.14 2021/12/19 01:48:13 riastradh Exp $ */
+/*     $NetBSD: linux_pci.c,v 1.15 2021/12/19 09:49:39 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.14 2021/12/19 01:48:13 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.15 2021/12/19 09:49:39 riastradh Exp $");
 
 #include <linux/pci.h>
 
@@ -783,3 +783,9 @@
        KASSERT(pdev->pd_saved_state == NULL);
        KASSERT(pdev->pd_intr_handles == NULL);
 }
+
+bool
+dev_is_pci(struct pci_dev *pdev)
+{
+       return pdev != NULL;
+}



Home | Main Index | Thread Index | Old Index