1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_UVESAFB_H 7 #define _UAPI_UVESAFB_H 8 #include <linux/types.h> 9 struct v86_regs { 10 __u32 ebx; 11 __u32 ecx; 12 __u32 edx; 13 __u32 esi; 14 __u32 edi; 15 __u32 ebp; 16 __u32 eax; 17 __u32 eip; 18 __u32 eflags; 19 __u32 esp; 20 __u16 cs; 21 __u16 ss; 22 __u16 es; 23 __u16 ds; 24 __u16 fs; 25 __u16 gs; 26 }; 27 #define TF_VBEIB 0x01 28 #define TF_BUF_ESDI 0x02 29 #define TF_BUF_ESBX 0x04 30 #define TF_BUF_RET 0x08 31 #define TF_EXIT 0x10 32 struct uvesafb_task { 33 __u8 flags; 34 int buf_len; 35 struct v86_regs regs; 36 }; 37 #define VBE_CAP_CAN_SWITCH_DAC 0x01 38 #define VBE_CAP_VGACOMPAT 0x02 39 struct vbe_ib { 40 char vbe_signature[4]; 41 __u16 vbe_version; 42 __u32 oem_string_ptr; 43 __u32 capabilities; 44 __u32 mode_list_ptr; 45 __u16 total_memory; 46 __u16 oem_software_rev; 47 __u32 oem_vendor_name_ptr; 48 __u32 oem_product_name_ptr; 49 __u32 oem_product_rev_ptr; 50 __u8 reserved[222]; 51 char oem_data[256]; 52 char misc_data[512]; 53 } __attribute__ ((packed)); 54 #endif 55