0001
0002 #ifndef __LINUX_FBIO_H
0003 #define __LINUX_FBIO_H
0004
0005 #include <uapi/asm/fbio.h>
0006
0007 #define FBIOPUTCMAP_SPARC _IOW('F', 3, struct fbcmap)
0008 #define FBIOGETCMAP_SPARC _IOW('F', 4, struct fbcmap)
0009
0010 #define CG6_FBC 0x70000000
0011 #define CG6_TEC 0x70001000
0012 #define CG6_BTREGS 0x70002000
0013 #define CG6_FHC 0x70004000
0014 #define CG6_THC 0x70005000
0015 #define CG6_ROM 0x70006000
0016 #define CG6_RAM 0x70016000
0017 #define CG6_DHC 0x80000000
0018
0019 #define CG3_MMAP_OFFSET 0x4000000
0020
0021
0022 #define TCX_RAM8BIT 0x00000000
0023 #define TCX_RAM24BIT 0x01000000
0024 #define TCX_UNK3 0x10000000
0025 #define TCX_UNK4 0x20000000
0026 #define TCX_CONTROLPLANE 0x28000000
0027 #define TCX_UNK6 0x30000000
0028 #define TCX_UNK7 0x38000000
0029 #define TCX_TEC 0x70000000
0030 #define TCX_BTREGS 0x70002000
0031 #define TCX_THC 0x70004000
0032 #define TCX_DHC 0x70008000
0033 #define TCX_ALT 0x7000a000
0034 #define TCX_SYNC 0x7000e000
0035 #define TCX_UNK2 0x70010000
0036
0037
0038
0039
0040 #define CG14_REGS 0
0041 #define CG14_CURSORREGS 0x1000
0042 #define CG14_DACREGS 0x2000
0043 #define CG14_XLUT 0x3000
0044 #define CG14_CLUT1 0x4000
0045 #define CG14_CLUT2 0x5000
0046 #define CG14_CLUT3 0x6000
0047 #define CG14_AUTO 0xf000
0048
0049 struct fbcmap32 {
0050 int index;
0051 int count;
0052 u32 red;
0053 u32 green;
0054 u32 blue;
0055 };
0056
0057 #define FBIOPUTCMAP32 _IOW('F', 3, struct fbcmap32)
0058 #define FBIOGETCMAP32 _IOW('F', 4, struct fbcmap32)
0059
0060 struct fbcursor32 {
0061 short set;
0062 short enable;
0063 struct fbcurpos pos;
0064 struct fbcurpos hot;
0065 struct fbcmap32 cmap;
0066 struct fbcurpos size;
0067 u32 image;
0068 u32 mask;
0069 };
0070
0071 #define FBIOSCURSOR32 _IOW('F', 24, struct fbcursor32)
0072 #define FBIOGCURSOR32 _IOW('F', 25, struct fbcursor32)
0073 #endif