1 /* 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 */ 7 #ifndef _UAPI_UVESAFB_H 8 #define _UAPI_UVESAFB_H 9 #include <linux/types.h> 10 struct v86_regs { 11 __u32 ebx; 12 __u32 ecx; 13 __u32 edx; 14 __u32 esi; 15 __u32 edi; 16 __u32 ebp; 17 __u32 eax; 18 __u32 eip; 19 __u32 eflags; 20 __u32 esp; 21 __u16 cs; 22 __u16 ss; 23 __u16 es; 24 __u16 ds; 25 __u16 fs; 26 __u16 gs; 27 }; 28 #define TF_VBEIB 0x01 29 #define TF_BUF_ESDI 0x02 30 #define TF_BUF_ESBX 0x04 31 #define TF_BUF_RET 0x08 32 #define TF_EXIT 0x10 33 struct uvesafb_task { 34 __u8 flags; 35 int buf_len; 36 struct v86_regs regs; 37 }; 38 #define VBE_CAP_CAN_SWITCH_DAC 0x01 39 #define VBE_CAP_VGACOMPAT 0x02 40 struct vbe_ib { 41 char vbe_signature[4]; 42 __u16 vbe_version; 43 __u32 oem_string_ptr; 44 __u32 capabilities; 45 __u32 mode_list_ptr; 46 __u16 total_memory; 47 __u16 oem_software_rev; 48 __u32 oem_vendor_name_ptr; 49 __u32 oem_product_name_ptr; 50 __u32 oem_product_rev_ptr; 51 __u8 reserved[222]; 52 char oem_data[256]; 53 char misc_data[512]; 54 } __attribute__((packed)); 55 #endif 56