Go to the documentation of this file.
24 #ifndef _UAPI__LINUX_OMAPFB_H__
25 #define _UAPI__LINUX_OMAPFB_H__
29 #include <linux/types.h>
33 #define OMAP_IOW(num, dtype) _IOW('O', num, dtype)
34 #define OMAP_IOR(num, dtype) _IOR('O', num, dtype)
35 #define OMAP_IOWR(num, dtype) _IOWR('O', num, dtype)
36 #define OMAP_IO(num) _IO('O', num)
38 #define OMAPFB_MIRROR OMAP_IOW(31, int)
39 #define OMAPFB_SYNC_GFX OMAP_IO(37)
40 #define OMAPFB_VSYNC OMAP_IO(38)
41 #define OMAPFB_SET_UPDATE_MODE OMAP_IOW(40, int)
42 #define OMAPFB_GET_CAPS OMAP_IOR(42, struct omapfb_caps)
43 #define OMAPFB_GET_UPDATE_MODE OMAP_IOW(43, int)
44 #define OMAPFB_LCD_TEST OMAP_IOW(45, int)
45 #define OMAPFB_CTRL_TEST OMAP_IOW(46, int)
46 #define OMAPFB_UPDATE_WINDOW_OLD OMAP_IOW(47, struct omapfb_update_window_old)
47 #define OMAPFB_SET_COLOR_KEY OMAP_IOW(50, struct omapfb_color_key)
48 #define OMAPFB_GET_COLOR_KEY OMAP_IOW(51, struct omapfb_color_key)
49 #define OMAPFB_SETUP_PLANE OMAP_IOW(52, struct omapfb_plane_info)
50 #define OMAPFB_QUERY_PLANE OMAP_IOW(53, struct omapfb_plane_info)
51 #define OMAPFB_UPDATE_WINDOW OMAP_IOW(54, struct omapfb_update_window)
52 #define OMAPFB_SETUP_MEM OMAP_IOW(55, struct omapfb_mem_info)
53 #define OMAPFB_QUERY_MEM OMAP_IOW(56, struct omapfb_mem_info)
54 #define OMAPFB_WAITFORVSYNC OMAP_IO(57)
55 #define OMAPFB_MEMORY_READ OMAP_IOR(58, struct omapfb_memory_read)
56 #define OMAPFB_GET_OVERLAY_COLORMODE OMAP_IOR(59, struct omapfb_ovl_colormode)
57 #define OMAPFB_WAITFORGO OMAP_IO(60)
58 #define OMAPFB_GET_VRAM_INFO OMAP_IOR(61, struct omapfb_vram_info)
59 #define OMAPFB_SET_TEARSYNC OMAP_IOW(62, struct omapfb_tearsync_info)
60 #define OMAPFB_GET_DISPLAY_INFO OMAP_IOR(63, struct omapfb_display_info)
62 #define OMAPFB_CAPS_GENERIC_MASK 0x00000fff
63 #define OMAPFB_CAPS_LCDC_MASK 0x00fff000
64 #define OMAPFB_CAPS_PANEL_MASK 0xff000000
66 #define OMAPFB_CAPS_MANUAL_UPDATE 0x00001000
67 #define OMAPFB_CAPS_TEARSYNC 0x00002000
68 #define OMAPFB_CAPS_PLANE_RELOCATE_MEM 0x00004000
69 #define OMAPFB_CAPS_PLANE_SCALE 0x00008000
70 #define OMAPFB_CAPS_WINDOW_PIXEL_DOUBLE 0x00010000
71 #define OMAPFB_CAPS_WINDOW_SCALE 0x00020000
72 #define OMAPFB_CAPS_WINDOW_OVERLAY 0x00040000
73 #define OMAPFB_CAPS_WINDOW_ROTATE 0x00080000
74 #define OMAPFB_CAPS_SET_BACKLIGHT 0x01000000
77 #define OMAPFB_FORMAT_MASK 0x00ff
78 #define OMAPFB_FORMAT_FLAG_DOUBLE 0x0100
79 #define OMAPFB_FORMAT_FLAG_TEARSYNC 0x0200
80 #define OMAPFB_FORMAT_FLAG_FORCE_VSYNC 0x0400
81 #define OMAPFB_FORMAT_FLAG_ENABLE_OVERLAY 0x0800
82 #define OMAPFB_FORMAT_FLAG_DISABLE_OVERLAY 0x1000
84 #define OMAPFB_MEMTYPE_SDRAM 0
85 #define OMAPFB_MEMTYPE_SRAM 1
86 #define OMAPFB_MEMTYPE_MAX 1
88 #define OMAPFB_MEM_IDX_ENABLED 0x80
89 #define OMAPFB_MEM_IDX_MASK 0x7f