Skip to content

Commit

Permalink
linux-user: Add support for even more FB ioctls
Browse files Browse the repository at this point in the history
This patch was validated with programs from DirectFB-1.0 and
WebKit/DirectFB.

Signed-off-by: Cédric VINCENT <[email protected]>
Cc: Riku Voipio <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
  • Loading branch information
cedric-vincent authored and Riku Voipio committed Jul 11, 2011
1 parent 774750c commit 12b81b7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions linux-user/ioctls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
5 changes: 5 additions & 0 deletions linux-user/syscall_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions linux-user/syscall_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 12b81b7

Please sign in to comment.