add compose_layer_count in fb

This commit is contained in:
huangdesheng
2011-09-21 15:08:34 +08:00
parent 5d4081964e
commit 5cce5b4334
2 changed files with 11 additions and 1 deletions

View File

@@ -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:

View File

@@ -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 */