| ... | @@ -44,7 +44,7 @@ pub const BootServices = extern struct { | ... | @@ -44,7 +44,7 @@ pub const BootServices = extern struct { |
| 44 | freePages: *const fn (memory: [*]align(4096) u8, pages: usize) callconv(cc) Status, | 44 | freePages: *const fn (memory: [*]align(4096) u8, pages: usize) callconv(cc) Status, |
| 45 | | 45 | |
| 46 | /// Returns the current memory map. | 46 | /// Returns the current memory map. |
| 47 | getMemoryMap: *const fn (mmap_size: *usize, mmap: ?[*]MemoryDescriptor, mapKey: *usize, descriptor_size: *usize, descriptor_version: *u32) callconv(cc) Status, | 47 | getMemoryMap: *const fn (mmap_size: *usize, mmap: ?[*]MemoryDescriptor, map_key: *usize, descriptor_size: *usize, descriptor_version: *u32) callconv(cc) Status, |
| 48 | | 48 | |
| 49 | /// Allocates pool memory. | 49 | /// Allocates pool memory. |
| 50 | allocatePool: *const fn (pool_type: MemoryType, size: usize, buffer: *[*]align(8) u8) callconv(cc) Status, | 50 | allocatePool: *const fn (pool_type: MemoryType, size: usize, buffer: *[*]align(8) u8) callconv(cc) Status, |
| ... | @@ -53,10 +53,10 @@ pub const BootServices = extern struct { | ... | @@ -53,10 +53,10 @@ pub const BootServices = extern struct { |
| 53 | freePool: *const fn (buffer: [*]align(8) u8) callconv(cc) Status, | 53 | freePool: *const fn (buffer: [*]align(8) u8) callconv(cc) Status, |
| 54 | | 54 | |
| 55 | /// Creates an event. | 55 | /// Creates an event. |
| 56 | createEvent: *const fn (type: u32, notify_tpl: usize, notify_func: ?*const fn (Event, ?*anyopaque) callconv(cc) void, notifyCtx: ?*const anyopaque, event: *Event) callconv(cc) Status, | 56 | createEvent: *const fn (type: u32, notify_tpl: usize, notify_func: ?*const fn (Event, ?*anyopaque) callconv(cc) void, notify_ctx: ?*const anyopaque, event: *Event) callconv(cc) Status, |
| 57 | | 57 | |
| 58 | /// Sets the type of timer and the trigger time for a timer event. | 58 | /// Sets the type of timer and the trigger time for a timer event. |
| 59 | setTimer: *const fn (event: Event, type: TimerDelay, triggerTime: u64) callconv(cc) Status, | 59 | setTimer: *const fn (event: Event, type: TimerDelay, trigger_time: u64) callconv(cc) Status, |
| 60 | | 60 | |
| 61 | /// Stops execution until an event is signaled. | 61 | /// Stops execution until an event is signaled. |
| 62 | waitForEvent: *const fn (event_len: usize, events: [*]const Event, index: *usize) callconv(cc) Status, | 62 | waitForEvent: *const fn (event_len: usize, events: [*]const Event, index: *usize) callconv(cc) Status, |
| ... | @@ -91,7 +91,7 @@ pub const BootServices = extern struct { | ... | @@ -91,7 +91,7 @@ pub const BootServices = extern struct { |
| 91 | registerProtocolNotify: *const fn (protocol: *align(8) const Guid, event: Event, registration: **anyopaque) callconv(cc) Status, | 91 | registerProtocolNotify: *const fn (protocol: *align(8) const Guid, event: Event, registration: **anyopaque) callconv(cc) Status, |
| 92 | | 92 | |
| 93 | /// Returns an array of handles that support a specified protocol. | 93 | /// Returns an array of handles that support a specified protocol. |
| 94 | locateHandle: *const fn (search_type: LocateSearchType, protocol: ?*align(8) const Guid, search_key: ?*const anyopaque, bufferSize: *usize, buffer: [*]Handle) callconv(cc) Status, | 94 | locateHandle: *const fn (search_type: LocateSearchType, protocol: ?*align(8) const Guid, search_key: ?*const anyopaque, buffer_size: *usize, buffer: [*]Handle) callconv(cc) Status, |
| 95 | | 95 | |
| 96 | /// Locates the handle to a device on the device path that supports the specified protocol | 96 | /// Locates the handle to a device on the device path that supports the specified protocol |
| 97 | locateDevicePath: *const fn (protocols: *align(8) const Guid, device_path: **const DevicePathProtocol, device: *?Handle) callconv(cc) Status, | 97 | locateDevicePath: *const fn (protocols: *align(8) const Guid, device_path: **const DevicePathProtocol, device: *?Handle) callconv(cc) Status, |
| ... | @@ -100,7 +100,7 @@ pub const BootServices = extern struct { | ... | @@ -100,7 +100,7 @@ pub const BootServices = extern struct { |
| 100 | installConfigurationTable: *const fn (guid: *align(8) const Guid, table: ?*anyopaque) callconv(cc) Status, | 100 | installConfigurationTable: *const fn (guid: *align(8) const Guid, table: ?*anyopaque) callconv(cc) Status, |
| 101 | | 101 | |
| 102 | /// Loads an EFI image into memory. | 102 | /// Loads an EFI image into memory. |
| 103 | loadImage: *const fn (boot_policy: bool, parent_image_handle: Handle, device_path: ?*const DevicePathProtocol, source_buffer: ?[*]const u8, source_size: usize, imageHandle: *?Handle) callconv(cc) Status, | 103 | loadImage: *const fn (boot_policy: bool, parent_image_handle: Handle, device_path: ?*const DevicePathProtocol, source_buffer: ?[*]const u8, source_size: usize, image_handle: *?Handle) callconv(cc) Status, |
| 104 | | 104 | |
| 105 | /// Transfers control to a loaded image's entry point. | 105 | /// Transfers control to a loaded image's entry point. |
| 106 | startImage: *const fn (image_handle: Handle, exit_data_size: ?*usize, exit_data: ?*[*]u16) callconv(cc) Status, | 106 | startImage: *const fn (image_handle: Handle, exit_data_size: ?*usize, exit_data: ?*[*]u16) callconv(cc) Status, |
| ... | @@ -121,7 +121,7 @@ pub const BootServices = extern struct { | ... | @@ -121,7 +121,7 @@ pub const BootServices = extern struct { |
| 121 | stall: *const fn (microseconds: usize) callconv(cc) Status, | 121 | stall: *const fn (microseconds: usize) callconv(cc) Status, |
| 122 | | 122 | |
| 123 | /// Sets the system's watchdog timer. | 123 | /// Sets the system's watchdog timer. |
| 124 | setWatchdogTimer: *const fn (timeout: usize, watchdogCode: u64, data_size: usize, watchdog_data: ?[*]const u16) callconv(cc) Status, | 124 | setWatchdogTimer: *const fn (timeout: usize, watchdog_code: u64, data_size: usize, watchdog_data: ?[*]const u16) callconv(cc) Status, |
| 125 | | 125 | |
| 126 | /// Connects one or more drives to a controller. | 126 | /// Connects one or more drives to a controller. |
| 127 | connectController: *const fn (controller_handle: Handle, driver_image_handle: ?Handle, remaining_device_path: ?*DevicePathProtocol, recursive: bool) callconv(cc) Status, | 127 | connectController: *const fn (controller_handle: Handle, driver_image_handle: ?Handle, remaining_device_path: ?*DevicePathProtocol, recursive: bool) callconv(cc) Status, |
| ... | @@ -133,7 +133,7 @@ pub const BootServices = extern struct { | ... | @@ -133,7 +133,7 @@ pub const BootServices = extern struct { |
| 133 | openProtocol: *const fn (handle: Handle, protocol: *align(8) const Guid, interface: *?*anyopaque, agent_handle: ?Handle, controller_handle: ?Handle, attributes: OpenProtocolAttributes) callconv(cc) Status, | 133 | openProtocol: *const fn (handle: Handle, protocol: *align(8) const Guid, interface: *?*anyopaque, agent_handle: ?Handle, controller_handle: ?Handle, attributes: OpenProtocolAttributes) callconv(cc) Status, |
| 134 | | 134 | |
| 135 | /// Closes a protocol on a handle that was opened using openProtocol(). | 135 | /// Closes a protocol on a handle that was opened using openProtocol(). |
| 136 | closeProtocol: *const fn (handle: Handle, protocol: *align(8) const Guid, agentHandle: Handle, controller_handle: ?Handle) callconv(cc) Status, | 136 | closeProtocol: *const fn (handle: Handle, protocol: *align(8) const Guid, agent_handle: Handle, controller_handle: ?Handle) callconv(cc) Status, |
| 137 | | 137 | |
| 138 | /// Retrieves the list of agents that currently have a protocol interface opened. | 138 | /// Retrieves the list of agents that currently have a protocol interface opened. |
| 139 | openProtocolInformation: *const fn (handle: Handle, protocol: *align(8) const Guid, entry_buffer: *[*]ProtocolInformationEntry, entry_count: *usize) callconv(cc) Status, | 139 | openProtocolInformation: *const fn (handle: Handle, protocol: *align(8) const Guid, entry_buffer: *[*]ProtocolInformationEntry, entry_count: *usize) callconv(cc) Status, |