rk fb:add ioctl RK_FBIOPUT_COLOR_KEY_CFG for color key config
authoryxj <yxj@rock-chips.com>
Tue, 26 Feb 2013 09:09:29 +0000 (17:09 +0800)
committeryxj <yxj@rock-chips.com>
Tue, 26 Feb 2013 09:12:45 +0000 (17:12 +0800)
include/linux/rk_fb.h

index 1a5a2fe2244e10c0c8a9aeb4d642a00905cc61af..6ed2e8103735536202095b52f2e0d29f26e0519f 100644 (file)
@@ -58,7 +58,8 @@
 #define RK_FBIOGET_ENABLE              0x5020
 #define RK_FBIOSET_CONFIG_DONE         0x4628
 #define RK_FBIOSET_VSYNC_ENABLE                0x4629
-#define RK_FBIOPUT_NUM_BUFFERS         0x4625
+#define RK_FBIOPUT_NUM_BUFFERS                 0x4625
+#define RK_FBIOPUT_COLOR_KEY_CFG       0x4626
 
 
 /********************************************************************
@@ -180,6 +181,12 @@ struct rk_fb_vsync {
        struct task_struct      *thread;
 };
 
+struct color_key_cfg {
+       u32 win0_color_key_cfg;
+       u32 win1_color_key_cfg;
+       u32 win2_color_key_cfg;
+};
+
 typedef enum _TRSP_MODE
 {
     TRSP_CLOSE = 0,
@@ -224,6 +231,7 @@ struct layer_par {
        u8 swap_rb;
 };
 
+
 struct rk_lcdc_device_driver{
        char name[6];
        int id;