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 Define pci_is_thunderbolt_attach...



details:   https://anonhg.NetBSD.org/src/rev/53b67c84cbc4
branches:  trunk
changeset: 1028078:53b67c84cbc4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:48:12 2021 +0000

description:
Define pci_is_thunderbolt_attached (answer: no).

diffstat:

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

diffs (58 lines):

diff -r d3af9a5c8016 -r 53b67c84cbc4 sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Sun Dec 19 01:48:03 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Sun Dec 19 01:48:12 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci.h,v 1.43 2021/12/19 01:23:01 riastradh Exp $       */
+/*     $NetBSD: pci.h,v 1.44 2021/12/19 01:48:12 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -209,6 +209,7 @@
 #define        pci_iounmap                     linux_pci_iounmap
 #define        pci_is_pcie                     linux_pci_is_pcie
 #define        pci_is_root_bus                 linux_pci_is_root_bus
+#define        pci_is_thunderbolt_attached     linux_pci_is_thunderbolt_attached
 #define        pci_map_rom                     linux_pci_map_rom
 #define        pci_platform_rom                linux_pci_platform_rom
 #define        pci_read_config_byte            linux_pci_read_config_byte
@@ -247,6 +248,7 @@
 int            pci_find_capability(struct pci_dev *, int);
 bool           pci_is_pcie(struct pci_dev *);
 bool           pci_dma_supported(struct pci_dev *, uintmax_t);
+bool           pci_is_thunderbolt_attached(struct pci_dev *);
 
 int            pci_read_config_dword(struct pci_dev *, int, uint32_t *);
 int            pci_read_config_word(struct pci_dev *, int, uint16_t *);
diff -r d3af9a5c8016 -r 53b67c84cbc4 sys/external/bsd/drm2/linux/linux_pci.c
--- a/sys/external/bsd/drm2/linux/linux_pci.c   Sun Dec 19 01:48:03 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_pci.c   Sun Dec 19 01:48:12 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_pci.c,v 1.13 2021/12/19 01:46:52 riastradh Exp $ */
+/*     $NetBSD: linux_pci.c,v 1.14 2021/12/19 01:48:13 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.13 2021/12/19 01:46:52 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.14 2021/12/19 01:48:13 riastradh Exp $");
 
 #include <linux/pci.h>
 
@@ -688,6 +688,14 @@
 }
 
 bool
+pci_is_thunderbolt_attached(struct pci_dev *pdev)
+{
+
+       /* XXX Cop-out.  */
+       return false;
+}
+
+bool
 pci_is_root_bus(struct pci_bus *bus)
 {
 



Home | Main Index | Thread Index | Old Index