blob: abaf0940efcaaeed58ba1211643c3b4a9c10c8aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#ifndef VBE_H
#define VBE_H
typedef struct {
/* Mandatory information for all VBE revisions */
uint16 ModeAttributes; /**< @brief mode attributes */
uint8 WinAAttributes; /**< @brief window A attributes */
uint8 WinBAttributes; /**< @brief window B attributes */
uint16 WinGranularity; /**< @brief window granularity */
uint16 WinSize; /**< @brief window size */
uint16 WinASegment; /**< @brief window A start segment */
uint16 WinBSegment; /**< @brief window B start segment */
void* WinFuncPtr; /**< @brief real mode/far pointer to window function */
uint16 BytesPerScanLine; /**< @brief bytes per scan line */
/* Mandatory information for VBE 1.2 and above */
uint16 XResolution; /**< @brief horizontal resolution in pixels/characters */
uint16 YResolution; /**< @brief vertical resolution in pixels/characters */
uint8 XCharSize; /**< @brief character cell width in pixels */
uint8 YCharSize; /**< @brief character cell height in pixels */
uint8 NumberOfPlanes; /**< @brief number of memory planes */
uint8 BitsPerPixel; /**< @brief bits per pixel */
uint8 NumberOfBanks; /**< @brief number of banks */
uint8 MemoryModel; /**< @brief memory model type */
uint8 BankSize; /**< @brief bank size in KB */
uint8 NumberOfImagePages; /**< @brief number of images */
uint8 Reserved1; /**< @brief reserved for page function */
/* Direct Color fields (required for direct/6 and YUV/7 memory models) */
uint8 RedMaskSize; /* size of direct color red mask in bits */
uint8 RedFieldPosition; /* bit position of lsb of red mask */
uint8 GreenMaskSize; /* size of direct color green mask in bits */
uint8 GreenFieldPosition; /* bit position of lsb of green mask */
uint8 BlueMaskSize; /* size of direct color blue mask in bits */
uint8 BlueFieldPosition; /* bit position of lsb of blue mask */
uint8 RsvdMaskSize; /* size of direct color reserved mask in bits */
uint8 RsvdFieldPosition; /* bit position of lsb of reserved mask */
uint8 DirectColorModeInfo; /* direct color mode attributes */
/* Mandatory information for VBE 2.0 and above */
void* PhysBasePtr; /**< @brief physical address for flat memory frame buffer */
uint8 Reserved2[4]; /**< @brief Reserved - always set to 0 */
uint8 Reserved3[2]; /**< @brief Reserved - always set to 0 */
/* Mandatory information for VBE 3.0 and above */
uint16 LinBytesPerScanLine; /* bytes per scan line for linear modes */
uint8 BnkNumberOfImagePages; /* number of images for banked modes */
uint8 LinNumberOfImagePages; /* number of images for linear modes */
uint8 LinRedMaskSize; /* size of direct color red mask (linear modes) */
uint8 LinRedFieldPosition; /* bit position of lsb of red mask (linear modes) */
uint8 LinGreenMaskSize; /* size of direct color green mask (linear modes) */
uint8 LinGreenFieldPosition; /* bit position of lsb of green mask (linear modes) */
uint8 LinBlueMaskSize; /* size of direct color blue mask (linear modes) */
uint8 LinBlueFieldPosition; /* bit position of lsb of blue mask (linear modes ) */
uint8 LinRsvdMaskSize; /* size of direct color reserved mask (linear modes) */
uint8 LinRsvdFieldPosition; /* bit position of lsb of reserved mask (linear modes) */
uint32 MaxPixelClock; /* maximum pixel clock (in Hz) for graphics mode */
uint8 Reserved4[190]; /* remainder of ModeInfoBlock */
} __attribute__((packed)) vbe_mode_info_t;
#endif // VBE_H
|