1 #ifndef HARDWARE_EFI_RUNTIME_H
2 #define HARDWARE_EFI_RUNTIME_H
5 Copyright © 2011, The AROS Development Team. All rights reserved.
8 Desc: EFI firmware runtime services
12 #include <hardware/efi/tables.h>
13 #include <libraries/uuid.h>
27 UBYTE Daylight
; /* Flags, see below */
31 /* Tells that clock are running in local time */
32 #define EFI_TIMEZONE_LOCAL 0x07FF
35 #define EFI_TIME_ADJUST_DST 0x01
36 #define EFI_TIME_IN_DST 0x02
38 /* Time capabilities */
56 struct EFI_TableHeader Hdr
;
58 __eficall
SIPTR (*GetTime
)(struct EFI_Time
*Time
, struct EFI_Time_Cap
*Caps
);
59 __eficall
SIPTR (*SetTime
)(struct EFI_Time
*Time
);
60 __eficall
SIPTR (*GetWakeupTime
)(UBYTE
*Enabled
, UBYTE
*Pending
, struct EFI_Time
*Time
);
61 __eficall
SIPTR (*SetWakeupTime
)(UBYTE Enabled
, struct EFI_Time
*Time
);
62 __eficall
SIPTR (*SetVirtualAddressMap
)(IPTR MapSize
, IPTR EntrySize
, ULONG EntryVersion
, struct EFI_MemMap
*Map
);
63 __eficall
SIPTR (*ConvertPointer
)(IPTR DebugDisposition
, void **Addr
);
64 __eficall
SIPTR (*GetVariable
)(UWORD
*Name
, uuid_t
*VendorGUID
, ULONG
*Attrs
, IPTR
*DataSize
, void *Data
);
65 __eficall
SIPTR (*GetNextVariableName
)(IPTR
*NameSize
, UWORD
*Name
, uuid_t
*VendorGUID
);
66 __eficall
SIPTR (*SetVariable
)(UWORD
*Name
, uuid_t
*VendorGUID
, ULONG Attrs
, void *Data
);
67 __eficall
SIPTR (*GetNextHighMonotonicCount
)(ULONG
*HighCount
);
68 __eficall
void (*ResetSystem
)(ULONG Type
, SIPTR Status
, IPTR DataSize
, UWORD
*Data
);
71 #define EFI_RUNTIME_SERVICES_SIGNATURE 0x56524553544e5552