authorgravatar for ybham6@gmail.comfifty-six <ybham6@gmail.com> 2022-01-13 11:48:25-05:00
committergravatar for ybham6@gmail.comfifty-six <ybham6@gmail.com> 2022-01-13 15:47:14-05:00
log322757c4e13acbe866e6b3431cd3b6b8ce68efb7
tree5a303a2ee7a9de71fed81d2ef4ce0a2c3769a6be
parent88687645b2a5c34304c36ded31d5164784aa207a

std/os/uefi: Add parameter names to boot_services


1 files changed, 43 insertions(+), 43 deletions(-)

lib/std/os/uefi/tables/boot_services.zig+43-43
......@@ -21,138 +21,138 @@ pub const BootServices = extern struct {
2121 hdr: TableHeader,
2222
2323 /// Raises a task's priority level and returns its previous level.
24 raiseTpl: fn (usize) callconv(.C) usize,
24 raiseTpl: fn (new_tpl: usize) callconv(.C) usize,
2525
2626 /// Restores a task's priority level to its previous value.
27 restoreTpl: fn (usize) callconv(.C) void,
27 restoreTpl: fn (old_tpl: usize) callconv(.C) void,
2828
2929 /// Allocates memory pages from the system.
30 allocatePages: fn (AllocateType, MemoryType, usize, *[*]align(4096) u8) callconv(.C) Status,
30 allocatePages: fn (alloc_type: AllocateType, mem_type: MemoryType, pages: usize, memory: *[*]align(4096) u8) callconv(.C) Status,
3131
3232 /// Frees memory pages.
33 freePages: fn ([*]align(4096) u8, usize) callconv(.C) Status,
33 freePages: fn (memory: [*]align(4096) u8, pages: usize) callconv(.C) Status,
3434
3535 /// Returns the current memory map.
36 getMemoryMap: fn (*usize, [*]MemoryDescriptor, *usize, *usize, *u32) callconv(.C) Status,
36 getMemoryMap: fn (mmap_size: *usize, mmap: [*]MemoryDescriptor, mapKey: *usize, descriptor_size: *usize, descriptor_version: *u32) callconv(.C) Status,
3737
3838 /// Allocates pool memory.
39 allocatePool: fn (MemoryType, usize, *[*]align(8) u8) callconv(.C) Status,
39 allocatePool: fn (pool_type: MemoryType, size: usize, buffer: *[*]align(8) u8) callconv(.C) Status,
4040
4141 /// Returns pool memory to the system.
42 freePool: fn ([*]align(8) u8) callconv(.C) Status,
42 freePool: fn (buffer: [*]align(8) u8) callconv(.C) Status,
4343
4444 /// Creates an event.
45 createEvent: fn (u32, usize, ?fn (Event, ?*anyopaque) callconv(.C) void, ?*const anyopaque, *Event) callconv(.C) Status,
45 createEvent: fn (type: u32, notify_tpl: usize, notify_func: ?fn (Event, ?*anyopaque) callconv(.C) void, notifyCtx: ?*const anyopaque, event: *Event) callconv(.C) Status,
4646
4747 /// Sets the type of timer and the trigger time for a timer event.
48 setTimer: fn (Event, TimerDelay, u64) callconv(.C) Status,
48 setTimer: fn (event: Event, type: TimerDelay, triggerTime: u64) callconv(.C) Status,
4949
5050 /// Stops execution until an event is signaled.
51 waitForEvent: fn (usize, [*]const Event, *usize) callconv(.C) Status,
51 waitForEvent: fn (event_len: usize, events: [*]const Event, index: *usize) callconv(.C) Status,
5252
5353 /// Signals an event.
54 signalEvent: fn (Event) callconv(.C) Status,
54 signalEvent: fn (event: Event) callconv(.C) Status,
5555
5656 /// Closes an event.
57 closeEvent: fn (Event) callconv(.C) Status,
57 closeEvent: fn (event: Event) callconv(.C) Status,
5858
5959 /// Checks whether an event is in the signaled state.
60 checkEvent: fn (Event) callconv(.C) Status,
60 checkEvent: fn (event: Event) callconv(.C) Status,
6161
6262 /// Installs a protocol interface on a device handle. If the handle does not exist, it is created
6363 /// and added to the list of handles in the system. installMultipleProtocolInterfaces()
6464 /// performs more error checking than installProtocolInterface(), so its use is recommended over this.
65 installProtocolInterface: fn (Handle, *align(8) const Guid, EfiInterfaceType, *anyopaque) callconv(.C) Status,
65 installProtocolInterface: fn (handle: Handle, protocol: *align(8) const Guid, interface_type: EfiInterfaceType, interface: *anyopaque) callconv(.C) Status,
6666
6767 /// Reinstalls a protocol interface on a device handle
68 reinstallProtocolInterface: fn (Handle, *align(8) const Guid, *anyopaque, *anyopaque) callconv(.C) Status,
68 reinstallProtocolInterface: fn (handle: Handle, protocol: *align(8) const Guid, old_interface: *anyopaque, new_interface: *anyopaque) callconv(.C) Status,
6969
7070 /// Removes a protocol interface from a device handle. Usage of
7171 /// uninstallMultipleProtocolInterfaces is recommended over this.
72 uninstallProtocolInterface: fn (Handle, *align(8) const Guid, *anyopaque) callconv(.C) Status,
72 uninstallProtocolInterface: fn (handle: Handle, protocol: *align(8) const Guid, interface: *anyopaque) callconv(.C) Status,
7373
7474 /// Queries a handle to determine if it supports a specified protocol.
75 handleProtocol: fn (Handle, *align(8) const Guid, *?*anyopaque) callconv(.C) Status,
75 handleProtocol: fn (handle: Handle, protocol: *align(8) const Guid, interface: *?*anyopaque) callconv(.C) Status,
7676
7777 reserved: *anyopaque,
7878
7979 /// Creates an event that is to be signaled whenever an interface is installed for a specified protocol.
80 registerProtocolNotify: fn (*align(8) const Guid, Event, **anyopaque) callconv(.C) Status,
80 registerProtocolNotify: fn (protocol: *align(8) const Guid, event: Event, registration: **anyopaque) callconv(.C) Status,
8181
8282 /// Returns an array of handles that support a specified protocol.
83 locateHandle: fn (LocateSearchType, ?*align(8) const Guid, ?*const anyopaque, *usize, [*]Handle) callconv(.C) Status,
83 locateHandle: fn (search_type: LocateSearchType, protocol: ?*align(8) const Guid, search_key: ?*const anyopaque, bufferSize: *usize, buffer: [*]Handle) callconv(.C) Status,
8484
8585 /// Locates the handle to a device on the device path that supports the specified protocol
86 locateDevicePath: fn (*align(8) const Guid, **const DevicePathProtocol, *?Handle) callconv(.C) Status,
86 locateDevicePath: fn (protocols: *align(8) const Guid, device_path: **const DevicePathProtocol, device: *?Handle) callconv(.C) Status,
8787
8888 /// Adds, updates, or removes a configuration table entry from the EFI System Table.
89 installConfigurationTable: fn (*align(8) const Guid, ?*anyopaque) callconv(.C) Status,
89 installConfigurationTable: fn (guid: *align(8) const Guid, table: ?*anyopaque) callconv(.C) Status,
9090
9191 /// Loads an EFI image into memory.
92 loadImage: fn (bool, Handle, ?*const DevicePathProtocol, ?[*]const u8, usize, *?Handle) callconv(.C) Status,
92 loadImage: fn (boot_policy: bool, parent_image_handle: Handle, device_path: ?*const DevicePathProtocol, source_buffer: ?[*]const u8, source_size: usize, imageHandle: *?Handle) callconv(.C) Status,
9393
9494 /// Transfers control to a loaded image's entry point.
95 startImage: fn (Handle, ?*usize, ?*[*]u16) callconv(.C) Status,
95 startImage: fn (image_handle: Handle, exit_data_size: ?*usize, exit_data: ?*[*]u16) callconv(.C) Status,
9696
9797 /// Terminates a loaded EFI image and returns control to boot services.
98 exit: fn (Handle, Status, usize, ?*const anyopaque) callconv(.C) Status,
98 exit: fn (image_handle: Handle, exit_status: Status, exit_data_size: usize, exit_data: ?*const anyopaque) callconv(.C) Status,
9999
100100 /// Unloads an image.
101 unloadImage: fn (Handle) callconv(.C) Status,
101 unloadImage: fn (image_handle: Handle) callconv(.C) Status,
102102
103103 /// Terminates all boot services.
104 exitBootServices: fn (Handle, usize) callconv(.C) Status,
104 exitBootServices: fn (image_handle: Handle, map_key: usize) callconv(.C) Status,
105105
106106 /// Returns a monotonically increasing count for the platform.
107 getNextMonotonicCount: fn (*u64) callconv(.C) Status,
107 getNextMonotonicCount: fn (count: *u64) callconv(.C) Status,
108108
109109 /// Induces a fine-grained stall.
110 stall: fn (usize) callconv(.C) Status,
110 stall: fn (microseconds: usize) callconv(.C) Status,
111111
112112 /// Sets the system's watchdog timer.
113 setWatchdogTimer: fn (usize, u64, usize, ?[*]const u16) callconv(.C) Status,
113 setWatchdogTimer: fn (timeout: usize, watchdogCode: u64, data_size: usize, watchdog_data: ?[*]const u16) callconv(.C) Status,
114114
115115 /// Connects one or more drives to a controller.
116 connectController: fn (Handle, ?Handle, ?*DevicePathProtocol, bool) callconv(.C) Status,
116 connectController: fn (controller_handle: Handle, driver_image_handle: ?Handle, remaining_device_path: ?*DevicePathProtocol, recursive: bool) callconv(.C) Status,
117117
118118 // Disconnects one or more drivers from a controller
119 disconnectController: fn (Handle, ?Handle, ?Handle) callconv(.C) Status,
119 disconnectController: fn (controller_handle: Handle, driver_image_handle: ?Handle, child_handle: ?Handle) callconv(.C) Status,
120120
121121 /// Queries a handle to determine if it supports a specified protocol.
122 openProtocol: fn (Handle, *align(8) const Guid, *?*anyopaque, ?Handle, ?Handle, OpenProtocolAttributes) callconv(.C) Status,
122 openProtocol: fn (handle: Handle, protocol: *align(8) const Guid, interface: *?*anyopaque, agent_handle: ?Handle, controller_handle: ?Handle, attributes: OpenProtocolAttributes) callconv(.C) Status,
123123
124124 /// Closes a protocol on a handle that was opened using openProtocol().
125 closeProtocol: fn (Handle, *align(8) const Guid, Handle, ?Handle) callconv(.C) Status,
125 closeProtocol: fn (handle: Handle, protocol: *align(8) const Guid, agentHandle: Handle, controller_handle: ?Handle) callconv(.C) Status,
126126
127127 /// Retrieves the list of agents that currently have a protocol interface opened.
128 openProtocolInformation: fn (Handle, *align(8) const Guid, *[*]ProtocolInformationEntry, *usize) callconv(.C) Status,
128 openProtocolInformation: fn (handle: Handle, protocol: *align(8) const Guid, entry_buffer: *[*]ProtocolInformationEntry, entry_count: *usize) callconv(.C) Status,
129129
130130 /// Retrieves the list of protocol interface GUIDs that are installed on a handle in a buffer allocated from pool.
131 protocolsPerHandle: fn (Handle, *[*]*align(8) const Guid, *usize) callconv(.C) Status,
131 protocolsPerHandle: fn (handle: Handle, protocol_buffer: *[*]*align(8) const Guid, protocol_buffer_count: *usize) callconv(.C) Status,
132132
133133 /// Returns an array of handles that support the requested protocol in a buffer allocated from pool.
134 locateHandleBuffer: fn (LocateSearchType, ?*align(8) const Guid, ?*const anyopaque, *usize, *[*]Handle) callconv(.C) Status,
134 locateHandleBuffer: fn (search_type: LocateSearchType, protocol: ?*align(8) const Guid, search_key: ?*const anyopaque, num_handles: *usize, buffer: *[*]Handle) callconv(.C) Status,
135135
136136 /// Returns the first protocol instance that matches the given protocol.
137 locateProtocol: fn (*align(8) const Guid, ?*const anyopaque, *?*anyopaque) callconv(.C) Status,
137 locateProtocol: fn (protocol: *align(8) const Guid, registration: ?*const anyopaque, interface: *?*anyopaque) callconv(.C) Status,
138138
139139 /// Installs one or more protocol interfaces into the boot services environment
140 installMultipleProtocolInterfaces: fn (*Handle, ...) callconv(.C) Status,
140 installMultipleProtocolInterfaces: fn (handle: *Handle, ...) callconv(.C) Status,
141141
142142 /// Removes one or more protocol interfaces into the boot services environment
143 uninstallMultipleProtocolInterfaces: fn (*Handle, ...) callconv(.C) Status,
143 uninstallMultipleProtocolInterfaces: fn (handle: *Handle, ...) callconv(.C) Status,
144144
145145 /// Computes and returns a 32-bit CRC for a data buffer.
146 calculateCrc32: fn ([*]const u8, usize, *u32) callconv(.C) Status,
146 calculateCrc32: fn (data: [*]const u8, data_size: usize, *u32) callconv(.C) Status,
147147
148148 /// Copies the contents of one buffer to another buffer
149 copyMem: fn ([*]u8, [*]const u8, usize) callconv(.C) void,
149 copyMem: fn (dest: [*]u8, src: [*]const u8, len: usize) callconv(.C) void,
150150
151151 /// Fills a buffer with a specified value
152 setMem: fn ([*]u8, usize, u8) callconv(.C) void,
152 setMem: fn (buffer: [*]u8, size: usize, value: u8) callconv(.C) void,
153153
154154 /// Creates an event in a group.
155 createEventEx: fn (u32, usize, EfiEventNotify, *const anyopaque, *align(8) const Guid, *Event) callconv(.C) Status,
155 createEventEx: fn (type: u32, notify_tpl: usize, notify_func: EfiEventNotify, notify_ctx: *const anyopaque, event_group: *align(8) const Guid, event: *Event) callconv(.C) Status,
156156
157157 pub const signature: u64 = 0x56524553544f4f42;
158158