Add externs to avoid multiple definitions, and then add missing definitions.
[rrq/maintain_lilo.git] / src / vesainfo.h
1 /* vesainfo.c
2  * 
3  * Copyright 2003-2004 John Coffman
4  * Copyright 2009-2011 Joachim Wiedorn
5  * All rights reserved.
6  * 
7  * Licensed under the terms contained in the file 'COPYING'
8  * in the source directory.
9  */
10
11 #ifndef _VESAINFO_H
12 #define _VESAINFO_H
13
14 #ifndef LILO_ASM
15 #pragma pack(2)
16
17 typedef
18    union {
19       char  space[512];
20       struct {
21          char  Signature[4];
22          short Version;
23          char  *OEMstring;              /* far pointer */
24          int  Capabilities;
25          short *VideoModePtr;           /* far pointer */
26          } ident;
27       struct {
28          short ModeAttributes;
29          char  WinAAttributes;
30          char  WinBAttributes;
31          short WinGranularity;
32          short WinSize;
33          short WinASegment;
34          short WinBSegment;
35          char *WinFuncPtr;          /* window swapping function */
36          short BytesPerScanLine;
37
38          /* Optional Information */
39          short Xresolution;
40          short Yresolution;
41  unsigned char XcharSize;
42  unsigned char YcharSize;
43          char  NumberOfPlanes;
44          char  BitsPerPixel;
45  unsigned char NumberOfBanks;
46          char  MemoryModel;
47  unsigned char BankSize;
48          } info;
49       } VESAINFO;
50
51 #pragma pack()
52
53 #else   /* LILO_ASM is defined */
54 v_Signature     = 0             ; offset to Signature (int)
55 v_Capabilities  = 10            ; offset to Capabilities (int)
56
57 v_ModeAttributes = 0            ; short
58 v_WinAAttributes = 2            ; char
59 v_WinBAttributes = 3            ; char
60 v_WinGranularity = 4            ; short
61 v_WinSize       = 6             ; short
62 v_WinASegment   = 8             ; short
63 v_WinBSegment   = 10            ; short
64 v_WinFuncPointer = 12           ; far pointer
65 v_BytesPerScanLine = 16         ; short
66
67 #endif
68
69 #define SIG_VBE2 0x32454256
70 #define SIG_VESA 0x41534556
71
72 #endif
73 /* end vesainfo.h */
74