Subversion Repositories Kolibri OS

Rev

Rev 8150 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8150 Rev 9227
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2020. All rights reserved.      ;;
3
;; Copyright (C) KolibriOS team 2020-2021. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;; Version 2, or (at your option) any later version.            ;;
5
;; Version 2, or (at your option) any later version.            ;;
6
;;                                                              ;;
6
;;                                                              ;;
-
 
7
;; Written by Ivan Baravy                                       ;;
-
 
8
;;                                                              ;;
7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
9
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8
;;                                                              ;;
10
;;                                                              ;;
9
;; Based on UEFI library for fasm by bzt, Public Domain.        ;;
11
;; Based on UEFI library for fasm by bzt, Public Domain.        ;;
10
;;                                                              ;;
12
;;                                                              ;;
11
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
 
14
 
13
EFI_LOCATE_SEARCH_TYPE:
15
EFI_LOCATE_SEARCH_TYPE:
14
.AllHandles       = 0
16
.AllHandles       = 0
15
.ByRegisterNotify = 1
17
.ByRegisterNotify = 1
16
.ByProtocol       = 2
18
.ByProtocol       = 2
17
 
19
 
18
; EFI_MEMORY_TYPE
20
; EFI_MEMORY_TYPE
19
EFI_RESERVED_MEMORY_TYPE        = 0
21
EFI_RESERVED_MEMORY_TYPE        = 0
20
EFI_LOADER_CODE                 = 1
22
EFI_LOADER_CODE                 = 1
21
EFI_LOADER_DATA                 = 2
23
EFI_LOADER_DATA                 = 2
22
EFI_BOOT_SERVICES_CODE          = 3
24
EFI_BOOT_SERVICES_CODE          = 3
23
EFI_BOOT_SERVICES_DATA          = 4
25
EFI_BOOT_SERVICES_DATA          = 4
24
EFI_RUNTIME_SERVICES_CODE       = 5
26
EFI_RUNTIME_SERVICES_CODE       = 5
25
EFI_RUNTIME_SERVICES_DATA       = 6
27
EFI_RUNTIME_SERVICES_DATA       = 6
26
EFI_CONVENTIONAL_MEMORY         = 7
28
EFI_CONVENTIONAL_MEMORY         = 7
27
EFI_UNUSABLE_MEMORY             = 8
29
EFI_UNUSABLE_MEMORY             = 8
28
EFI_ACPI_RECLAIM_MEMORY         = 9
30
EFI_ACPI_RECLAIM_MEMORY         = 9
29
EFI_ACPI_MEMORY_NVS             = 10
31
EFI_ACPI_MEMORY_NVS             = 10
30
EFI_MEMORY_MAPPED_IO            = 11
32
EFI_MEMORY_MAPPED_IO            = 11
31
EFI_MEMORY_MAPPED_IO_PORT_SPACE = 12
33
EFI_MEMORY_MAPPED_IO_PORT_SPACE = 12
32
EFI_PAL_CODE                    = 13
34
EFI_PAL_CODE                    = 13
33
EFI_PERSISTENT_MEMORY           = 14
35
EFI_PERSISTENT_MEMORY           = 14
34
EFI_MAX_MEMORY_TYPE             = 15
36
EFI_MAX_MEMORY_TYPE             = 15
35
 
37
 
36
; EFI_ALLOCATE_TYPE
38
; EFI_ALLOCATE_TYPE
37
EFI_ALLOCATE_ANY_PAGES   = 0
39
EFI_ALLOCATE_ANY_PAGES   = 0
38
EFI_ALLOCATE_MAX_ADDRESS = 1
40
EFI_ALLOCATE_MAX_ADDRESS = 1
39
EFI_ALLOCATE_ADDRESS     = 2
41
EFI_ALLOCATE_ADDRESS     = 2
40
 
42
 
