uvesafb.h
01: #ifndef _UVESAFB_H
02: #define _UVESAFB_H
03:
04: #include <linux/types.h>
05:
06: struct v86_regs {
07: __u32 ebx;
08: __u32 ecx;
09: __u32 edx;
10: __u32 esi;
11: __u32 edi;
12: __u32 ebp;
13: __u32 eax;
14: __u32 eip;
15: __u32 eflags;
16: __u32 esp;
17: __u16 cs;
18: __u16 ss;
19: __u16 es;
20: __u16 ds;
21: __u16 fs;
22: __u16 gs;
23: };
24:
25:
26: #define TF_VBEIB 0x01
27: #define TF_BUF_ESDI 0x02
28: #define TF_BUF_ESBX 0x04
29: #define TF_BUF_RET 0x08
30: #define TF_EXIT 0x10
31:
32: struct uvesafb_task {
33: __u8 flags;
34: int buf_len;
35: struct v86_regs regs;
36: };
37:
38:
39:
40: #define VBE_CAP_CAN_SWITCH_DAC 0x01
41: #define VBE_CAP_VGACOMPAT 0x02
42:
43:
44: struct vbe_ib {
45: char vbe_signature[4];
46: __u16 vbe_version;
47: __u32 oem_string_ptr;
48: __u32 capabilities;
49: __u32 mode_list_ptr;
50: __u16 total_memory;
51: __u16 oem_software_rev;
52: __u32 oem_vendor_name_ptr;
53: __u32 oem_product_name_ptr;
54: __u32 oem_product_rev_ptr;
55: __u8 reserved[222];
56: char oem_data[256];
57: char misc_data[512];
58: } __attribute__ ((packed));
59:
60: #endif
61:
© Andrew Scott 2006 -
2025,
All Rights Reserved