| ... | ... | @@ -4,6 +4,7 @@ const TableHeader = uefi.tables.TableHeader; |
| 4 | 4 | const Time = uefi.Time; |
| 5 | 5 | const TimeCapabilities = uefi.TimeCapabilities; |
| 6 | 6 | const Status = uefi.Status; |
| 7 | const MemoryDescriptor = uefi.tables.MemoryDescriptor; |
| 7 | 8 | |
| 8 | 9 | /// Runtime services are provided by the firmware before and after exitBootServices has been called. |
| 9 | 10 | /// |
| ... | ... | @@ -22,8 +23,12 @@ pub const RuntimeServices = extern struct { |
| 22 | 23 | setTime: Status, // TODO |
| 23 | 24 | getWakeupTime: Status, // TODO |
| 24 | 25 | setWakeupTime: Status, // TODO |
| 25 | | setVirtualAddressMap: Status, // TODO |
| 26 | | convertPointer: Status, // TODO |
| 26 | |
| 27 | /// Changes the runtime addressing mode of EFI firmware from physical to virtual. |
| 28 | setVirtualAddressMap: fn (usize, usize, u32, [*]MemoryDescriptor) callconv(.C) Status, |
| 29 | |
| 30 | /// Determines the new virtual address that is to be used on subsequent memory accesses. |
| 31 | convertPointer: fn (usize, **c_void) callconv(.C) Status, |
| 27 | 32 | |
| 28 | 33 | /// Returns the value of a variable. |
| 29 | 34 | getVariable: fn ([*:0]const u16, *align(8) const Guid, ?*u32, *usize, ?*c_void) callconv(.C) Status, |