41
EFI_MEMORY_UC                   = 0x00000001
43
EFI_MEMORY_UC                   = 0x00000001
42
EFI_MEMORY_WC                   = 0x00000002
44
EFI_MEMORY_WC                   = 0x00000002
43
EFI_MEMORY_WT                   = 0x00000004
45
EFI_MEMORY_WT                   = 0x00000004
44
EFI_MEMORY_WB                   = 0x00000008
46
EFI_MEMORY_WB                   = 0x00000008
45
EFI_MEMORY_UCE                  = 0x00000010
47
EFI_MEMORY_UCE                  = 0x00000010
46
EFI_MEMORY_WP                   = 0x00001000
48
EFI_MEMORY_WP                   = 0x00001000
47
EFI_MEMORY_RP                   = 0x00002000
49
EFI_MEMORY_RP                   = 0x00002000
48
EFI_MEMORY_XP                   = 0x00004000
50
EFI_MEMORY_XP                   = 0x00004000
49
EFI_MEMORY_NV                   = 0x00008000
51
EFI_MEMORY_NV                   = 0x00008000
50
EFI_MEMORY_MORE_RELIABLE        = 0x00010000
52
EFI_MEMORY_MORE_RELIABLE        = 0x00010000
51
EFI_MEMORY_RO                   = 0x00020000
53
EFI_MEMORY_RO                   = 0x00020000
52
 
54
 
53
EFI_SUCCESS                     = 0
55
EFI_SUCCESS                     = 0
54
EFI_LOAD_ERROR                  = EFIERR or 1
56
EFI_LOAD_ERROR                  = EFIERR or 1
55
EFI_INVALID_PARAMETER           = EFIERR or 2
57
EFI_INVALID_PARAMETER           = EFIERR or 2
56
EFI_UNSUPPORTED                 = EFIERR or 3
58
EFI_UNSUPPORTED                 = EFIERR or 3
57
EFI_BAD_BUFFER_SIZE             = EFIERR or 4
59
EFI_BAD_BUFFER_SIZE             = EFIERR or 4
58
EFI_BUFFER_TOO_SMALL            = EFIERR or 5
60
EFI_BUFFER_TOO_SMALL            = EFIERR or 5
59
EFI_NOT_READY                   = EFIERR or 6
61
EFI_NOT_READY                   = EFIERR or 6
60
EFI_DEVICE_ERROR                = EFIERR or 7
62
EFI_DEVICE_ERROR                = EFIERR or 7
61
EFI_WRITE_PROTECTED             = EFIERR or 8
63
EFI_WRITE_PROTECTED             = EFIERR or 8
62
EFI_OUT_OF_RESOURCES            = EFIERR or 9
64
EFI_OUT_OF_RESOURCES            = EFIERR or 9
63
EFI_VOLUME_CORRUPTED            = EFIERR or 10
65
EFI_VOLUME_CORRUPTED            = EFIERR or 10
64
EFI_VOLUME_FULL                 = EFIERR or 11
66
EFI_VOLUME_FULL                 = EFIERR or 11
65
EFI_NO_MEDIA                    = EFIERR or 12
67
EFI_NO_MEDIA                    = EFIERR or 12
66
EFI_MEDIA_CHANGED               = EFIERR or 13
68
EFI_MEDIA_CHANGED               = EFIERR or 13
67
EFI_NOT_FOUND                   = EFIERR or 14
69
EFI_NOT_FOUND                   = EFIERR or 14
68
EFI_ACCESS_DENIED               = EFIERR or 15
70
EFI_ACCESS_DENIED               = EFIERR or 15
69
EFI_NO_RESPONSE                 = EFIERR or 16
71
EFI_NO_RESPONSE                 = EFIERR or 16
70
EFI_NO_MAPPING                  = EFIERR or 17
72
EFI_NO_MAPPING                  = EFIERR or 17
71
EFI_TIMEOUT                     = EFIERR or 18
73
EFI_TIMEOUT                     = EFIERR or 18
72
EFI_NOT_STARTED                 = EFIERR or 19
74
EFI_NOT_STARTED                 = EFIERR or 19
73
EFI_ALREADY_STARTED             = EFIERR or 20
75
EFI_ALREADY_STARTED             = EFIERR or 20
74
EFI_ABORTED                     = EFIERR or 21
76
EFI_ABORTED                     = EFIERR or 21
75
EFI_ICMP_ERROR                  = EFIERR or 22
77
EFI_ICMP_ERROR                  = EFIERR or 22
76
EFI_TFTP_ERROR                  = EFIERR or 23
78
EFI_TFTP_ERROR                  = EFIERR or 23
77
EFI_PROTOCOL_ERROR              = EFIERR or 24
79
EFI_PROTOCOL_ERROR              = EFIERR or 24
78
 
80
 
79
 
81
 
80
EFI_FILE_SYSTEM_INFO_ID equ 0x93,0x6e,0x57,0x09,0x3f,0x6d,0xd2,0x11, \
82
EFI_FILE_SYSTEM_INFO_ID equ 0x93,0x6e,0x57,0x09,0x3f,0x6d,0xd2,0x11, \
81
                            0x39,0x8e,0x00,0xa0,0xc9,0x69,0x72,0x3b
