blob: d0dca96cdcd600d376c13622728dadccf077656d [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_UVESAFB_H
20#define _UAPI_UVESAFB_H
21#include <linux/types.h>
22struct v86_regs {
Tao Baod7db5942015-01-28 10:07:51 -080023 __u32 ebx;
24 __u32 ecx;
25 __u32 edx;
26 __u32 esi;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u32 edi;
28 __u32 ebp;
29 __u32 eax;
30 __u32 eip;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u32 eflags;
32 __u32 esp;
33 __u16 cs;
34 __u16 ss;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u16 es;
36 __u16 ds;
37 __u16 fs;
38 __u16 gs;
Ben Cheng655a7c02013-10-16 16:09:24 -070039};
40#define TF_VBEIB 0x01
41#define TF_BUF_ESDI 0x02
42#define TF_BUF_ESBX 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define TF_BUF_RET 0x08
44#define TF_EXIT 0x10
45struct uvesafb_task {
Tao Baod7db5942015-01-28 10:07:51 -080046 __u8 flags;
Tao Baod7db5942015-01-28 10:07:51 -080047 int buf_len;
48 struct v86_regs regs;
Ben Cheng655a7c02013-10-16 16:09:24 -070049};
50#define VBE_CAP_CAN_SWITCH_DAC 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define VBE_CAP_VGACOMPAT 0x02
52struct vbe_ib {
Tao Baod7db5942015-01-28 10:07:51 -080053 char vbe_signature[4];
54 __u16 vbe_version;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u32 oem_string_ptr;
56 __u32 capabilities;
57 __u32 mode_list_ptr;
58 __u16 total_memory;
Tao Baod7db5942015-01-28 10:07:51 -080059 __u16 oem_software_rev;
60 __u32 oem_vendor_name_ptr;
61 __u32 oem_product_name_ptr;
62 __u32 oem_product_rev_ptr;
Tao Baod7db5942015-01-28 10:07:51 -080063 __u8 reserved[222];
64 char oem_data[256];
65 char misc_data[512];
66} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070067#endif