• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_SCREEN_INFO_H
20 #define _UAPI_SCREEN_INFO_H
21 #include <linux/types.h>
22 struct screen_info {
23   __u8 orig_x;
24   __u8 orig_y;
25   __u16 ext_mem_k;
26   __u16 orig_video_page;
27   __u8 orig_video_mode;
28   __u8 orig_video_cols;
29   __u8 flags;
30   __u8 unused2;
31   __u16 orig_video_ega_bx;
32   __u16 unused3;
33   __u8 orig_video_lines;
34   __u8 orig_video_isVGA;
35   __u16 orig_video_points;
36   __u16 lfb_width;
37   __u16 lfb_height;
38   __u16 lfb_depth;
39   __u32 lfb_base;
40   __u32 lfb_size;
41   __u16 cl_magic, cl_offset;
42   __u16 lfb_linelength;
43   __u8 red_size;
44   __u8 red_pos;
45   __u8 green_size;
46   __u8 green_pos;
47   __u8 blue_size;
48   __u8 blue_pos;
49   __u8 rsvd_size;
50   __u8 rsvd_pos;
51   __u16 vesapm_seg;
52   __u16 vesapm_off;
53   __u16 pages;
54   __u16 vesa_attributes;
55   __u32 capabilities;
56   __u32 ext_lfb_base;
57   __u8 _reserved[2];
58 } __attribute__((packed));
59 #define VIDEO_TYPE_MDA 0x10
60 #define VIDEO_TYPE_CGA 0x11
61 #define VIDEO_TYPE_EGAM 0x20
62 #define VIDEO_TYPE_EGAC 0x21
63 #define VIDEO_TYPE_VGAC 0x22
64 #define VIDEO_TYPE_VLFB 0x23
65 #define VIDEO_TYPE_PICA_S3 0x30
66 #define VIDEO_TYPE_MIPS_G364 0x31
67 #define VIDEO_TYPE_SGI 0x33
68 #define VIDEO_TYPE_TGAC 0x40
69 #define VIDEO_TYPE_SUN 0x50
70 #define VIDEO_TYPE_SUNPCI 0x51
71 #define VIDEO_TYPE_PMAC 0x60
72 #define VIDEO_TYPE_EFI 0x70
73 #define VIDEO_FLAGS_NOCURSOR (1 << 0)
74 #define VIDEO_CAPABILITY_SKIP_QUIRKS (1 << 0)
75 #define VIDEO_CAPABILITY_64BIT_BASE (1 << 1)
76 #endif
77