83
                            0x39,0x8e,0x00,0xa0,0xc9,0x69,0x72,0x3b
82
 
84
 
83
EFI_SYSTEM_TABLE_SIGNATURE equ 0x49,0x42,0x49,0x20,0x53,0x59,0x53,0x54
85
EFI_SYSTEM_TABLE_SIGNATURE equ 0x49,0x42,0x49,0x20,0x53,0x59,0x53,0x54
84
 
86
 
85
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID equ 0x22,0x5b,0x4e,0x96, \
87
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID equ 0x22,0x5b,0x4e,0x96, \
86
                                         0x59,0x64,0xd2,0x11, \
88
                                         0x59,0x64,0xd2,0x11, \
87
                                         0x8e,0x39,0x00,0xa0, \
89
                                         0x8e,0x39,0x00,0xa0, \
88
                                         0xc9,0x69,0x72,0x3b
90
                                         0xc9,0x69,0x72,0x3b
89
 
91
 
90
EFI_LOADED_IMAGE_PROTOCOL_GUID equ 0xA1,0x31,0x1b,0x5b,0x62,0x95,0xd2,0x11, \
92
EFI_LOADED_IMAGE_PROTOCOL_GUID equ 0xA1,0x31,0x1b,0x5b,0x62,0x95,0xd2,0x11, \
91
                                    0x8E,0x3F,0x00,0xA0,0xC9,0x69,0x72,0x3B
93
                                    0x8E,0x3F,0x00,0xA0,0xC9,0x69,0x72,0x3B
92
 
94
 
93
EFI_BLOCK_IO_PROTOCOL_GUID equ 0x21,0x5b,0x4e,0x96,0x59,0x64,0xd2,0x11, \
95
EFI_BLOCK_IO_PROTOCOL_GUID equ 0x21,0x5b,0x4e,0x96,0x59,0x64,0xd2,0x11, \
94
                               0x8e,0x39,0x00,0xa0,0xc9,0x69,0x72,0x3b
96
                               0x8e,0x39,0x00,0xa0,0xc9,0x69,0x72,0x3b
95
 
97
 
96
EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID equ 0xde,0xa9,0x42,0x90,0xdc,0x23,0x38,0x4a, \
98
EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID equ 0xde,0xa9,0x42,0x90,0xdc,0x23,0x38,0x4a, \
97
                                      0x96,0xfb,0x7a,0xde,0xd0,0x80,0x51,0x6a
99
                                      0x96,0xfb,0x7a,0xde,0xd0,0x80,0x51,0x6a
-
 
100
 
-
 
101
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_GUID equ 0xBB, 0x7E, 0x70, 0x2F, \
-
 
102
                                         0x1A, 0x4A, 0xd4, 0x11, \
-
 
103
                                         0x9A, 0x38, 0x00, 0x90, \
-
 
104
                                         0x27, 0x3F, 0xC1, 0x4D
98
 
105
 
99
EFI_FILE_MODE_READ   = 1
106
EFI_FILE_MODE_READ   = 1
100
EFI_FILE_MODE_WRITE  = 2
107
EFI_FILE_MODE_WRITE  = 2
101
EFI_FILE_MODE_CREATE = 0x8000000000000000
108
EFI_FILE_MODE_CREATE = 0x8000000000000000
102
 
109
 
103
struct EFI_MEMORY_DESCRIPTOR
110
struct EFI_MEMORY_DESCRIPTOR
104
  Type          dd ?
111
  Type          dd ?
105
                dd ?    ; align
112
                dd ?    ; align
106
  PhysicalStart DQ ?
113
  PhysicalStart DQ ?
107
  VirtualStart  DQ ?
114
  VirtualStart  DQ ?
108
  NumberOfPages DQ ?
115
  NumberOfPages DQ ?
109
  Attribute     DQ ?
116
  Attribute     DQ ?
110
ends
117
ends
111
 
118
 
112
struct EFI_FILE_SYSTEM_INFO
119
struct EFI_FILE_SYSTEM_INFO
113
  Size          DQ ?
120
  Size          DQ ?
114
  ReadOnly      db ?
121
  ReadOnly      db ?
115
                rb 7
122
                rb 7
116
  VolumeSize    DQ ?
123
  VolumeSize    DQ ?
117
  FreeSpace     DQ ?
124
  FreeSpace     DQ ?
118
  BlockSize     dd ?
125
  BlockSize     dd ?
119
  VolumeLabel   rw 32
