Subversion Repositories Kolibri OS

Rev

Rev 7130 | Rev 8150 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7130 Rev 8092
Line 20... Line 20...
20
EFI_MEMORY_MAPPED_IO_PORT_SPACE = 12
20
EFI_MEMORY_MAPPED_IO_PORT_SPACE = 12
21
EFI_PAL_CODE                    = 13
21
EFI_PAL_CODE                    = 13
22
EFI_PERSISTENT_MEMORY           = 14
22
EFI_PERSISTENT_MEMORY           = 14
23
EFI_MAX_MEMORY_TYPE             = 15
23
EFI_MAX_MEMORY_TYPE             = 15
Line -... Line 24...
-
 
24
 
-
 
25
; EFI_ALLOCATE_TYPE
-
 
26
EFI_ALLOCATE_ANY_PAGES   = 0
-
 
27
EFI_ALLOCATE_MAX_ADDRESS = 1
-
 
28
EFI_ALLOCATE_ADDRESS     = 2
24
 
29
 
25
EFI_MEMORY_UC                   = 0x0000000000000001
30
EFI_MEMORY_UC                   = 0x0000000000000001
26
EFI_MEMORY_WC                   = 0x0000000000000002
31
EFI_MEMORY_WC                   = 0x0000000000000002
27
EFI_MEMORY_WT                   = 0x0000000000000004
32
EFI_MEMORY_WT                   = 0x0000000000000004
28
EFI_MEMORY_WB                   = 0x0000000000000008
33
EFI_MEMORY_WB                   = 0x0000000000000008
Line 60... Line 65...
60
EFI_ABORTED                     = EFIERR or 21
65
EFI_ABORTED                     = EFIERR or 21
61
EFI_ICMP_ERROR                  = EFIERR or 22
66
EFI_ICMP_ERROR                  = EFIERR or 22
62
EFI_TFTP_ERROR                  = EFIERR or 23
67
EFI_TFTP_ERROR                  = EFIERR or 23
63
EFI_PROTOCOL_ERROR              = EFIERR or 24
68
EFI_PROTOCOL_ERROR              = EFIERR or 24
Line -... Line 69...
-
 
69
 
-
 
70
struct EFI_FILE_SYSTEM_INFO
-
 
71
  Size          dq ?
-
 
72
  ReadOnly      db ?
-
 
73
                rb 7
-
 
74
  VolumeSize    dq ?
-
 
75
  FreeSpace     dq ?
-
 
76
  BlockSize     dd ?
-
 
77
  VolumeLabel   rw 32
-
 
78
ends
-
 
79
 
-
 
80
EFI_FILE_SYSTEM_INFO_ID equ 0x93,0x6e,0x57,0x09,0x3f,0x6d,0xd2,0x11, \
-
 
81
                            0x39,0x8e,0x00,0xa0,0xc9,0x69,0x72,0x3b
64
 
82
 
65
EFI_SYSTEM_TABLE_SIGNATURE      equ     0x49,0x42,0x49,0x20,0x53,0x59,0x53,0x54
83
EFI_SYSTEM_TABLE_SIGNATURE      equ     0x49,0x42,0x49,0x20,0x53,0x59,0x53,0x54
66
struct EFI_TABLE_HEADER
84
struct EFI_TABLE_HEADER
67
  Signature             dq ?
85
  Signature             dq ?
68
  Revision              dd ?
86
  Revision              dd ?
Line 183... Line 201...
183
  Daylight              db ?
201
  Daylight              db ?
184
  Pad2                  db ?
202
  Pad2                  db ?
185
  sizeof                db ?
203
  sizeof                db ?
186
ends
204
ends
Line -... Line 205...
-
 
205
 
-
 
206
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID equ 0x22,0x5b,0x4e,0x96,0x59,0x64,0xd2,0x11, \
-
 
207
                                         0x8e,0x39,0x00,0xa0,0xc9,0x69,0x72,0x3b
-
 
208
 
-
 
209
struct EFI_SIMPLE_FILE_SYSTEM_PROTOCOL
-
 
210
  Revision              dq ?
-
 
211
  OpenVolume            dq ?
-
 
212
ends
-
 
213
 
-
 
214
EFI_FILE_MODE_READ   = 1
-
 
215
EFI_FILE_MODE_WRITE  = 2
-
 
216
EFI_FILE_MODE_CREATE = 0x8000000000000000
-
 
217
 
-
 
218
struct EFI_FILE_PROTOCOL
-
 
219
  Revision              dq ?
