Merge remote-tracking branch 'asoc/fix/wm8350' into tmp
[deliverable/linux.git] / include / uapi / video / uvesafb.h
1 #ifndef _UAPI_UVESAFB_H
2 #define _UAPI_UVESAFB_H
3
4 #include <linux/types.h>
5
6 struct v86_regs {
7 __u32 ebx;
8 __u32 ecx;
9 __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 /* Task flags */
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 /* Constants for the capabilities field
39 * in vbe_ib */
40 #define VBE_CAP_CAN_SWITCH_DAC 0x01
41 #define VBE_CAP_VGACOMPAT 0x02
42
43 /* The VBE Info Block */
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 /* _UAPI_UVESAFB_H */
This page took 0.033327 seconds and 6 git commands to generate.