126
  VolumeLabel   rw 32
120
ends
127
ends
121
 
128
 
122
struct EFI_TABLE_HEADER
129
struct EFI_TABLE_HEADER
123
  Signature             DQ ?
130
  Signature             DQ ?
124
  Revision              dd ?
131
  Revision              dd ?
125
  HeaderSize            dd ?
132
  HeaderSize            dd ?
126
  CRC32                 dd ?
133
  CRC32                 dd ?
127
  Reserved              dd ?
134
  Reserved              dd ?
128
ends
135
ends
129
 
136
 
130
struct EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL
137
struct EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL
131
  Reset                 DN ?
138
  Reset                 DN ?
132
  OutputString          DN ?
139
  OutputString          DN ?
133
  TestString            DN ?
140
  TestString            DN ?
134
  QueryMode             DN ?
141
  QueryMode             DN ?
135
  SetMode               DN ?
142
  SetMode               DN ?
136
  SetAttribute          DN ?
143
  SetAttribute          DN ?
137
  ClearScreen           DN ?
144
  ClearScreen           DN ?
138
  SetCursorPosition     DN ?
145
  SetCursorPosition     DN ?
139
  EnableCursor          DN ?
146
  EnableCursor          DN ?
140
  Mode                  DN ?
147
  Mode                  DN ?
141
ends
148
ends
142
 
149
 
143
 
150
 
144
struct SIMPLE_INPUT_INTERFACE
151
struct SIMPLE_INPUT_INTERFACE
145
  Reset                 DN ?
152
  Reset                 DN ?
146
  ReadKeyStroke         DN ?
153
  ReadKeyStroke         DN ?
147
  WaitForKey            DN ?
154
  WaitForKey            DN ?
148
ends
155
ends
149
 
156
 
150
struct EFI_BOOT_SERVICES
157
struct EFI_BOOT_SERVICES
151
  Hdr                        EFI_TABLE_HEADER
158
  Hdr                        EFI_TABLE_HEADER
152
  RaisePriority              DN ?
159
  RaisePriority              DN ?
153
  RestorePriority            DN ?
160
  RestorePriority            DN ?
154
  AllocatePages              DN ?
161
  AllocatePages              DN ?
155
  FreePages                  DN ?
162
  FreePages                  DN ?
156
  GetMemoryMap               DN ?
163
  GetMemoryMap               DN ?
157
  AllocatePool               DN ?
164
  AllocatePool               DN ?
158
  FreePool                   DN ?
165
  FreePool                   DN ?
159
  CreateEvent                DN ?
166
  CreateEvent                DN ?
160
  SetTimer                   DN ?
167
  SetTimer                   DN ?
161
  WaitForEvent               DN ?
168
  WaitForEvent               DN ?
162
  SignalEvent                DN ?
169
  SignalEvent                DN ?
163
  CloseEvent                 DN ?
170
  CloseEvent                 DN ?
164
  CheckEvent                 DN ?
171
  CheckEvent                 DN ?
165
  InstallProtocolInterface   DN ?
172
  InstallProtocolInterface   DN ?
166
  ReInstallProtocolInterface DN ?
173
  ReInstallProtocolInterface DN ?
167
  UnInstallProtocolInterface DN ?
174
  UnInstallProtocolInterface DN ?
168
  HandleProtocol             DN ?
175
  HandleProtocol             DN ?
169
  Reserved                   DN ?
176
  Reserved                   DN ?
170
  RegisterProtocolNotify     DN ?
177
  RegisterProtocolNotify     DN ?
171
  LocateHandle               DN ?
178
  LocateHandle               DN ?
172
  LocateDevicePath           DN ?
179
  LocateDevicePath           DN ?
173
  InstallConfigurationTable  DN ?
180
  InstallConfigurationTable  DN ?
174
  ImageLoad                  DN ?
181
  ImageLoad                  DN ?
175
  ImageStart                 DN ?
182
  ImageStart                 DN ?
176
  Exit                       DN ?
183
  Exit                       DN ?
177
  ImageUnLoad                DN ?
184
  ImageUnLoad                DN ?
178
  ExitBootServices           DN ?
185
  ExitBootServices           DN ?
179
  GetNextMonotonicCount      DN ?
186
  GetNextMonotonicCount      DN ?
180
  Stall                      DN ?
187
  Stall                      DN ?
181
  SetWatchdogTimer           DN ?
188
  SetWatchdogTimer           DN ?
182
  ConnectController          DN ?
189
  ConnectController          DN ?
