mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std/os/uefi: fix packed struct bitfields
This commit is contained in:
parent
390a4ded98
commit
de028d5130
4 changed files with 23 additions and 8 deletions
|
|
@ -45,7 +45,9 @@ pub const AbsolutePointerMode = extern struct {
|
|||
attributes: packed struct {
|
||||
supports_alt_active: bool,
|
||||
supports_pressure_as_z: bool,
|
||||
_pad1: u30,
|
||||
_pad1: u6,
|
||||
_pad2: u8,
|
||||
_pad3: u16,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -56,6 +58,8 @@ pub const AbsolutePointerState = extern struct {
|
|||
active_buttons: packed struct {
|
||||
touch_active: bool,
|
||||
alt_active: bool,
|
||||
_pad1: u30,
|
||||
_pad1: u6,
|
||||
_pad2: u8,
|
||||
_pad3: u16,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -31,5 +31,7 @@ pub const EdidOverrideProtocol = extern struct {
|
|||
pub const EdidOverrideProtocolAttributes = packed struct {
|
||||
dont_override: bool,
|
||||
enable_hot_plug: bool,
|
||||
_pad1: u30,
|
||||
_pad1: u6,
|
||||
_pad2: u8,
|
||||
_pad3: u16,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -131,7 +131,9 @@ pub const SimpleNetworkReceiveFilter = packed struct {
|
|||
receive_broadcast: bool,
|
||||
receive_promiscuous: bool,
|
||||
receive_promiscuous_multicast: bool,
|
||||
_pad: u27 = undefined,
|
||||
_pad1: u3 = undefined,
|
||||
_pad2: u8 = undefined,
|
||||
_pad3: u16 = undefined,
|
||||
};
|
||||
|
||||
pub const SimpleNetworkState = enum(u32) {
|
||||
|
|
@ -174,5 +176,7 @@ pub const SimpleNetworkInterruptStatus = packed struct {
|
|||
transmit_interrupt: bool,
|
||||
command_interrupt: bool,
|
||||
software_interrupt: bool,
|
||||
_pad: u28,
|
||||
_pad1: u4,
|
||||
_pad2: u8,
|
||||
_pad3: u16,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@ pub const MemoryDescriptor = extern struct {
|
|||
wt: bool,
|
||||
wb: bool,
|
||||
uce: bool,
|
||||
_pad1: u7,
|
||||
_pad1: u3,
|
||||
_pad2: u4,
|
||||
wp: bool,
|
||||
rp: bool,
|
||||
xp: bool,
|
||||
|
|
@ -201,7 +202,9 @@ pub const MemoryDescriptor = extern struct {
|
|||
ro: bool,
|
||||
sp: bool,
|
||||
cpu_crypto: bool,
|
||||
_pad2: u43,
|
||||
_pad3: u4,
|
||||
_pad4: u32,
|
||||
_pad5: u7,
|
||||
memory_runtime: bool,
|
||||
},
|
||||
};
|
||||
|
|
@ -219,7 +222,9 @@ pub const OpenProtocolAttributes = packed struct {
|
|||
by_child_controller: bool = false,
|
||||
by_driver: bool = false,
|
||||
exclusive: bool = false,
|
||||
_pad: u26 = undefined,
|
||||
_pad1: u2 = undefined,
|
||||
_pad2: u8 = undefined,
|
||||
_pad3: u16 = undefined,
|
||||
};
|
||||
|
||||
pub const ProtocolInformationEntry = extern struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue