Commit c7eef815 authored by Michael Gao's avatar Michael Gao

DAVINCI FB: added in IOCTL to return FB physical address.

    - thus to expose FB memory to resizer.

	modified:   drivers/video/dm/dm_main.c
	modified:   include/video/davincifb.h
parent c68b08b1
......@@ -1807,6 +1807,13 @@ static int davincifb_ioctl(struct fb_info *info, unsigned int cmd,
dm_cbtest_enable(w->dm, enable);
return 0;
break;
case FBIO_GET_PHYS_ADDRESS:
if (copy_to_user(argp, &w->fb_base_phys, sizeof(unsigned long)))
{
return -EFAULT;
}
return 0;
}
return -EINVAL;
......
......@@ -488,4 +488,5 @@ struct dmfb_transparency
#define FBIO_TRANSP _IOW('F', 0x27, struct dmfb_transparency)
#define FBIO_TRANSP_COLOR _IOW('F', 0x28, u_int32_t)
#define FBIO_CBTEST _IOW('F', 0x29, u_int32_t)
#define FBIO_GET_PHYS_ADDRESS _IOWR('F', 0x2A, unsigned long)
#endif /* _DAVINCIFB_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment