blob: e1856c763bb5054a393f353f4a0a380638feca6a [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_SCREEN_INFO_H
8#define _UAPI_SCREEN_INFO_H
9#include <linux/types.h>
10struct screen_info {
Tao Baod7db5942015-01-28 10:07:51 -080011 __u8 orig_x;
12 __u8 orig_y;
13 __u16 ext_mem_k;
14 __u16 orig_video_page;
Tao Baod7db5942015-01-28 10:07:51 -080015 __u8 orig_video_mode;
16 __u8 orig_video_cols;
17 __u8 flags;
18 __u8 unused2;
Tao Baod7db5942015-01-28 10:07:51 -080019 __u16 orig_video_ega_bx;
20 __u16 unused3;
21 __u8 orig_video_lines;
22 __u8 orig_video_isVGA;
Tao Baod7db5942015-01-28 10:07:51 -080023 __u16 orig_video_points;
24 __u16 lfb_width;
25 __u16 lfb_height;
26 __u16 lfb_depth;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u32 lfb_base;
28 __u32 lfb_size;
29 __u16 cl_magic, cl_offset;
30 __u16 lfb_linelength;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u8 red_size;
32 __u8 red_pos;
33 __u8 green_size;
34 __u8 green_pos;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u8 blue_size;
36 __u8 blue_pos;
37 __u8 rsvd_size;
38 __u8 rsvd_pos;
Tao Baod7db5942015-01-28 10:07:51 -080039 __u16 vesapm_seg;
40 __u16 vesapm_off;
41 __u16 pages;
42 __u16 vesa_attributes;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 capabilities;
Christopher Ferris05d08e92016-02-04 13:16:38 -080044 __u32 ext_lfb_base;
45 __u8 _reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070046} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -080047#define VIDEO_TYPE_MDA 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -070048#define VIDEO_TYPE_CGA 0x11
49#define VIDEO_TYPE_EGAM 0x20
50#define VIDEO_TYPE_EGAC 0x21
Christopher Ferris05d08e92016-02-04 13:16:38 -080051#define VIDEO_TYPE_VGAC 0x22
Ben Cheng655a7c02013-10-16 16:09:24 -070052#define VIDEO_TYPE_VLFB 0x23
53#define VIDEO_TYPE_PICA_S3 0x30
54#define VIDEO_TYPE_MIPS_G364 0x31
Christopher Ferris05d08e92016-02-04 13:16:38 -080055#define VIDEO_TYPE_SGI 0x33
Ben Cheng655a7c02013-10-16 16:09:24 -070056#define VIDEO_TYPE_TGAC 0x40
57#define VIDEO_TYPE_SUN 0x50
58#define VIDEO_TYPE_SUNPCI 0x51
Christopher Ferris05d08e92016-02-04 13:16:38 -080059#define VIDEO_TYPE_PMAC 0x60
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define VIDEO_TYPE_EFI 0x70
61#define VIDEO_FLAGS_NOCURSOR (1 << 0)
62#define VIDEO_CAPABILITY_SKIP_QUIRKS (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -080063#define VIDEO_CAPABILITY_64BIT_BASE (1 << 1)
64#endif