183
  DisConnectController       DN ?
190
  DisConnectController       DN ?
184
  OpenProtocol               DN ?
191
  OpenProtocol               DN ?
185
  CloseProtocol              DN ?
192
  CloseProtocol              DN ?
186
  OpenProtocolInformation    DN ?
193
  OpenProtocolInformation    DN ?
187
  ProtocolsPerHandle         DN ?
194
  ProtocolsPerHandle         DN ?
188
  LocateHandleBuffer         DN ?
195
  LocateHandleBuffer         DN ?
189
  LocateProtocol             DN ?
196
  LocateProtocol             DN ?
190
  InstallMultipleProtocolInterfaces DN ?
197
  InstallMultipleProtocolInterfaces DN ?
191
  UnInstallMultipleProtocolInterfaces DN ?
198
  UnInstallMultipleProtocolInterfaces DN ?
192
  CalculateCrc32             DN ?
199
  CalculateCrc32             DN ?
193
  CopyMem                    DN ?
200
  CopyMem                    DN ?
194
  SetMem                     DN ?
201
  SetMem                     DN ?
195
ends
202
ends
196
 
203
 
197
struct EFI_RUNTIME_SERVICES
204
struct EFI_RUNTIME_SERVICES
198
  Hdr                   EFI_TABLE_HEADER
205
  Hdr                   EFI_TABLE_HEADER
199
  GetTime               DN ?
206
  GetTime               DN ?
200
  SetTime               DN ?
207
  SetTime               DN ?
201
  GetWakeUpTime         DN ?
208
  GetWakeUpTime         DN ?
202
  SetWakeUpTime         DN ?
209
  SetWakeUpTime         DN ?
203
  SetVirtualAddressMap  DN ?
210
  SetVirtualAddressMap  DN ?
204
  ConvertPointer        DN ?
211
  ConvertPointer        DN ?
205
  GetVariable           DN ?
212
  GetVariable           DN ?
206
  GetNextVariableName   DN ?
213
  GetNextVariableName   DN ?
207
  SetVariable           DN ?
214
  SetVariable           DN ?
208
  GetNextHighMonoCount  DN ?
215
  GetNextHighMonoCount  DN ?
209
  ResetSystem           DN ?
216
  ResetSystem           DN ?
210
ends
217
ends
211
 
218
 
212
struct EFI_SIMPLE_FILE_SYSTEM_PROTOCOL
219
struct EFI_SIMPLE_FILE_SYSTEM_PROTOCOL
213
  Revision              DQ ?
220
  Revision              DQ ?
214
  OpenVolume            DN ?
221
  OpenVolume            DN ?
215
ends
222
ends
216
 
223
 
217
struct EFI_FILE_PROTOCOL
224
struct EFI_FILE_PROTOCOL
218
  Revision              DQ ?
225
  Revision              DQ ?
219
  Open                  DN ?
226
  Open                  DN ?
220
  Close                 DN ?
227
  Close                 DN ?
221
  Delete                DN ?
228
  Delete                DN ?
222
  Read                  DN ?
229
  Read                  DN ?
223
  Write                 DN ?
230
  Write                 DN ?
224
  GetPosition           DN ?
231
  GetPosition           DN ?
225
  SetPosition           DN ?
232
  SetPosition           DN ?
226
  GetInfo               DN ?
233
  GetInfo               DN ?
227
  SetInfo               DN ?
234
  SetInfo               DN ?
228
  Flush                 DN ?
235
  Flush                 DN ?
229
  OpenEx                DN ?
236
  OpenEx                DN ?
230
  ReadEx                DN ?
237
  ReadEx                DN ?
231
  WriteEx               DN ?
238
  WriteEx               DN ?
232
  FlushEx               DN ?
239
  FlushEx               DN ?
233
ends
240
ends
234
 
241
 
235
struct EFI_GRAPHICS_OUTPUT_PROTOCOL
242
struct EFI_GRAPHICS_OUTPUT_PROTOCOL
236
  QueryMode             DN ?
243
  QueryMode             DN ?
237
  SetMode               DN ?
244
  SetMode               DN ?
238
  Blt                   DN ?
245
  Blt                   DN ?
239
  Mode                  DN ?
246
  Mode                  DN ?
240
ends
247
ends
241
 
248
 
242
struct EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE
249
struct EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE
243
  MaxMode               dd ?
250
  MaxMode               dd ?
244
  Mode                  dd ?
251
  Mode                  dd ?
245
  Info                  DN ?
252
  Info                  DN ?
