aboutsummaryrefslogtreecommitdiffstats
path: root/include/video/uvesafb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/video/uvesafb.h')
-rw-r--r--include/video/uvesafb.h58
1 files changed, 1 insertions, 57 deletions
diff --git a/include/video/uvesafb.h b/include/video/uvesafb.h
index 0993a220a3e6..1a91850cb961 100644
--- a/include/video/uvesafb.h
+++ b/include/video/uvesafb.h
@@ -1,63 +1,8 @@
1#ifndef _UVESAFB_H 1#ifndef _UVESAFB_H
2#define _UVESAFB_H 2#define _UVESAFB_H
3 3
4#include <linux/types.h> 4#include <uapi/video/uvesafb.h>
5
6struct 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
32struct 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 */
44struct 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 5
60#ifdef __KERNEL__
61 6
62/* VBE CRTC Info Block */ 7/* VBE CRTC Info Block */
63struct vbe_crtc_ib { 8struct vbe_crtc_ib {
@@ -191,5 +136,4 @@ struct uvesafb_par {
191 struct vbe_crtc_ib crtc; 136 struct vbe_crtc_ib crtc;
192}; 137};
193 138
194#endif /* __KERNEL__ */
195#endif /* _UVESAFB_H */ 139#endif /* _UVESAFB_H */