Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
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 /* Addresses on the fd of a cgsix that are mappable */
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 /* Addresses on the fd of a tcx that are mappable */
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 /* CG14 definitions */
0038 
0039 /* Offsets into the OBIO space: */
0040 #define CG14_REGS        0       /* registers */
0041 #define CG14_CURSORREGS  0x1000  /* cursor registers */
0042 #define CG14_DACREGS     0x2000  /* DAC registers */
0043 #define CG14_XLUT        0x3000  /* X Look Up Table -- ??? */
0044 #define CG14_CLUT1       0x4000  /* Color Look Up Table */
0045 #define CG14_CLUT2       0x5000  /* Color Look Up Table */
0046 #define CG14_CLUT3       0x6000  /* Color Look Up Table */
0047 #define CG14_AUTO    0xf000
0048 
0049 struct  fbcmap32 {
0050     int             index;          /* first element (0 origin) */
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;      /* what to set, choose from the list above */
0062     short enable;       /* cursor on/off */
0063     struct fbcurpos pos;    /* cursor position */
0064     struct fbcurpos hot;    /* cursor hot spot */
0065     struct fbcmap32 cmap;   /* color map info */
0066     struct fbcurpos size;   /* cursor bit map size */
0067     u32 image;      /* cursor image bits */
0068     u32 mask;       /* cursor mask bits */
0069 };
0070 
0071 #define FBIOSCURSOR32   _IOW('F', 24, struct fbcursor32)
0072 #define FBIOGCURSOR32   _IOW('F', 25, struct fbcursor32)
0073 #endif /* __LINUX_FBIO_H */