From 43177bd13d68387492690b825a37fea391a7775a Mon Sep 17 00:00:00 2001 From: root Date: Mon, 21 Feb 2011 17:01:41 +0800 Subject: [PATCH] get framebuff phyaddress --- drivers/video/rk29_fb.c | 2 ++ include/linux/fb.h | 1 + 2 files changed, 3 insertions(+) mode change 100644 => 100755 drivers/video/rk29_fb.c diff --git a/drivers/video/rk29_fb.c b/drivers/video/rk29_fb.c old mode 100644 new mode 100755 index 34eea654582c..064dfa702be4 --- a/drivers/video/rk29_fb.c +++ b/drivers/video/rk29_fb.c @@ -1313,6 +1313,8 @@ static int fb0_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) inf->fb0_color_deepth = arg; break; + case FBIOPUT_FBPHYADD: + return info->fix.smem_start; default: break; } diff --git a/include/linux/fb.h b/include/linux/fb.h index 4a8b2fc84a45..99950fde81a9 100755 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -19,6 +19,7 @@ struct dentry; #define FBIOPUTCMAP 0x4605 #define FBIOPAN_DISPLAY 0x4606 #define FBIOPUT_16OR32 0x4607 +#define FBIOPUT_FBPHYADD 0x4608 #ifdef __KERNEL__ #define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor_user) #else -- 2.34.1