Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_FB_H |
| 8 | #define _UAPI_LINUX_FB_H |
| 9 | #include <linux/types.h> |
| 10 | #include <linux/i2c.h> |
Christopher Ferris | 7f4c837 | 2024-06-03 14:22:19 -0700 | [diff] [blame] | 11 | #include <linux/vesa.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | #define FB_MAX 32 |
| 13 | #define FBIOGET_VSCREENINFO 0x4600 |
| 14 | #define FBIOPUT_VSCREENINFO 0x4601 |
| 15 | #define FBIOGET_FSCREENINFO 0x4602 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 16 | #define FBIOGETCMAP 0x4604 |
| 17 | #define FBIOPUTCMAP 0x4605 |
| 18 | #define FBIOPAN_DISPLAY 0x4606 |
| 19 | #define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 20 | #define FBIOGET_CON2FBMAP 0x460F |
| 21 | #define FBIOPUT_CON2FBMAP 0x4610 |
| 22 | #define FBIOBLANK 0x4611 |
| 23 | #define FBIOGET_VBLANK _IOR('F', 0x12, struct fb_vblank) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 24 | #define FBIO_ALLOC 0x4613 |
| 25 | #define FBIO_FREE 0x4614 |
| 26 | #define FBIOGET_GLYPH 0x4615 |
| 27 | #define FBIOGET_HWCINFO 0x4616 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | #define FBIOPUT_MODEINFO 0x4617 |
| 29 | #define FBIOGET_DISPINFO 0x4618 |
| 30 | #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) |
| 31 | #define FB_TYPE_PACKED_PIXELS 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 32 | #define FB_TYPE_PLANES 1 |
| 33 | #define FB_TYPE_INTERLEAVED_PLANES 2 |
| 34 | #define FB_TYPE_TEXT 3 |
| 35 | #define FB_TYPE_VGA_PLANES 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 36 | #define FB_TYPE_FOURCC 5 |
| 37 | #define FB_AUX_TEXT_MDA 0 |
| 38 | #define FB_AUX_TEXT_CGA 1 |
| 39 | #define FB_AUX_TEXT_S3_MMIO 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | #define FB_AUX_TEXT_MGA_STEP16 3 |
| 41 | #define FB_AUX_TEXT_MGA_STEP8 4 |
| 42 | #define FB_AUX_TEXT_SVGA_GROUP 8 |
| 43 | #define FB_AUX_TEXT_SVGA_MASK 7 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 44 | #define FB_AUX_TEXT_SVGA_STEP2 8 |
| 45 | #define FB_AUX_TEXT_SVGA_STEP4 9 |
| 46 | #define FB_AUX_TEXT_SVGA_STEP8 10 |
| 47 | #define FB_AUX_TEXT_SVGA_STEP16 11 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | #define FB_AUX_TEXT_SVGA_LAST 15 |
| 49 | #define FB_AUX_VGA_PLANES_VGA4 0 |
| 50 | #define FB_AUX_VGA_PLANES_CFB4 1 |
| 51 | #define FB_AUX_VGA_PLANES_CFB8 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 52 | #define FB_VISUAL_MONO01 0 |
| 53 | #define FB_VISUAL_MONO10 1 |
| 54 | #define FB_VISUAL_TRUECOLOR 2 |
| 55 | #define FB_VISUAL_PSEUDOCOLOR 3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | #define FB_VISUAL_DIRECTCOLOR 4 |
| 57 | #define FB_VISUAL_STATIC_PSEUDOCOLOR 5 |
| 58 | #define FB_VISUAL_FOURCC 6 |
| 59 | #define FB_ACCEL_NONE 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | #define FB_ACCEL_ATARIBLITT 1 |
| 61 | #define FB_ACCEL_AMIGABLITT 2 |
| 62 | #define FB_ACCEL_S3_TRIO64 3 |
| 63 | #define FB_ACCEL_NCR_77C32BLT 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 64 | #define FB_ACCEL_S3_VIRGE 5 |
| 65 | #define FB_ACCEL_ATI_MACH64GX 6 |
| 66 | #define FB_ACCEL_DEC_TGA 7 |
| 67 | #define FB_ACCEL_ATI_MACH64CT 8 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | #define FB_ACCEL_ATI_MACH64VT 9 |
| 69 | #define FB_ACCEL_ATI_MACH64GT 10 |
| 70 | #define FB_ACCEL_SUN_CREATOR 11 |
| 71 | #define FB_ACCEL_SUN_CGSIX 12 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | #define FB_ACCEL_SUN_LEO 13 |
| 73 | #define FB_ACCEL_IMS_TWINTURBO 14 |
| 74 | #define FB_ACCEL_3DLABS_PERMEDIA2 15 |
| 75 | #define FB_ACCEL_MATROX_MGA2064W 16 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | #define FB_ACCEL_MATROX_MGA1064SG 17 |
| 77 | #define FB_ACCEL_MATROX_MGA2164W 18 |
| 78 | #define FB_ACCEL_MATROX_MGA2164W_AGP 19 |
| 79 | #define FB_ACCEL_MATROX_MGAG100 20 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 80 | #define FB_ACCEL_MATROX_MGAG200 21 |
| 81 | #define FB_ACCEL_SUN_CG14 22 |
| 82 | #define FB_ACCEL_SUN_BWTWO 23 |
| 83 | #define FB_ACCEL_SUN_CGTHREE 24 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 84 | #define FB_ACCEL_SUN_TCX 25 |
| 85 | #define FB_ACCEL_MATROX_MGAG400 26 |
| 86 | #define FB_ACCEL_NV3 27 |
| 87 | #define FB_ACCEL_NV4 28 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 88 | #define FB_ACCEL_NV5 29 |
| 89 | #define FB_ACCEL_CT_6555x 30 |
| 90 | #define FB_ACCEL_3DFX_BANSHEE 31 |
| 91 | #define FB_ACCEL_ATI_RAGE128 32 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 92 | #define FB_ACCEL_IGS_CYBER2000 33 |
| 93 | #define FB_ACCEL_IGS_CYBER2010 34 |
| 94 | #define FB_ACCEL_IGS_CYBER5000 35 |
| 95 | #define FB_ACCEL_SIS_GLAMOUR 36 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 96 | #define FB_ACCEL_3DLABS_PERMEDIA3 37 |
| 97 | #define FB_ACCEL_ATI_RADEON 38 |
| 98 | #define FB_ACCEL_I810 39 |
| 99 | #define FB_ACCEL_SIS_GLAMOUR_2 40 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 100 | #define FB_ACCEL_SIS_XABRE 41 |
| 101 | #define FB_ACCEL_I830 42 |
| 102 | #define FB_ACCEL_NV_10 43 |
| 103 | #define FB_ACCEL_NV_20 44 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 104 | #define FB_ACCEL_NV_30 45 |
| 105 | #define FB_ACCEL_NV_40 46 |
| 106 | #define FB_ACCEL_XGI_VOLARI_V 47 |
| 107 | #define FB_ACCEL_XGI_VOLARI_Z 48 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 108 | #define FB_ACCEL_OMAP1610 49 |
| 109 | #define FB_ACCEL_TRIDENT_TGUI 50 |
| 110 | #define FB_ACCEL_TRIDENT_3DIMAGE 51 |
| 111 | #define FB_ACCEL_TRIDENT_BLADE3D 52 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 112 | #define FB_ACCEL_TRIDENT_BLADEXP 53 |
| 113 | #define FB_ACCEL_CIRRUS_ALPINE 53 |
| 114 | #define FB_ACCEL_NEOMAGIC_NM2070 90 |
| 115 | #define FB_ACCEL_NEOMAGIC_NM2090 91 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 116 | #define FB_ACCEL_NEOMAGIC_NM2093 92 |
| 117 | #define FB_ACCEL_NEOMAGIC_NM2097 93 |
| 118 | #define FB_ACCEL_NEOMAGIC_NM2160 94 |
| 119 | #define FB_ACCEL_NEOMAGIC_NM2200 95 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 120 | #define FB_ACCEL_NEOMAGIC_NM2230 96 |
| 121 | #define FB_ACCEL_NEOMAGIC_NM2360 97 |
| 122 | #define FB_ACCEL_NEOMAGIC_NM2380 98 |
| 123 | #define FB_ACCEL_PXA3XX 99 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 124 | #define FB_ACCEL_SAVAGE4 0x80 |
| 125 | #define FB_ACCEL_SAVAGE3D 0x81 |
| 126 | #define FB_ACCEL_SAVAGE3D_MV 0x82 |
| 127 | #define FB_ACCEL_SAVAGE2000 0x83 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 128 | #define FB_ACCEL_SAVAGE_MX_MV 0x84 |
| 129 | #define FB_ACCEL_SAVAGE_MX 0x85 |
| 130 | #define FB_ACCEL_SAVAGE_IX_MV 0x86 |
| 131 | #define FB_ACCEL_SAVAGE_IX 0x87 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 132 | #define FB_ACCEL_PROSAVAGE_PM 0x88 |
| 133 | #define FB_ACCEL_PROSAVAGE_KM 0x89 |
| 134 | #define FB_ACCEL_S3TWISTER_P 0x8a |
| 135 | #define FB_ACCEL_S3TWISTER_K 0x8b |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 136 | #define FB_ACCEL_SUPERSAVAGE 0x8c |
| 137 | #define FB_ACCEL_PROSAVAGE_DDR 0x8d |
| 138 | #define FB_ACCEL_PROSAVAGE_DDRK 0x8e |
| 139 | #define FB_ACCEL_PUV3_UNIGFX 0xa0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 140 | #define FB_CAP_FOURCC 1 |
| 141 | struct fb_fix_screeninfo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 142 | char id[16]; |
| 143 | unsigned long smem_start; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 144 | __u32 smem_len; |
| 145 | __u32 type; |
| 146 | __u32 type_aux; |
| 147 | __u32 visual; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 148 | __u16 xpanstep; |
| 149 | __u16 ypanstep; |
| 150 | __u16 ywrapstep; |
| 151 | __u32 line_length; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 152 | unsigned long mmio_start; |
| 153 | __u32 mmio_len; |
| 154 | __u32 accel; |
| 155 | __u16 capabilities; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 156 | __u16 reserved[2]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 157 | }; |
| 158 | struct fb_bitfield { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 159 | __u32 offset; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 160 | __u32 length; |
| 161 | __u32 msb_right; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 162 | }; |
| 163 | #define FB_NONSTD_HAM 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 164 | #define FB_NONSTD_REV_PIX_IN_B 2 |
| 165 | #define FB_ACTIVATE_NOW 0 |
| 166 | #define FB_ACTIVATE_NXTOPEN 1 |
| 167 | #define FB_ACTIVATE_TEST 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 168 | #define FB_ACTIVATE_MASK 15 |
| 169 | #define FB_ACTIVATE_VBL 16 |
| 170 | #define FB_CHANGE_CMAP_VBL 32 |
| 171 | #define FB_ACTIVATE_ALL 64 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 172 | #define FB_ACTIVATE_FORCE 128 |
| 173 | #define FB_ACTIVATE_INV_MODE 256 |
Christopher Ferris | 8177cdf | 2020-08-03 11:53:55 -0700 | [diff] [blame] | 174 | #define FB_ACTIVATE_KD_TEXT 512 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 175 | #define FB_ACCELF_TEXT 1 |
| 176 | #define FB_SYNC_HOR_HIGH_ACT 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 177 | #define FB_SYNC_VERT_HIGH_ACT 2 |
| 178 | #define FB_SYNC_EXT 4 |
| 179 | #define FB_SYNC_COMP_HIGH_ACT 8 |
| 180 | #define FB_SYNC_BROADCAST 16 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 181 | #define FB_SYNC_ON_GREEN 32 |
| 182 | #define FB_VMODE_NONINTERLACED 0 |
| 183 | #define FB_VMODE_INTERLACED 1 |
| 184 | #define FB_VMODE_DOUBLE 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 185 | #define FB_VMODE_ODD_FLD_FIRST 4 |
| 186 | #define FB_VMODE_MASK 255 |
| 187 | #define FB_VMODE_YWRAP 256 |
| 188 | #define FB_VMODE_SMOOTH_XPAN 512 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 189 | #define FB_VMODE_CONUPDATE 512 |
| 190 | #define FB_ROTATE_UR 0 |
| 191 | #define FB_ROTATE_CW 1 |
| 192 | #define FB_ROTATE_UD 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 193 | #define FB_ROTATE_CCW 3 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 194 | #define PICOS2KHZ(a) (1000000000UL / (a)) |
| 195 | #define KHZ2PICOS(a) (1000000000UL / (a)) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 196 | struct fb_var_screeninfo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 197 | __u32 xres; |
| 198 | __u32 yres; |
| 199 | __u32 xres_virtual; |
| 200 | __u32 yres_virtual; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 201 | __u32 xoffset; |
| 202 | __u32 yoffset; |
| 203 | __u32 bits_per_pixel; |
| 204 | __u32 grayscale; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 205 | struct fb_bitfield red; |
| 206 | struct fb_bitfield green; |
| 207 | struct fb_bitfield blue; |
| 208 | struct fb_bitfield transp; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 209 | __u32 nonstd; |
| 210 | __u32 activate; |
| 211 | __u32 height; |
| 212 | __u32 width; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 213 | __u32 accel_flags; |
| 214 | __u32 pixclock; |
| 215 | __u32 left_margin; |
| 216 | __u32 right_margin; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 217 | __u32 upper_margin; |
| 218 | __u32 lower_margin; |
| 219 | __u32 hsync_len; |
| 220 | __u32 vsync_len; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 221 | __u32 sync; |
| 222 | __u32 vmode; |
| 223 | __u32 rotate; |
| 224 | __u32 colorspace; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 225 | __u32 reserved[4]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 226 | }; |
| 227 | struct fb_cmap { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 228 | __u32 start; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 229 | __u32 len; |
| 230 | __u16 * red; |
| 231 | __u16 * green; |
| 232 | __u16 * blue; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 233 | __u16 * transp; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 234 | }; |
| 235 | struct fb_con2fbmap { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 236 | __u32 console; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 237 | __u32 framebuffer; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 238 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 239 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 240 | FB_BLANK_UNBLANK = VESA_NO_BLANKING, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 241 | FB_BLANK_NORMAL = VESA_NO_BLANKING + 1, |
| 242 | FB_BLANK_VSYNC_SUSPEND = VESA_VSYNC_SUSPEND + 1, |
| 243 | FB_BLANK_HSYNC_SUSPEND = VESA_HSYNC_SUSPEND + 1, |
| 244 | FB_BLANK_POWERDOWN = VESA_POWERDOWN + 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 245 | }; |
| 246 | #define FB_VBLANK_VBLANKING 0x001 |
| 247 | #define FB_VBLANK_HBLANKING 0x002 |
| 248 | #define FB_VBLANK_HAVE_VBLANK 0x004 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 249 | #define FB_VBLANK_HAVE_HBLANK 0x008 |
| 250 | #define FB_VBLANK_HAVE_COUNT 0x010 |
| 251 | #define FB_VBLANK_HAVE_VCOUNT 0x020 |
| 252 | #define FB_VBLANK_HAVE_HCOUNT 0x040 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 253 | #define FB_VBLANK_VSYNCING 0x080 |
| 254 | #define FB_VBLANK_HAVE_VSYNC 0x100 |
| 255 | struct fb_vblank { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 256 | __u32 flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 257 | __u32 count; |
| 258 | __u32 vcount; |
| 259 | __u32 hcount; |
| 260 | __u32 reserved[4]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 261 | }; |
| 262 | #define ROP_COPY 0 |
| 263 | #define ROP_XOR 1 |
| 264 | struct fb_copyarea { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 265 | __u32 dx; |
| 266 | __u32 dy; |
| 267 | __u32 width; |
| 268 | __u32 height; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 269 | __u32 sx; |
| 270 | __u32 sy; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 271 | }; |
| 272 | struct fb_fillrect { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 273 | __u32 dx; |
| 274 | __u32 dy; |
| 275 | __u32 width; |
| 276 | __u32 height; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 277 | __u32 color; |
| 278 | __u32 rop; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 279 | }; |
| 280 | struct fb_image { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 281 | __u32 dx; |
| 282 | __u32 dy; |
| 283 | __u32 width; |
| 284 | __u32 height; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 285 | __u32 fg_color; |
| 286 | __u32 bg_color; |
| 287 | __u8 depth; |
| 288 | const char * data; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 289 | struct fb_cmap cmap; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 290 | }; |
| 291 | #define FB_CUR_SETIMAGE 0x01 |
| 292 | #define FB_CUR_SETPOS 0x02 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 293 | #define FB_CUR_SETHOT 0x04 |
| 294 | #define FB_CUR_SETCMAP 0x08 |
| 295 | #define FB_CUR_SETSHAPE 0x10 |
| 296 | #define FB_CUR_SETSIZE 0x20 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 297 | #define FB_CUR_SETALL 0xFF |
| 298 | struct fbcurpos { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 299 | __u16 x, y; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 300 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 301 | struct fb_cursor { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 302 | __u16 set; |
| 303 | __u16 enable; |
| 304 | __u16 rop; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 305 | const char * mask; |
| 306 | struct fbcurpos hot; |
| 307 | struct fb_image image; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 308 | }; |
Christopher Ferris | d842e43 | 2019-03-07 10:21:59 -0800 | [diff] [blame] | 309 | #define FB_BACKLIGHT_LEVELS 128 |
| 310 | #define FB_BACKLIGHT_MAX 0xFF |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 311 | #endif |