diff options
author | Cédric VINCENT <cedric.vincent@st.com> | 2011-06-29 15:09:11 +0200 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2011-07-11 16:12:18 +0300 |
commit | 12b81b7145ec28a3c608d1eee5abcd5cdd6a677b (patch) | |
tree | 74f1084b309a1c5e14e7c08266628e5ee8baf02e /linux-user | |
parent | 774750c088192112df1623610dc35d9e03983d49 (diff) |
linux-user: Add support for even more FB ioctls
This patch was validated with programs from DirectFB-1.0 and
WebKit/DirectFB.
Signed-off-by: Cédric VINCENT <cedric.vincent@st.com>
Cc: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/ioctls.h | 5 | ||||
-rw-r--r-- | linux-user/syscall_defs.h | 5 | ||||
-rw-r--r-- | linux-user/syscall_types.h | 13 |
3 files changed, 23 insertions, 0 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 7bc1c4820..6514502dc 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -329,6 +329,11 @@ IOCTL(FBIOGET_FSCREENINFO, IOC_R, MK_PTR(MK_STRUCT(STRUCT_fb_fix_screeninfo))) IOCTL(FBIOGET_VSCREENINFO, IOC_R, MK_PTR(MK_STRUCT(STRUCT_fb_var_screeninfo))) IOCTL(FBIOPUT_VSCREENINFO, IOC_W, MK_PTR(MK_STRUCT(STRUCT_fb_var_screeninfo))) + IOCTL(FBIOGETCMAP, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_cmap))) + IOCTL(FBIOPUTCMAP, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_cmap))) + IOCTL(FBIOPAN_DISPLAY, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_var_screeninfo))) + IOCTL(FBIOGET_CON2FBMAP, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_con2fbmap))) + IOCTL(FBIOPUT_CON2FBMAP, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_fb_con2fbmap))) IOCTL(VT_OPENQRY, IOC_R, MK_PTR(TYPE_INT)) IOCTL(VT_GETSTATE, IOC_R, MK_PTR(MK_STRUCT(STRUCT_vt_stat))) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 4a59b36d6..1b734515b 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -932,6 +932,11 @@ struct target_pollfd { #define TARGET_FBIOGET_VSCREENINFO 0x4600 #define TARGET_FBIOPUT_VSCREENINFO 0x4601 #define TARGET_FBIOGET_FSCREENINFO 0x4602 +#define TARGET_FBIOGETCMAP 0x4604 +#define TARGET_FBIOPUTCMAP 0x4605 +#define TARGET_FBIOPAN_DISPLAY 0x4606 +#define TARGET_FBIOGET_CON2FBMAP 0x460F +#define TARGET_FBIOPUT_CON2FBMAP 0x4610 /* vt ioctls */ #define TARGET_VT_OPENQRY 0x5600 diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h index 94b0ce0f5..c37012517 100644 --- a/linux-user/syscall_types.h +++ b/linux-user/syscall_types.h @@ -161,6 +161,19 @@ STRUCT(fb_var_screeninfo, TYPE_INT, /* rotate */ MK_ARRAY(TYPE_INT, 5)) /* reserved */ +STRUCT(fb_cmap, + TYPE_INT, /* start */ + TYPE_INT, /* len */ + TYPE_PTRVOID, /* red */ + TYPE_PTRVOID, /* green */ + TYPE_PTRVOID, /* blue */ + TYPE_PTRVOID) /* transp */ + +STRUCT(fb_con2fbmap, + TYPE_INT, /* console */ + TYPE_INT) /* framebuffer */ + + STRUCT(vt_stat, TYPE_SHORT, /* v_active */ TYPE_SHORT, /* v_signal */ |