authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2025-02-08 21:01:27+00:00
committergravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2025-02-09 02:23:02+00:00
log0874be1492712b1e7660d5e6dfc8473ed2216e6c
treebdc498e119ed95aca9cff411b80b07c7a536ae8d
parent88d42b6ae995d1c5905936be6669059cfea4148a

std.os.uefi: Adjust casing to match style guide in a few places


6 files changed, 24 insertions(+), 24 deletions(-)

lib/std/os/uefi/protocol/managed_network.zig+2-2
...@@ -110,8 +110,8 @@ pub const ManagedNetwork = extern struct {...@@ -110,8 +110,8 @@ pub const ManagedNetwork = extern struct {
110 event: Event,110 event: Event,
111 status: Status,111 status: Status,
112 packet: extern union {112 packet: extern union {
113 RxData: *ReceiveData,113 rx_data: *ReceiveData,
114 TxData: *TransmitData,114 tx_data: *TransmitData,
115 },115 },
116 };116 };
117117
lib/std/os/uefi/protocol/serial_io.zig+6-6
...@@ -21,8 +21,8 @@ pub const SerialIo = extern struct {...@@ -21,8 +21,8 @@ pub const SerialIo = extern struct {
21 }21 }
2222
23 /// Sets the baud rate, receive FIFO depth, transmit/receive time out, parity, data bits, and stop bits on a serial device.23 /// Sets the baud rate, receive FIFO depth, transmit/receive time out, parity, data bits, and stop bits on a serial device.
24 pub fn setAttribute(self: *const SerialIo, baudRate: u64, receiverFifoDepth: u32, timeout: u32, parity: ParityType, dataBits: u8, stopBits: StopBitsType) Status {24 pub fn setAttribute(self: *const SerialIo, baud_rate: u64, receiver_fifo_depth: u32, timeout: u32, parity: ParityType, data_bits: u8, stop_bits: StopBitsType) Status {
25 return self._set_attribute(self, baudRate, receiverFifoDepth, timeout, parity, dataBits, stopBits);25 return self._set_attribute(self, baud_rate, receiver_fifo_depth, timeout, parity, data_bits, stop_bits);
26 }26 }
2727
28 /// Sets the control bits on a serial device.28 /// Sets the control bits on a serial device.
...@@ -36,13 +36,13 @@ pub const SerialIo = extern struct {...@@ -36,13 +36,13 @@ pub const SerialIo = extern struct {
36 }36 }
3737
38 /// Writes data to a serial device.38 /// Writes data to a serial device.
39 pub fn write(self: *const SerialIo, bufferSize: *usize, buffer: *anyopaque) Status {39 pub fn write(self: *const SerialIo, buffer_size: *usize, buffer: *anyopaque) Status {
40 return self._write(self, bufferSize, buffer);40 return self._write(self, buffer_size, buffer);
41 }41 }
4242
43 /// Reads data from a serial device.43 /// Reads data from a serial device.
44 pub fn read(self: *const SerialIo, bufferSize: *usize, buffer: *anyopaque) Status {44 pub fn read(self: *const SerialIo, buffer_size: *usize, buffer: *anyopaque) Status {
45 return self._read(self, bufferSize, buffer);45 return self._read(self, buffer_size, buffer);
46 }46 }
4747
48 pub const guid align(8) = Guid{48 pub const guid align(8) = Guid{
lib/std/os/uefi/protocol/udp6.zig+3-3
...@@ -71,10 +71,10 @@ pub const Udp6 = extern struct {...@@ -71,10 +71,10 @@ pub const Udp6 = extern struct {
7171
72 pub const CompletionToken = extern struct {72 pub const CompletionToken = extern struct {
73 event: Event,73 event: Event,
74 Status: usize,74 status: usize,
75 packet: extern union {75 packet: extern union {
76 RxData: *ReceiveData,76 rx_data: *ReceiveData,
77 TxData: *TransmitData,77 tx_data: *TransmitData,
78 },78 },
79 };79 };
8080
lib/std/os/uefi/tables.zig+5-5
...@@ -95,17 +95,17 @@ pub const AllocateType = enum(u32) {...@@ -95,17 +95,17 @@ pub const AllocateType = enum(u32) {
95pub const EfiPhysicalAddress = u64;95pub const EfiPhysicalAddress = u64;
9696
97pub const CapsuleHeader = extern struct {97pub const CapsuleHeader = extern struct {
98 capsuleGuid: Guid align(8),98 capsule_guid: Guid align(8),
99 headerSize: u32,99 header_size: u32,
100 flags: u32,100 flags: u32,
101 capsuleImageSize: u32,101 capsule_image_size: u32,
102};102};
103103
104pub const UefiCapsuleBlockDescriptor = extern struct {104pub const UefiCapsuleBlockDescriptor = extern struct {
105 length: u64,105 length: u64,
106 address: extern union {106 address: extern union {
107 dataBlock: EfiPhysicalAddress,107 data_block: EfiPhysicalAddress,
108 continuationPointer: EfiPhysicalAddress,108 continuation_pointer: EfiPhysicalAddress,
109 },109 },
110};110};
111111
lib/std/os/uefi/tables/boot_services.zig+7-7
...@@ -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,
4545
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,
4848
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,
5454
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,
5757
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,
6060
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,
9292
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,
9595
96 /// Locates the handle to a device on the device path that supports the specified protocol96 /// 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,
101101
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,
104104
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,
122122
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,
125125
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,
134134
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,
137137
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,
lib/std/os/uefi/tables/runtime_services.zig+1-1
...@@ -63,7 +63,7 @@ pub const RuntimeServices = extern struct {...@@ -63,7 +63,7 @@ pub const RuntimeServices = extern struct {
63 updateCapsule: *const fn (capsule_header_array: **CapsuleHeader, capsule_count: usize, scatter_gather_list: EfiPhysicalAddress) callconv(cc) Status,63 updateCapsule: *const fn (capsule_header_array: **CapsuleHeader, capsule_count: usize, scatter_gather_list: EfiPhysicalAddress) callconv(cc) Status,
6464
65 /// Returns if the capsule can be supported via `updateCapsule`65 /// Returns if the capsule can be supported via `updateCapsule`
66 queryCapsuleCapabilities: *const fn (capsule_header_array: **CapsuleHeader, capsule_count: usize, maximum_capsule_size: *usize, resetType: ResetType) callconv(cc) Status,66 queryCapsuleCapabilities: *const fn (capsule_header_array: **CapsuleHeader, capsule_count: usize, maximum_capsule_size: *usize, reset_type: ResetType) callconv(cc) Status,
6767
68 /// Returns information about the EFI variables68 /// Returns information about the EFI variables
69 queryVariableInfo: *const fn (attributes: *u32, maximum_variable_storage_size: *u64, remaining_variable_storage_size: *u64, maximum_variable_size: *u64) callconv(cc) Status,69 queryVariableInfo: *const fn (attributes: *u32, maximum_variable_storage_size: *u64, remaining_variable_storage_size: *u64, maximum_variable_size: *u64) callconv(cc) Status,