mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
33 lines
1.1 KiB
Zig
33 lines
1.1 KiB
Zig
const uefi = @import("std").os.uefi;
|
|
const Guid = uefi.Guid;
|
|
const Handle = uefi.Handle;
|
|
const Status = uefi.Status;
|
|
|
|
/// Override EDID information
|
|
pub const EdidOverrideProtocol = extern struct {
|
|
_get_edid: fn (*const EdidOverrideProtocol, Handle, *u32, *usize, *?[*]u8) callconv(.C) Status,
|
|
|
|
/// Returns policy information and potentially a replacement EDID for the specified video output device.
|
|
/// attributes must be align(4)
|
|
pub fn getEdid(self: *const EdidOverrideProtocol, handle: Handle, attributes: *EdidOverrideProtocolAttributes, edid_size: *usize, edid: *?[*]u8) Status {
|
|
return self._get_edid(self, handle, attributes, edid_size, edid);
|
|
}
|
|
|
|
pub const guid align(8) = Guid{
|
|
.time_low = 0x48ecb431,
|
|
.time_mid = 0xfb72,
|
|
.time_high_and_version = 0x45c0,
|
|
.clock_seq_high_and_reserved = 0xa9,
|
|
.clock_seq_low = 0x22,
|
|
.node = [_]u8{ 0xf4, 0x58, 0xfe, 0x04, 0x0b, 0xd5 },
|
|
};
|
|
};
|
|
|
|
pub const EdidOverrideProtocolAttributes = packed struct {
|
|
dont_override: bool,
|
|
enable_hot_plug: bool,
|
|
_pad1: u6,
|
|
_pad2: u8,
|
|
_pad3: u16,
|
|
};
|