mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
add compose_layer_count in fb
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user