246
  SizeOfInfo            DN ?
253
  SizeOfInfo            DN ?
247
  FrameBufferBase       DQ ?
254
  FrameBufferBase       DQ ?
248
  FrameBufferSize       DN ?
255
  FrameBufferSize       DN ?
249
ends
256
ends
250
 
257
 
251
EFI_GRAPHICS_PIXEL_FORMAT:
258
EFI_GRAPHICS_PIXEL_FORMAT:
252
.PixelRedGreenBlueReserved8BitPerColor = 0
259
.PixelRedGreenBlueReserved8BitPerColor = 0
253
.PixelBlueGreenRedReserved8BitPerColor = 1
260
.PixelBlueGreenRedReserved8BitPerColor = 1
254
.PixelBitMask = 2
261
.PixelBitMask = 2
255
.PixelBltOnly = 3
262
.PixelBltOnly = 3
256
.PixelFormatMax = 4
263
.PixelFormatMax = 4
257
 
264
 
258
struct EFI_PIXEL_BITMASK
265
struct EFI_PIXEL_BITMASK
259
  RedMask               dd ?
266
  RedMask               dd ?
260
  GreenMask             dd ?
267
  GreenMask             dd ?
261
  BlueMask              dd ?
268
  BlueMask              dd ?
262
  ReservedMask          dd ?
269
  ReservedMask          dd ?
263
ends
270
ends
264
 
271
 
265
struct EFI_GRAPHICS_OUTPUT_MODE_INFORMATION
272
struct EFI_GRAPHICS_OUTPUT_MODE_INFORMATION
266
  Version               dd ?
273
  Version               dd ?
267
  HorizontalResolution  dd ?
274
  HorizontalResolution  dd ?
268
  VerticalResolution    dd ?
275
  VerticalResolution    dd ?
269
  PixelFormat           dd ?
276
  PixelFormat           dd ?
270
  PixelInformation      EFI_PIXEL_BITMASK
277
  PixelInformation      EFI_PIXEL_BITMASK
271
  PixelsPerScanLine     dd ?
278
  PixelsPerScanLine     dd ?
272
ends
279
ends
-
 
280
 
-
 
281
struct PCI_ROOT_BRIDGE_IO_PROTOCOL_ACCESS
-
 
282
  Read  DN ?
-
 
283
  Write DN ?
-
 
284
ends
-
 
285
 
-
 
286
struct EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
-
 
287
  ParentHandle          DN ? ; EFI_HANDLE
-
 
288
  PollMem               DN ?
-
 
289
  PollIo                DN ?
-
 
290
  Mem                   PCI_ROOT_BRIDGE_IO_PROTOCOL_ACCESS
-
 
291
  Io                    PCI_ROOT_BRIDGE_IO_PROTOCOL_ACCESS
-
 
292
  Pci                   PCI_ROOT_BRIDGE_IO_PROTOCOL_ACCESS
-
 
293
  CopyMem               DN ?
-
 
294
  Map                   DN ?
-
 
295
  Unmap                 DN ?
-
 
296
  AllocateBuffer        DN ?
-
 
297
  FreeBuffer            DN ?
-
 
298
  Flush                 DN ?
-
 
299
  GetAttributes         DN ?
-
 
300
  SetAttributes         DN ?
-
 
301
  Configuration         DN ?
-
 
302
  SegmentNumber         dd ?
-
 
303
ends
-
 
304
 
-
 
305
struct EFI_QWORD_ADDRESS_SPACE_DESCRIPTOR       ; described in acpi spec
-
 
306
  Type              db ?
-
 
307
  Length            dw ?
-
 
308
  ResourceType      db ?
-
 
309
  GeneralFlags      db ?
-
 
310
  SpecificFlags     db ?
-
 
311
  Granularity       dq ?
-
 
312
  RangeMinimum      dq ?
-
 
313
  RangeMaximum      dq ?
-
 
314
  TranslationOffset dq ?
-
 
315
  AddressLength dq ?
-
 
316
ends
-
 
317
 
-
 
318
EFI_RESOURCE_DESCRIPTOR_TYPE.QWORD_ADDRESS_SPACE = 0x8a
-
 
319
EFI_RESOURCE_DESCRIPTOR_TYPE.END_TAG = 0x79
-
 
320
 
-
 
321
EFI_RESOURCE_TYPE.MEMORY = 0
-
 
322
EFI_RESOURCE_TYPE.IO = 1
-
 
323
EFI_RESOURCE_TYPE.BUS = 2