From b6e1613e58bd490310bf03c1ae5d625ccf819371 Mon Sep 17 00:00:00 2001 From: fifty-six Date: Tue, 11 Jan 2022 01:14:28 -0500 Subject: [PATCH] std/os/uefi: Move FileInfo guid from FileProtocol to FileInfo The GUID on FileProtocol was for EFI_FILE_INFO, FileProtocol itself doesn't have a GUID, there are only those for the requested information types. --- lib/std/os/uefi/protocols/file_protocol.zig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/std/os/uefi/protocols/file_protocol.zig b/lib/std/os/uefi/protocols/file_protocol.zig index ba4fad9c75e5cd270922cd948f589a294e1b0c77..ce779ca58bfce917b47a2648213d4a7ab1c07430 100644 --- a/lib/std/os/uefi/protocols/file_protocol.zig +++ b/lib/std/os/uefi/protocols/file_protocol.zig @@ -127,15 +127,6 @@ pub const FileProtocol = extern struct { return self._flush(self); } - pub const guid align(8) = Guid{ - .time_low = 0x09576e92, - .time_mid = 0x6d3f, - .time_high_and_version = 0x11d2, - .clock_seq_high_and_reserved = 0x8e, - .clock_seq_low = 0x39, - .node = [_]u8{ 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b }, - }; - pub const efi_file_mode_read: u64 = 0x0000000000000001; pub const efi_file_mode_write: u64 = 0x0000000000000002; pub const efi_file_mode_create: u64 = 0x8000000000000000; @@ -171,4 +162,13 @@ pub const FileInfo = extern struct { pub const efi_file_directory: u64 = 0x0000000000000010; pub const efi_file_archive: u64 = 0x0000000000000020; pub const efi_file_valid_attr: u64 = 0x0000000000000037; + + pub const guid align(8) = Guid{ + .time_low = 0x09576e92, + .time_mid = 0x6d3f, + .time_high_and_version = 0x11d2, + .clock_seq_high_and_reserved = 0x8e, + .clock_seq_low = 0x39, + .node = [_]u8{ 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b }, + }; }; -- 2.54.0