1 /**************************************************************************** 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> 22 struct v86_regs { 23 __u32 ebx; 24 __u32 ecx; 25 __u32 edx; 26 __u32 esi; 27 __u32 edi; 28 __u32 ebp; 29 __u32 eax; 30 __u32 eip; 31 __u32 eflags; 32 __u32 esp; 33 __u16 cs; 34 __u16 ss; 35 __u16 es; 36 __u16 ds; 37 __u16 fs; 38 __u16 gs; 39 }; 40 #define TF_VBEIB 0x01 41 #define TF_BUF_ESDI 0x02 42 #define TF_BUF_ESBX 0x04 43 #define TF_BUF_RET 0x08 44 #define TF_EXIT 0x10 45 struct uvesafb_task { 46 __u8 flags; 47 int buf_len; 48 struct v86_regs regs; 49 }; 50 #define VBE_CAP_CAN_SWITCH_DAC 0x01 51 #define VBE_CAP_VGACOMPAT 0x02 52 struct vbe_ib { 53 char vbe_signature[4]; 54 __u16 vbe_version; 55 __u32 oem_string_ptr; 56 __u32 capabilities; 57 __u32 mode_list_ptr; 58 __u16 total_memory; 59 __u16 oem_software_rev; 60 __u32 oem_vendor_name_ptr; 61 __u32 oem_product_name_ptr; 62 __u32 oem_product_rev_ptr; 63 __u8 reserved[222]; 64 char oem_data[256]; 65 char misc_data[512]; 66 } __attribute__((packed)); 67 #endif 68