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/dist/drm/i915 Add netbsd-ified i915_ge...



details:   https://anonhg.NetBSD.org/src/rev/78a50885d484
branches:  trunk
changeset: 1028624:78a50885d484
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:31:40 2021 +0000

description:
Add netbsd-ified i915_gem_gtt_{prepare,finish}_pages prototypes


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 83f65a269ebd -r 78a50885d484 sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h        Sun Dec 19 11:31:33 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h        Sun Dec 19 11:31:40 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_gtt.h,v 1.9 2021/12/18 23:45:28 riastradh Exp $       */
+/*     $NetBSD: i915_gem_gtt.h,v 1.10 2021/12/19 11:31:40 riastradh Exp $      */
 
 /* SPDX-License-Identifier: MIT */
 /*
@@ -19,10 +19,17 @@
 struct drm_i915_gem_object;
 struct i915_address_space;
 
+#ifdef __NetBSD__
+int __must_check i915_gem_gtt_prepare_pages(struct drm_i915_gem_object *obj,
+                                           bus_dmamap_t pages);
+void i915_gem_gtt_finish_pages(struct drm_i915_gem_object *obj,
+                              bus_dmamap_t pages);
+#else
 int __must_check i915_gem_gtt_prepare_pages(struct drm_i915_gem_object *obj,
                                            struct sg_table *pages);
 void i915_gem_gtt_finish_pages(struct drm_i915_gem_object *obj,
                               struct sg_table *pages);
+#endif
 
 int i915_gem_gtt_reserve(struct i915_address_space *vm,
                         struct drm_mm_node *node,



Home | Main Index | Thread Index | Old Index