OpenCores
URL https://opencores.org/ocsvn/hf-risc/hf-risc/trunk

Subversion Repositories hf-risc

[/] [hf-risc/] [trunk/] [tools/] [riscv-gnu-toolchain-master/] [linux-headers/] [include/] [video/] [uvesafb.h] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 serginhofr
#ifndef _UVESAFB_H
2
#define _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 /* _UVESAFB_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.