24 lines
862 B
Zig
24 lines
862 B
Zig
|
const uefi = @import("std").os.uefi;
|
||
|
const Guid = uefi.Guid;
|
||
|
const Handle = uefi.Handle;
|
||
|
|
||
|
/// UEFI Specification, Version 2.8, 12.9
|
||
|
pub const EdidOverrideProtocol = extern struct {
|
||
|
_get_edid: extern fn (*const EdidOverrideProtocol, *const Handle, *u32, *usize, *?[*]u8) usize,
|
||
|
|
||
|
pub fn getEdid(self: *const EdidOverrideProtocol, handle: *const Handle, attributes: *u32, edid_size: *usize, edid: *?[*]u8) usize {
|
||
|
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 dont_override: u32 = 1;
|
||
|
pub const enable_hot_plug: u32 = 2;
|
||
|
};
|