|
@@ -271,3 +271,60 @@ struct fb_clut32 {
|
|
|
|
|
|
/* Mappable offsets for the cg14: frame buffer resolutions */
|
|
|
/* 32 bits */
|
|
|
+#define MDI_CHUNKY_XBGR_MAP 0x50000000
|
|
|
+#define MDI_CHUNKY_BGR_MAP 0x60000000
|
|
|
+
|
|
|
+/* 16 bits */
|
|
|
+#define MDI_PLANAR_X16_MAP 0x70000000
|
|
|
+#define MDI_PLANAR_C16_MAP 0x80000000
|
|
|
+
|
|
|
+/* 8 bit is done as CG3 MMAP offset */
|
|
|
+/* 32 bits, planar */
|
|
|
+#define MDI_PLANAR_X32_MAP 0x90000000
|
|
|
+#define MDI_PLANAR_B32_MAP 0xa0000000
|
|
|
+#define MDI_PLANAR_G32_MAP 0xb0000000
|
|
|
+#define MDI_PLANAR_R32_MAP 0xc0000000
|
|
|
+
|
|
|
+/* Mappable offsets on leo */
|
|
|
+#define LEO_SS0_MAP 0x00000000
|
|
|
+#define LEO_LC_SS0_USR_MAP 0x00800000
|
|
|
+#define LEO_LD_SS0_MAP 0x00801000
|
|
|
+#define LEO_LX_CURSOR_MAP 0x00802000
|
|
|
+#define LEO_SS1_MAP 0x00803000
|
|
|
+#define LEO_LC_SS1_USR_MAP 0x01003000
|
|
|
+#define LEO_LD_SS1_MAP 0x01004000
|
|
|
+#define LEO_UNK_MAP 0x01005000
|
|
|
+#define LEO_LX_KRN_MAP 0x01006000
|
|
|
+#define LEO_LC_SS0_KRN_MAP 0x01007000
|
|
|
+#define LEO_LC_SS1_KRN_MAP 0x01008000
|
|
|
+#define LEO_LD_GBL_MAP 0x01009000
|
|
|
+#define LEO_UNK2_MAP 0x0100a000
|
|
|
+
|
|
|
+#ifdef __KERNEL__
|
|
|
+struct fbcmap32 {
|
|
|
+ int index; /* first element (0 origin) */
|
|
|
+ int count;
|
|
|
+ u32 red;
|
|
|
+ u32 green;
|
|
|
+ u32 blue;
|
|
|
+};
|
|
|
+
|
|
|
+#define FBIOPUTCMAP32 _IOW('F', 3, struct fbcmap32)
|
|
|
+#define FBIOGETCMAP32 _IOW('F', 4, struct fbcmap32)
|
|
|
+
|
|
|
+struct fbcursor32 {
|
|
|
+ short set; /* what to set, choose from the list above */
|
|
|
+ short enable; /* cursor on/off */
|
|
|
+ struct fbcurpos pos; /* cursor position */
|
|
|
+ struct fbcurpos hot; /* cursor hot spot */
|
|
|
+ struct fbcmap32 cmap; /* color map info */
|
|
|
+ struct fbcurpos size; /* cursor bit map size */
|
|
|
+ u32 image; /* cursor image bits */
|
|
|
+ u32 mask; /* cursor mask bits */
|
|
|
+};
|
|
|
+
|
|
|
+#define FBIOSCURSOR32 _IOW('F', 24, struct fbcursor32)
|
|
|
+#define FBIOGCURSOR32 _IOW('F', 25, struct fbcursor32)
|
|
|
+#endif
|
|
|
+
|
|
|
+#endif /* __LINUX_FBIO_H */
|