blob: 7dfadbae0f11debe53cab24fd36ad849d5b68f02 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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>
22struct screen_info {
Tao Baod7db5942015-01-28 10:07:51 -080023 __u8 orig_x;
24 __u8 orig_y;
25 __u16 ext_mem_k;
26 __u16 orig_video_page;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u8 orig_video_mode;
28 __u8 orig_video_cols;
29 __u8 flags;
30 __u8 unused2;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u16 orig_video_ega_bx;
32 __u16 unused3;
33 __u8 orig_video_lines;
34 __u8 orig_video_isVGA;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u16 orig_video_points;
36 __u16 lfb_width;
37 __u16 lfb_height;
38 __u16 lfb_depth;
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 lfb_base;
40 __u32 lfb_size;
41 __u16 cl_magic, cl_offset;
42 __u16 lfb_linelength;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u8 red_size;
44 __u8 red_pos;
45 __u8 green_size;
46 __u8 green_pos;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u8 blue_size;
48 __u8 blue_pos;
49 __u8 rsvd_size;
50 __u8 rsvd_pos;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u16 vesapm_seg;
52 __u16 vesapm_off;
53 __u16 pages;
54 __u16 vesa_attributes;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u32 capabilities;
Christopher Ferris05d08e92016-02-04 13:16:38 -080056 __u32 ext_lfb_base;
57 __u8 _reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070058} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -080059#define VIDEO_TYPE_MDA 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define VIDEO_TYPE_CGA 0x11
61#define VIDEO_TYPE_EGAM 0x20
62#define VIDEO_TYPE_EGAC 0x21
Christopher Ferris05d08e92016-02-04 13:16:38 -080063#define VIDEO_TYPE_VGAC 0x22
Ben Cheng655a7c02013-10-16 16:09:24 -070064#define VIDEO_TYPE_VLFB 0x23
65#define VIDEO_TYPE_PICA_S3 0x30
66#define VIDEO_TYPE_MIPS_G364 0x31
Christopher Ferris05d08e92016-02-04 13:16:38 -080067#define VIDEO_TYPE_SGI 0x33
Ben Cheng655a7c02013-10-16 16:09:24 -070068#define VIDEO_TYPE_TGAC 0x40
69#define VIDEO_TYPE_SUN 0x50
70#define VIDEO_TYPE_SUNPCI 0x51
Christopher Ferris05d08e92016-02-04 13:16:38 -080071#define VIDEO_TYPE_PMAC 0x60
Ben Cheng655a7c02013-10-16 16:09:24 -070072#define VIDEO_TYPE_EFI 0x70
73#define VIDEO_FLAGS_NOCURSOR (1 << 0)
74#define VIDEO_CAPABILITY_SKIP_QUIRKS (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -080075#define VIDEO_CAPABILITY_64BIT_BASE (1 << 1)
76#endif