aboutsummaryrefslogtreecommitdiff
path: root/include/video/mcde_fb.h
diff options
context:
space:
mode:
authorjoakim <joakim.landberg@stericsson.com>2010-08-27 10:04:23 +0200
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:45:53 -0600
commitd6af4c608223547b5e0ecfcacfbc4c2fa7b3a5ae (patch)
tree78afaa7c8a09d8c9852530bf4c4ab8ad88548d53 /include/video/mcde_fb.h
parent9276a2f05cd460d05c25729021ec71b9ad6eeee9 (diff)
downloadlinux-2.6.34-ux500-d6af4c608223547b5e0ecfcacfbc4c2fa7b3a5ae.tar.gz
Add hardware memory driver to kernel
This driver provides a way to allocate contiguous system memory which can be used by hardware. Mcde has been modified in order to take advantage of hwmem. ST-Ericsson ID: WP270489 Signed-off-by: Joakim Landberg <joakim.landberg@stericsson.com> Change-Id: I5bf22754a343f8ba3dceb6305ce780f6e1a8b379 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4205 Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Diffstat (limited to 'include/video/mcde_fb.h')
-rw-r--r--include/video/mcde_fb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/video/mcde_fb.h b/include/video/mcde_fb.h
index 8aa3d134e74..1ef1c7175e5 100644
--- a/include/video/mcde_fb.h
+++ b/include/video/mcde_fb.h
@@ -17,12 +17,15 @@
#include <stdint.h>
#else
#include <linux/types.h>
+#include <linux/hwmem.h>
#endif
#ifdef __KERNEL__
#include "mcde_dss.h"
#endif
+#define MCDE_GET_BUFFER_NAME_IOC _IO('M', 1)
+
#ifdef __KERNEL__
#define to_mcde_fb(x) ((struct mcde_fb *)(x)->par)
@@ -34,6 +37,8 @@ struct mcde_fb {
u32 pseudo_palette[17];
enum mcde_ovly_pix_fmt pix_fmt;
int id;
+ struct hwmem_alloc *alloc;
+ int alloc_name;
};
/* MCDE fbdev API */