screen_info.h
01: #ifndef _SCREEN_INFO_H
02: #define _SCREEN_INFO_H
03:
04: #include <linux/types.h>
05:
06:
07:
08:
09:
10: struct screen_info {
11: __u8 orig_x;
12: __u8 orig_y;
13: __u16 ext_mem_k;
14: __u16 orig_video_page;
15: __u8 orig_video_mode;
16: __u8 orig_video_cols;
17: __u8 flags;
18: __u8 unused2;
19: __u16 orig_video_ega_bx;
20: __u16 unused3;
21: __u8 orig_video_lines;
22: __u8 orig_video_isVGA;
23: __u16 orig_video_points;
24:
25:
26: __u16 lfb_width;
27: __u16 lfb_height;
28: __u16 lfb_depth;
29: __u32 lfb_base;
30: __u32 lfb_size;
31: __u16 cl_magic, cl_offset;
32: __u16 lfb_linelength;
33: __u8 red_size;
34: __u8 red_pos;
35: __u8 green_size;
36: __u8 green_pos;
37: __u8 blue_size;
38: __u8 blue_pos;
39: __u8 rsvd_size;
40: __u8 rsvd_pos;
41: __u16 vesapm_seg;
42: __u16 vesapm_off;
43: __u16 pages;
44: __u16 vesa_attributes;
45: __u32 capabilities;
46: __u8 _reserved[6];
47: } __attribute__((packed));
48:
49: #define VIDEO_TYPE_MDA 0x10
50: #define VIDEO_TYPE_CGA 0x11
51: #define VIDEO_TYPE_EGAM 0x20
52: #define VIDEO_TYPE_EGAC 0x21
53: #define VIDEO_TYPE_VGAC 0x22
54: #define VIDEO_TYPE_VLFB 0x23
55:
56: #define VIDEO_TYPE_PICA_S3 0x30
57: #define VIDEO_TYPE_MIPS_G364 0x31
58: #define VIDEO_TYPE_SGI 0x33
59:
60: #define VIDEO_TYPE_TGAC 0x40
61:
62: #define VIDEO_TYPE_SUN 0x50
63: #define VIDEO_TYPE_SUNPCI 0x51
64:
65: #define VIDEO_TYPE_PMAC 0x60
66:
67: #define VIDEO_TYPE_EFI 0x70
68:
69: #define VIDEO_FLAGS_NOCURSOR (1 << 0)
70: #define VIDEO_FLAGS_HANDOFF (1 << 1)
71:
72:
73: #endif
74:
© Andrew Scott 2006 -
2025,
All Rights Reserved