From 5cce5b4334cb5c8b4c78913776a71a1fcbe25b93 Mon Sep 17 00:00:00 2001 From: huangdesheng Date: Wed, 21 Sep 2011 15:08:34 +0800 Subject: [PATCH] add compose_layer_count in fb --- drivers/video/rk29_fb.c | 10 +++++++++- include/linux/fb.h | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/video/rk29_fb.c b/drivers/video/rk29_fb.c index 7eff5a019a7e..497bed843afb 100755 --- a/drivers/video/rk29_fb.c +++ b/drivers/video/rk29_fb.c @@ -272,7 +272,7 @@ static u32 last_yuv_phy[2] = {0,0}; #endif int fb0_first_buff_bits = 32; int fb0_second_buff_bits = 32; - +int fb_compose_layer_count = 0; static BLOCKING_NOTIFIER_HEAD(rk29fb_notifier_list); int rk29fb_register_notifier(struct notifier_block *nb) { @@ -1735,6 +1735,14 @@ static int fb0_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) { return fb0_first_buff_bits; } + case FBIOSET_COMPOSE_LAYER_COUNTS: + fb_compose_layer_count = arg; + break; + + case FBIOGET_COMPOSE_LAYER_COUNTS: + + return fb_compose_layer_count; + case FBIOPUT_FBPHYADD: return info->fix.smem_start; case FBIOGET_OVERLAY_STATE: diff --git a/include/linux/fb.h b/include/linux/fb.h index 4463d75862ea..c3a17a72f8b6 100755 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -49,6 +49,8 @@ struct dentry; #define FBIOGET_SCREEN_STATE 0X4620 #define FBIOGET_16OR32 0X4621 #define FBIOGET_IDLEFBUff_16OR32 0X4622 +#define FBIOSET_COMPOSE_LAYER_COUNTS 0X4623 +#define FBIOGET_COMPOSE_LAYER_COUNTS 0X4624 #define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ #define FB_TYPE_PLANES 1 /* Non interleaved planes */ -- 2.34.1