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 Define px_dma for our bu...



details:   https://anonhg.NetBSD.org/src/rev/8758a9e775d9
branches:  trunk
changeset: 365682:8758a9e775d9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 05:35:11 2018 +0000

description:
Define px_dma for our bus_dmaish i915_dma_page.

diffstat:

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

diffs (21 lines):

diff -r 43f69c268dc5 -r 8758a9e775d9 sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h        Mon Aug 27 05:35:00 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h        Mon Aug 27 05:35:11 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_gtt.h,v 1.2 2018/08/27 04:58:23 riastradh Exp $       */
+/*     $NetBSD: i915_gem_gtt.h,v 1.3 2018/08/27 05:35:11 riastradh Exp $       */
 
 /*
  * Copyright © 2014 Intel Corporation
@@ -253,7 +253,11 @@
 
 #define px_base(px) (&(px)->base)
 #define px_page(px) (px_base(px)->page)
+#ifdef __NetBSD__
+#define px_dma(x) (px_base(px)->map->dm_seg[0].ds_addr)
+#else
 #define px_dma(px) (px_base(px)->daddr)
+#endif
 
 struct i915_page_scratch {
        struct i915_page_dma base;



Home | Main Index | Thread Index | Old Index