diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-01-14 17:32:13 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-02-15 15:14:34 +0200 |
commit | 6dd2e42bd892b2e16080ceba451fd9c3ed633145 (patch) | |
tree | 9df20142518b3c6276a50a936925da494c7808c9 /include/linux | |
parent | 92fe0ff16a9299233104187bd6ceb2101501badc (diff) | |
download | linux-stable-6dd2e42bd892b2e16080ceba451fd9c3ed633145.tar.gz linux-stable-6dd2e42bd892b2e16080ceba451fd9c3ed633145.tar.bz2 linux-stable-6dd2e42bd892b2e16080ceba451fd9c3ed633145.zip |
OMAP: DSS2: OMAPFB: implement OMAPFB_GET_DISPLAY_INFO
Previously the only place to get the size of the display was from the
DSS's sysfs interface, making, for example, configuring overlays and doing
updates on manual displays more difficult.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/omapfb.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/omapfb.h b/include/linux/omapfb.h index f46c40ac6d45..9bdd91486b49 100644 --- a/include/linux/omapfb.h +++ b/include/linux/omapfb.h @@ -57,6 +57,7 @@ #define OMAPFB_WAITFORGO OMAP_IO(60) #define OMAPFB_GET_VRAM_INFO OMAP_IOR(61, struct omapfb_vram_info) #define OMAPFB_SET_TEARSYNC OMAP_IOW(62, struct omapfb_tearsync_info) +#define OMAPFB_GET_DISPLAY_INFO OMAP_IOR(63, struct omapfb_display_info) #define OMAPFB_CAPS_GENERIC_MASK 0x00000fff #define OMAPFB_CAPS_LCDC_MASK 0x00fff000 @@ -206,6 +207,14 @@ struct omapfb_tearsync_info { __u16 reserved2; }; +struct omapfb_display_info { + __u16 xres; + __u16 yres; + __u32 width; /* phys width of the display in micrometers */ + __u32 height; /* phys height of the display in micrometers */ + __u32 reserved[5]; +}; + #ifdef __KERNEL__ #include <plat/board.h> |