| author | |
| committer | |
| log | 9f475dae14cd8b195d305c806822c1f79e84240c |
| tree | 3bd64828a2595d3e7cdf0bc191f0a8c90316435d |
| parent | 52eb4129de7406de11319940e5494fed1b6a46e5 |
3 files changed, 25 insertions(+), 0 deletions(-)
lib/std/os/uefi.zig+3| ... | ... | @@ -105,3 +105,6 @@ pub const TimeCapabilities = extern struct { |
| 105 | 105 | /// If true, a time set operation clears the device's time below the resolution level. |
| 106 | 106 | sets_to_zero: bool, |
| 107 | 107 | }; |
| 108 | ||
| 109 | /// File Handle as specified in the EFI Shell Spec | |
| 110 | pub const FileHandle = *@OpaqueType(); |
lib/std/os/uefi/protocols.zig+2| ... | ... | @@ -87,3 +87,5 @@ pub const HIIPopupType = @import("protocols/hii_popup_protocol.zig").HIIPopupTyp |
| 87 | 87 | pub const HIIPopupSelection = @import("protocols/hii_popup_protocol.zig").HIIPopupSelection; |
| 88 | 88 | |
| 89 | 89 | pub const RNGProtocol = @import("protocols/rng_protocol.zig").RNGProtocol; |
| 90 | ||
| 91 | pub const ShellParametersProtocol = @import("protocols/shell_parameters_protocol.zig").ShellParametersProtocol; |
lib/std/os/uefi/protocols/shell_parameters_protocol.zig created+20| ... | ... | @@ -0,0 +1,20 @@ |
| 1 | const uefi = @import("std").os.uefi; | |
| 2 | const Guid = uefi.Guid; | |
| 3 | const FileHandle = uefi.FileHandle; | |
| 4 | ||
| 5 | pub const ShellParametersProtocol = extern struct { | |
| 6 | argv: [*][*:0]const u16, | |
| 7 | argc: usize, | |
| 8 | stdin: FileHandle, | |
| 9 | stdout: FileHandle, | |
| 10 | stderr: FileHandle, | |
| 11 | ||
| 12 | pub const guid align(8) = Guid{ | |
| 13 | .time_low = 0x752f3136, | |
| 14 | .time_mid = 0x4e16, | |
| 15 | .time_high_and_version = 0x4fdc, | |
| 16 | .clock_seq_high_and_reserved = 0xa2, | |
| 17 | .clock_seq_low = 0x2a, | |
| 18 | .node = [_]u8{ 0xe5, 0xf4, 0x68, 0x12, 0xf4, 0xca }, | |
| 19 | }; | |
| 20 | }; |