add a ioctl case in fb0, return current screen type

This commit is contained in:
zyw 2011-04-18 15:50:19 +08:00
parent 8e7de66d9b
commit e25444f917
2 changed files with 5 additions and 2 deletions

View File

@ -1549,9 +1549,11 @@ static int fb0_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
break;
case FBIOPUT_FBPHYADD:
return info->fix.smem_start;
case FBIOGET_OVERLAY_STATE:
case FBIOGET_OVERLAY_STATE:
return inf->video_mode;
case FBIOGET_SCREEN_STATE:
return inf->cur_screen->type;
case FBIOPUT_SET_CURSOR_EN:
{
int en;

View File

@ -46,6 +46,7 @@ struct dentry;
#define FBIOPUT_MODEINFO 0x4617
#define FBIOGET_DISPINFO 0x4618
#define FBIOGET_OVERLAY_STATE 0X4619
#define FBIOGET_SCREEN_STATE 0X4620
#define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */