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/include/drm sparc seems to treat bus/p...



details:   https://anonhg.NetBSD.org/src/rev/54513f9c25f9
branches:  trunk
changeset: 835500:54513f9c25f9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 15:29:08 2018 +0000

description:
sparc seems to treat bus/phys addrs in bus dmamem the same.

This is just about bus dmamem -- not about bus dmamap, which rightly
uses an iommu to remap things and which we don't interfere with.

diffstat:

 sys/external/bsd/drm2/include/drm/bus_dma_hacks.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 6075d877741b -r 54513f9c25f9 sys/external/bsd/drm2/include/drm/bus_dma_hacks.h
--- a/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h Mon Aug 27 15:28:53 2018 +0000
+++ b/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h Mon Aug 27 15:29:08 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma_hacks.h,v 1.13 2018/08/27 15:27:28 riastradh Exp $     */
+/*     $NetBSD: bus_dma_hacks.h,v 1.14 2018/08/27 15:29:08 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -48,6 +48,9 @@
 #elif defined(__arm__) || defined(__aarch64__)
 #  define      PHYS_TO_BUS_MEM(dmat, paddr)    ((bus_addr_t)(paddr))
 #  define      BUS_MEM_TO_PHYS(dmat, baddr)    ((paddr_t)(baddr))
+#elif defined(__sparc__) || defined(__sparc64__)
+#  define      PHYS_TO_BUS_MEM(dmat, paddr)    ((bus_addr_t)(paddr))
+#  define      BUS_MEM_TO_PHYS(dmat, baddr)    ((paddr_t)(baddr))
 #elif defined(__powerpc__)
 #else
 #  error DRM GEM/TTM need new MI bus_dma APIs!  Halp!



Home | Main Index | Thread Index | Old Index