1a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich/****************************************************************************
2a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ****************************************************************************
3a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***
4a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   This header was automatically generated from a Linux kernel header
5a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   of the same name, to make information necessary for userspace to
6a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   call into the kernel available to libc.  It contains only constants,
7a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   structures, and macros generated from the original header, and thus,
8a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   contains no copyrightable information.
9a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***
10a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   To edit the content of this header, modify the corresponding
11a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   source file (e.g. under external/kernel-headers/original/) then
12a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   run bionic/libc/kernel/tools/update_all.py
13a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***
14a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   Any manual change here will be lost the next time this script will
15a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***   be run. You've been warned!
16a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ***
17a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ****************************************************************************
18a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich ****************************************************************************/
19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef _UAPI_UVESAFB_H
20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define _UAPI_UVESAFB_H
21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h>
22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct v86_regs {
23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 ebx;
25d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 ecx;
26d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 edx;
27d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 esi;
28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 edi;
30d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 ebp;
31d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 eax;
32d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 eip;
33655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 eflags;
35d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 esp;
36d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 cs;
37d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 ss;
38655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 es;
40d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 ds;
41d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 fs;
42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 gs;
43655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
45655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TF_VBEIB 0x01
46655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TF_BUF_ESDI 0x02
47655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TF_BUF_ESBX 0x04
48655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TF_BUF_RET 0x08
50655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define TF_EXIT 0x10
51655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct uvesafb_task {
52d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u8 flags;
53655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int buf_len;
55d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  struct v86_regs regs;
56655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
57655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define VBE_CAP_CAN_SWITCH_DAC 0x01
58655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define VBE_CAP_VGACOMPAT 0x02
60655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct vbe_ib {
61d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char vbe_signature[4];
62d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 vbe_version;
63655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 oem_string_ptr;
65d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 capabilities;
66d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 mode_list_ptr;
67d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 total_memory;
68655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u16 oem_software_rev;
70d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 oem_vendor_name_ptr;
71d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 oem_product_name_ptr;
72d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 oem_product_rev_ptr;
73655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u8 reserved[222];
75d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char oem_data[256];
76d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char misc_data[512];
77d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao} __attribute__((packed));
78655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79a67e4de6620b570dabe0f92985228af0d0204f2cNick Kralevich#endif
80