-
 
220
  Open                  dq ?
-
 
221
  Close                 dq ?
-
 
222
  Delete                dq ?
-
 
223
  Read                  dq ?
-
 
224
  Write                 dq ?
-
 
225
  GetPosition           dq ?
-
 
226
  SetPosition           dq ?
-
 
227
  GetInfo               dq ?
-
 
228
  SetInfo               dq ?
-
 
229
  Flush                 dq ?
-
 
230
  OpenEx                dq ?
-
 
231
  ReadEx                dq ?
-
 
232
  WriteEx               dq ?
-
 
233
  FlushEx               dq ?
-
 
234
ends
187
 
235
 
-
 
236
EFI_LOADED_IMAGE_PROTOCOL_GUID  equ     0xA1,0x31,0x1b,0x5b,0x62,0x95,0xd2,0x11, \
188
EFI_LOADED_IMAGE_PROTOCOL_UUID  equ     0xA1,0x31,0x1b,0x5b,0x62,0x95,0xd2,0x11,0x8E,0x3F,0x00,0xA0,0xC9,0x69,0x72,0x3B
237
                                        0x8E,0x3F,0x00,0xA0,0xC9,0x69,0x72,0x3B
189
struct EFI_LOADED_IMAGE_PROTOCOL
238
struct EFI_LOADED_IMAGE_PROTOCOL
190
  Revision              dd ?
239
  Revision              dd ?
191
                        dd ?
240
                        dd ?
192
  ParentHandle          dq ?
241
  ParentHandle          dq ?
Line 201... Line 250...
201
  ImageCodeType         dd ?
250
  ImageCodeType         dd ?
202
  ImageDataType         dd ?
251
  ImageDataType         dd ?
203
  UnLoad                dq ?
252
  UnLoad                dq ?
204
ends
253
ends
Line 205... Line 254...
205
 
254
 
-
 
255
EFI_BLOCK_IO_PROTOCOL_GUID      equ     0x21,0x5b,0x4e,0x96,0x59,0x64,0xd2,0x11, \
206
EFI_BLOCK_IO_PROTOCOL_UUID      equ     0x21,0x5b,0x4e,0x96,0x59,0x64,0xd2,0x11,0x8e,0x39,0x00,0xa0,0xc9,0x69,0x72,0x3b
256
                                        0x8e,0x39,0x00,0xa0,0xc9,0x69,0x72,0x3b
207
struct EFI_BLOCK_IO_PROTOCOL
257
struct EFI_BLOCK_IO_PROTOCOL
208
  Revision              dq ?
258
  Revision              dq ?
209
  Media                 dq ?
259
  Media                 dq ?
210
  Reset                 dq ?
260
  Reset                 dq ?
Line 224... Line 274...
224
  BlockSize             dd ?
274
  BlockSize             dd ?
225
  IoAlign               dd ?
275
  IoAlign               dd ?
226
  LastBlock             dq ?
276
  LastBlock             dq ?
227
ends
277
ends
Line 228... Line 278...
228
 
278
 
-
 
279
EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID equ   0xde,0xa9,0x42,0x90,0xdc,0x23,0x38,0x4a, \
229
EFI_GRAPHICS_OUTPUT_PROTOCOL_UUID equ   0xde,0xa9,0x42,0x90,0xdc,0x23,0x38,0x4a,0x96,0xfb,0x7a,0xde,0xd0,0x80,0x51,0x6a
280
                                        0x96,0xfb,0x7a,0xde,0xd0,0x80,0x51,0x6a
230
struct EFI_GRAPHICS_OUTPUT_PROTOCOL
281
struct EFI_GRAPHICS_OUTPUT_PROTOCOL
231
  QueryMode             dq ?
282
  QueryMode             dq ?
232
  SetMode               dq ?
283
  SetMode               dq ?
233
  Blt                   dq ?
284
  Blt                   dq ?
Line 272... Line 323...
272
        mov     [efi_handler], rcx      ; ImageHandle
323
        mov     [efi_handler], rcx      ; ImageHandle
273
        mov     [efi_ptr], rdx          ; pointer to SystemTable
324
        mov     [efi_ptr], rdx          ; pointer to SystemTable
274
}
325
}
Line 275... Line 326...
275
 
326
 
276
;invoke an UEFI function
327
;invoke an UEFI function
277
macro uefi_call_wrapper interface,function,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11
328
macro eficall interface,function,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11
278
{
329
{
Line 279... Line 330...
279
numarg = 0
330
numarg = 0
280
 
331