blob: 6a8b2bf0bebd35c323aaff7d72e3d79f8f631ab9 [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_UVESAFB_H
8#define _UAPI_UVESAFB_H
9#include <linux/types.h>
10struct v86_regs {
Tao Baod7db5942015-01-28 10:07:51 -080011 __u32 ebx;
12 __u32 ecx;
13 __u32 edx;
14 __u32 esi;
Tao Baod7db5942015-01-28 10:07:51 -080015 __u32 edi;
16 __u32 ebp;
17 __u32 eax;
18 __u32 eip;
Tao Baod7db5942015-01-28 10:07:51 -080019 __u32 eflags;
20 __u32 esp;
21 __u16 cs;
22 __u16 ss;
Tao Baod7db5942015-01-28 10:07:51 -080023 __u16 es;
24 __u16 ds;
25 __u16 fs;
26 __u16 gs;
Ben Cheng655a7c02013-10-16 16:09:24 -070027};
28#define TF_VBEIB 0x01
29#define TF_BUF_ESDI 0x02
30#define TF_BUF_ESBX 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define TF_BUF_RET 0x08
32#define TF_EXIT 0x10
33struct uvesafb_task {
Tao Baod7db5942015-01-28 10:07:51 -080034 __u8 flags;
Tao Baod7db5942015-01-28 10:07:51 -080035 int buf_len;
36 struct v86_regs regs;
Ben Cheng655a7c02013-10-16 16:09:24 -070037};
38#define VBE_CAP_CAN_SWITCH_DAC 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define VBE_CAP_VGACOMPAT 0x02
40struct vbe_ib {
Tao Baod7db5942015-01-28 10:07:51 -080041 char vbe_signature[4];
42 __u16 vbe_version;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 oem_string_ptr;
44 __u32 capabilities;
45 __u32 mode_list_ptr;
46 __u16 total_memory;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u16 oem_software_rev;
48 __u32 oem_vendor_name_ptr;
49 __u32 oem_product_name_ptr;
50 __u32 oem_product_rev_ptr;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u8 reserved[222];
52 char oem_data[256];
53 char misc_data[512];
54} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070055#endif