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  */
7 #ifndef _UAPI_SCREEN_INFO_H
8 #define _UAPI_SCREEN_INFO_H
9 #include <linux/types.h>
10 struct screen_info {
11   __u8 orig_x;
12   __u8 orig_y;
13   __u16 ext_mem_k;
14   __u16 orig_video_page;
15   __u8 orig_video_mode;
16   __u8 orig_video_cols;
17   __u8 flags;
18   __u8 unused2;
19   __u16 orig_video_ega_bx;
20   __u16 unused3;
21   __u8 orig_video_lines;
22   __u8 orig_video_isVGA;
23   __u16 orig_video_points;
24   __u16 lfb_width;
25   __u16 lfb_height;
26   __u16 lfb_depth;
27   __u32 lfb_base;
28   __u32 lfb_size;
29   __u16 cl_magic, cl_offset;
30   __u16 lfb_linelength;
31   __u8 red_size;
32   __u8 red_pos;
33   __u8 green_size;
34   __u8 green_pos;
35   __u8 blue_size;
36   __u8 blue_pos;
37   __u8 rsvd_size;
38   __u8 rsvd_pos;
39   __u16 vesapm_seg;
40   __u16 vesapm_off;
41   __u16 pages;
42   __u16 vesa_attributes;
43   __u32 capabilities;
44   __u32 ext_lfb_base;
45   __u8 _reserved[2];
46 } __attribute__((packed));
47 #define VIDEO_TYPE_MDA 0x10
48 #define VIDEO_TYPE_CGA 0x11
49 #define VIDEO_TYPE_EGAM 0x20
50 #define VIDEO_TYPE_EGAC 0x21
51 #define VIDEO_TYPE_VGAC 0x22
52 #define VIDEO_TYPE_VLFB 0x23
53 #define VIDEO_TYPE_PICA_S3 0x30
54 #define VIDEO_TYPE_MIPS_G364 0x31
55 #define VIDEO_TYPE_SGI 0x33
56 #define VIDEO_TYPE_TGAC 0x40
57 #define VIDEO_TYPE_SUN 0x50
58 #define VIDEO_TYPE_SUNPCI 0x51
59 #define VIDEO_TYPE_PMAC 0x60
60 #define VIDEO_TYPE_EFI 0x70
61 #define VIDEO_FLAGS_NOCURSOR (1 << 0)
62 #define VIDEO_CAPABILITY_SKIP_QUIRKS (1 << 0)
63 #define VIDEO_CAPABILITY_64BIT_BASE (1 << 1)
64 #endif
65