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 Misc stubs.



details:   https://anonhg.NetBSD.org/src/rev/d0331db2300f
branches:  trunk
changeset: 1028351:d0331db2300f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 10:47:13 2021 +0000

description:
Misc stubs.

diffstat:

 sys/external/bsd/drm2/drm/drm_memory.c        |  12 ++++++++++--
 sys/external/bsd/drm2/linux/linux_writecomb.c |  17 +++++++++++++++--
 2 files changed, 25 insertions(+), 4 deletions(-)

diffs (72 lines):

diff -r 94feed6f2017 -r d0331db2300f sys/external/bsd/drm2/drm/drm_memory.c
--- a/sys/external/bsd/drm2/drm/drm_memory.c    Sun Dec 19 10:47:06 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_memory.c    Sun Dec 19 10:47:13 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_memory.c,v 1.16 2021/12/19 10:36:13 riastradh Exp $        */
+/*     $NetBSD: drm_memory.c,v 1.17 2021/12/19 10:47:13 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_memory.c,v 1.16 2021/12/19 10:36:13 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_memory.c,v 1.17 2021/12/19 10:47:13 riastradh Exp $");
 
 #if defined(__i386__) || defined(__x86_64__)
 
@@ -73,6 +73,7 @@
 
 #include <drm/drm_device.h>
 #include <drm/drm_drv.h>
+#include <drm/drm_cache.h>
 #include <drm/drm_legacy.h>
 #include <drm/drm_pci.h>
 #include <drm/drm_print.h>
@@ -346,3 +347,10 @@
        /* Success!  */
        return 0;
 }
+
+bool
+drm_need_swiotlb(int dma_bits)
+{
+
+       return false;
+}
diff -r 94feed6f2017 -r d0331db2300f sys/external/bsd/drm2/linux/linux_writecomb.c
--- a/sys/external/bsd/drm2/linux/linux_writecomb.c     Sun Dec 19 10:47:06 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_writecomb.c     Sun Dec 19 10:47:13 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_writecomb.c,v 1.8 2018/08/27 14:42:23 riastradh Exp $    */
+/*     $NetBSD: linux_writecomb.c,v 1.9 2021/12/19 10:47:13 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_writecomb.c,v 1.8 2018/08/27 14:42:23 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_writecomb.c,v 1.9 2021/12/19 10:47:13 riastradh Exp $");
 
 #if defined(__i386__) || defined(__x86_64__)
 #define HAS_MTRR 1
@@ -157,3 +157,16 @@
        /* XXX Actually implement this...requires changes to our MTRR API.  */
        return handle;
 }
+
+/* XXX Reserve PAT space on x86.  */
+
+int
+arch_io_reserve_memtype_wc(resource_size_t start, resource_size_t size)
+{
+       return 0;
+}
+
+void
+arch_io_free_memtype_wc(resource_size_t start, resource_size_t size)
+{
+}



Home | Main Index | Thread Index | Old Index