summaryrefslogtreecommitdiffstats
path: root/rsnix
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-07-31 16:04:41 +0200
committersalmonik <salmonik@tuta.io>2026-07-31 16:04:41 +0200
commit5cb90c8a03e61a4419f08b9a84c127921691b9ed (patch)
tree397c3c51bc889865b80feb2aa12f077458c3e533 /rsnix
parentdocs: CONTEXT.md — poweroff milestone, power.rs layout entry (diff)
downloadrs-dos-5cb90c8a03e61a4419f08b9a84c127921691b9ed.tar.gz
rs-dos-5cb90c8a03e61a4419f08b9a84c127921691b9ed.zip
style: rustfmt field alignment in RuntimeServices
Diffstat (limited to 'rsnix')
-rw-r--r--rsnix/src/uefi.rs29
1 files changed, 14 insertions, 15 deletions
diff --git a/rsnix/src/uefi.rs b/rsnix/src/uefi.rs
index b1b5e48..f947c90 100644
--- a/rsnix/src/uefi.rs
+++ b/rsnix/src/uefi.rs
@@ -91,8 +91,7 @@ pub struct SimpleTextInput {
91 91
92/// `EFI_RESET_SYSTEM` — ResetType, ResetStatus, DataSize, ResetData. 92/// `EFI_RESET_SYSTEM` — ResetType, ResetStatus, DataSize, ResetData.
93/// ResetType: 0 cold, 1 warm, 2 shutdown, 3 platform-specific. 93/// ResetType: 0 cold, 1 warm, 2 shutdown, 3 platform-specific.
94pub type EfiResetSystem = 94pub type EfiResetSystem = unsafe extern "efiapi" fn(u32, u64, usize, *const u16) -> Status;
95 unsafe extern "efiapi" fn(u32, u64, usize, *const u16) -> Status;
96 95
97pub const RESET_COLD: u32 = 0; 96pub const RESET_COLD: u32 = 0;
98#[allow(dead_code)] 97#[allow(dead_code)]
@@ -108,20 +107,20 @@ pub const RESET_PLATFORM_SPECIFIC: u32 = 3;
108#[repr(C)] 107#[repr(C)]
109pub struct RuntimeServices { 108pub struct RuntimeServices {
110 _hdr: TableHeader, 109 _hdr: TableHeader,
111 _get_time: *mut c_void, // 0 110 _get_time: *mut c_void, // 0
112 _set_time: *mut c_void, // 1 111 _set_time: *mut c_void, // 1
113 _get_wakeup_time: *mut c_void, // 2 112 _get_wakeup_time: *mut c_void, // 2
114 _set_wakeup_time: *mut c_void, // 3 113 _set_wakeup_time: *mut c_void, // 3
115 _set_virtual_address_map: *mut c_void, // 4 114 _set_virtual_address_map: *mut c_void, // 4
116 _convert_pointer: *mut c_void, // 5 115 _convert_pointer: *mut c_void, // 5
117 _get_variable: *mut c_void, // 6 116 _get_variable: *mut c_void, // 6
118 _get_next_variable_name: *mut c_void, // 7 117 _get_next_variable_name: *mut c_void, // 7
119 _set_variable: *mut c_void, // 8 118 _set_variable: *mut c_void, // 8
120 _get_next_high_monotonic_count: *mut c_void, // 9 119 _get_next_high_monotonic_count: *mut c_void, // 9
121 pub reset_system: EfiResetSystem, // 10 120 pub reset_system: EfiResetSystem, // 10
122 _update_capsule: *mut c_void, // 11 121 _update_capsule: *mut c_void, // 11
123 _query_capsule_capabilities: *mut c_void, // 12 122 _query_capsule_capabilities: *mut c_void, // 12
124 _query_variable_info: *mut c_void, // 13 123 _query_variable_info: *mut c_void, // 13
125} 124}
126 125
127// --------------------------------------------------------------------------- 126// ---------------------------------------------------------------------------