summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2014-03-20 16:53:51 +0000
committerRussell King <rmk@arm.linux.org.uk>2014-03-20 16:53:51 +0000
commit108a8d7559350901b2b06b0df60b2209fa260f53 (patch)
treebc830530abb5b36e17ca1e6e0e1f61a0538979e3
parentaeca5fbd37c9a1703954b3bd0d88c4c8e9e615ca (diff)
downloadxf86-video-armada-108a8d7559350901b2b06b0df60b2209fa260f53.tar.gz
Rename map_dma_buf -> dmabuf_map
This gives it a better namespace. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--src/gal_extension.h4
-rw-r--r--src/vivante_utils.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gal_extension.h b/src/gal_extension.h
index f02b418..6325444 100644
--- a/src/gal_extension.h
+++ b/src/gal_extension.h
@@ -8,13 +8,13 @@
#include <gc_hal.h>
/* Map a DMABUF fd into galcore */
-struct map_dma_buf {
+struct dmabuf_map {
unsigned zero;
unsigned status;
int fd;
gctPOINTER Info;
gctUINT32 Address;
};
-#define IOC_GDMABUF_MAP _IOWR('_', 0, struct map_dma_buf)
+#define IOC_GDMABUF_MAP _IOWR('_', 0, struct dmabuf_map)
#endif
diff --git a/src/vivante_utils.c b/src/vivante_utils.c
index cfa9697..0a42a35 100644
--- a/src/vivante_utils.c
+++ b/src/vivante_utils.c
@@ -115,7 +115,7 @@ void vivante_unmap_gpu(struct vivante *vivante, struct vivante_pixmap *vPix)
Bool vivante_map_bo_to_gpu(struct vivante *vivante, struct drm_armada_bo *bo,
void **info, uint32_t *handle)
{
- struct map_dma_buf map;
+ struct dmabuf_map map;
gceSTATUS status;
int fd;