Module Name: src Committed By: riastradh Date: Mon Aug 27 15:29:08 UTC 2018
Modified Files: src/sys/external/bsd/drm2/include/drm: bus_dma_hacks.h Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 \ src/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h diff -u src/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h:1.13 src/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h:1.14 --- src/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h:1.13 Mon Aug 27 15:27:28 2018 +++ src/sys/external/bsd/drm2/include/drm/bus_dma_hacks.h Mon Aug 27 15:29:08 2018 @@ -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!