1#[repr(C)]
8#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
9pub struct __BindgenBitfieldUnit<Storage> {
10 storage: Storage,
11}
12impl<Storage> __BindgenBitfieldUnit<Storage> {
13 #[inline]
14 pub const fn new(storage: Storage) -> Self {
15 Self { storage }
16 }
17}
18impl<Storage> __BindgenBitfieldUnit<Storage>
19where
20 Storage: AsRef<[u8]> + AsMut<[u8]>,
21{
22 #[inline]
23 fn extract_bit(byte: u8, index: usize) -> bool {
24 let bit_index = if cfg!(target_endian = "big") {
25 7 - (index % 8)
26 } else {
27 index % 8
28 };
29 let mask = 1 << bit_index;
30 byte & mask == mask
31 }
32 #[inline]
33 pub fn get_bit(&self, index: usize) -> bool {
34 debug_assert!(index / 8 < self.storage.as_ref().len());
35 let byte_index = index / 8;
36 let byte = self.storage.as_ref()[byte_index];
37 Self::extract_bit(byte, index)
38 }
39 #[inline]
40 pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
41 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
42 let byte_index = index / 8;
43 let byte = unsafe {
44 *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
45 };
46 Self::extract_bit(byte, index)
47 }
48 #[inline]
49 fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
50 let bit_index = if cfg!(target_endian = "big") {
51 7 - (index % 8)
52 } else {
53 index % 8
54 };
55 let mask = 1 << bit_index;
56 if val {
57 byte | mask
58 } else {
59 byte & !mask
60 }
61 }
62 #[inline]
63 pub fn set_bit(&mut self, index: usize, val: bool) {
64 debug_assert!(index / 8 < self.storage.as_ref().len());
65 let byte_index = index / 8;
66 let byte = &mut self.storage.as_mut()[byte_index];
67 *byte = Self::change_bit(*byte, index, val);
68 }
69 #[inline]
70 pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
71 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
72 let byte_index = index / 8;
73 let byte = unsafe {
74 (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
75 };
76 unsafe { *byte = Self::change_bit(*byte, index, val) };
77 }
78 #[inline]
79 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
80 debug_assert!(bit_width <= 64);
81 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
82 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
83 let mut val = 0;
84 for i in 0..(bit_width as usize) {
85 if self.get_bit(i + bit_offset) {
86 let index = if cfg!(target_endian = "big") {
87 bit_width as usize - 1 - i
88 } else {
89 i
90 };
91 val |= 1 << index;
92 }
93 }
94 val
95 }
96 #[inline]
97 pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
98 debug_assert!(bit_width <= 64);
99 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
100 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
101 let mut val = 0;
102 for i in 0..(bit_width as usize) {
103 if unsafe { Self::raw_get_bit(this, i + bit_offset) } {
104 let index = if cfg!(target_endian = "big") {
105 bit_width as usize - 1 - i
106 } else {
107 i
108 };
109 val |= 1 << index;
110 }
111 }
112 val
113 }
114 #[inline]
115 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
116 debug_assert!(bit_width <= 64);
117 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
118 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
119 for i in 0..(bit_width as usize) {
120 let mask = 1 << i;
121 let val_bit_is_set = val & mask == mask;
122 let index = if cfg!(target_endian = "big") {
123 bit_width as usize - 1 - i
124 } else {
125 i
126 };
127 self.set_bit(index + bit_offset, val_bit_is_set);
128 }
129 }
130 #[inline]
131 pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
132 debug_assert!(bit_width <= 64);
133 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
134 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
135 for i in 0..(bit_width as usize) {
136 let mask = 1 << i;
137 let val_bit_is_set = val & mask == mask;
138 let index = if cfg!(target_endian = "big") {
139 bit_width as usize - 1 - i
140 } else {
141 i
142 };
143 unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) };
144 }
145 }
146}
147#[repr(C)]
148#[derive(Default)]
149pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
150impl<T> __IncompleteArrayField<T> {
151 #[inline]
152 pub const fn new() -> Self {
153 __IncompleteArrayField(::std::marker::PhantomData, [])
154 }
155 #[inline]
156 pub fn as_ptr(&self) -> *const T {
157 self as *const _ as *const T
158 }
159 #[inline]
160 pub fn as_mut_ptr(&mut self) -> *mut T {
161 self as *mut _ as *mut T
162 }
163 #[inline]
164 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
165 ::std::slice::from_raw_parts(self.as_ptr(), len)
166 }
167 #[inline]
168 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
169 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
170 }
171}
172impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
173 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
174 fmt.write_str("__IncompleteArrayField")
175 }
176}
177pub const __BITS_PER_LONG: u32 = 64;
178pub const __FD_SETSIZE: u32 = 1024;
179pub const HVGDK_MINI_H_VERSION: u32 = 25294;
180pub const HV_STATUS_SUCCESS: u32 = 0;
181pub const HV_STATUS_INVALID_HYPERCALL_CODE: u32 = 2;
182pub const HV_STATUS_INVALID_HYPERCALL_INPUT: u32 = 3;
183pub const HV_STATUS_INVALID_ALIGNMENT: u32 = 4;
184pub const HV_STATUS_INVALID_PARAMETER: u32 = 5;
185pub const HV_STATUS_ACCESS_DENIED: u32 = 6;
186pub const HV_STATUS_INVALID_PARTITION_STATE: u32 = 7;
187pub const HV_STATUS_OPERATION_DENIED: u32 = 8;
188pub const HV_STATUS_UNKNOWN_PROPERTY: u32 = 9;
189pub const HV_STATUS_PROPERTY_VALUE_OUT_OF_RANGE: u32 = 10;
190pub const HV_STATUS_INSUFFICIENT_MEMORY: u32 = 11;
191pub const HV_STATUS_INVALID_PARTITION_ID: u32 = 13;
192pub const HV_STATUS_INVALID_VP_INDEX: u32 = 14;
193pub const HV_STATUS_NOT_FOUND: u32 = 16;
194pub const HV_STATUS_INVALID_PORT_ID: u32 = 17;
195pub const HV_STATUS_INVALID_CONNECTION_ID: u32 = 18;
196pub const HV_STATUS_INSUFFICIENT_BUFFERS: u32 = 19;
197pub const HV_STATUS_NOT_ACKNOWLEDGED: u32 = 20;
198pub const HV_STATUS_INVALID_VP_STATE: u32 = 21;
199pub const HV_STATUS_NO_RESOURCES: u32 = 29;
200pub const HV_STATUS_PROCESSOR_FEATURE_NOT_SUPPORTED: u32 = 32;
201pub const HV_STATUS_INVALID_LP_INDEX: u32 = 65;
202pub const HV_STATUS_INVALID_REGISTER_VALUE: u32 = 80;
203pub const HV_STATUS_OPERATION_FAILED: u32 = 113;
204pub const HV_STATUS_TIME_OUT: u32 = 120;
205pub const HV_STATUS_CALL_PENDING: u32 = 121;
206pub const HV_STATUS_VTL_ALREADY_ENABLED: u32 = 134;
207pub const HV_HYP_PAGE_SHIFT: u32 = 12;
208pub const HV_HYP_PAGE_SIZE: u32 = 4096;
209pub const HV_HYP_PAGE_MASK: i32 = -4096;
210pub const HV_HYP_LARGE_PAGE_SHIFT: u32 = 21;
211pub const HV_MAXIMUM_PROCESSORS: u32 = 320;
212pub const HV_MAX_VP_INDEX: u32 = 319;
213pub const HVCALL_GET_PARTITION_PROPERTY: u32 = 68;
214pub const HVCALL_SET_PARTITION_PROPERTY: u32 = 69;
215pub const HVCALL_INSTALL_INTERCEPT: u32 = 77;
216pub const HVCALL_CREATE_VP: u32 = 78;
217pub const HVCALL_DELETE_VP: u32 = 79;
218pub const HVCALL_GET_VP_REGISTERS: u32 = 80;
219pub const HVCALL_SET_VP_REGISTERS: u32 = 81;
220pub const HVCALL_TRANSLATE_VIRTUAL_ADDRESS: u32 = 82;
221pub const HVCALL_READ_GPA: u32 = 83;
222pub const HVCALL_WRITE_GPA: u32 = 84;
223pub const HVCALL_CLEAR_VIRTUAL_INTERRUPT: u32 = 86;
224pub const HVCALL_REGISTER_INTERCEPT_RESULT: u32 = 145;
225pub const HVCALL_ASSERT_VIRTUAL_INTERRUPT: u32 = 148;
226pub const HVCALL_SIGNAL_EVENT_DIRECT: u32 = 192;
227pub const HVCALL_POST_MESSAGE_DIRECT: u32 = 193;
228pub const HVCALL_IMPORT_ISOLATED_PAGES: u32 = 239;
229pub const HVCALL_COMPLETE_ISOLATED_IMPORT: u32 = 241;
230pub const HVCALL_ISSUE_SNP_PSP_GUEST_REQUEST: u32 = 242;
231pub const HVCALL_GET_VP_CPUID_VALUES: u32 = 244;
232pub const HVCALL_GET_PARTITION_PROPERTY_EX: u32 = 257;
233pub const HV_INTERRUPT_VECTOR_NONE: u32 = 4294967295;
234pub const HV_SYNIC_STIMER_COUNT: u32 = 4;
235pub const HV_MESSAGE_SIZE: u32 = 256;
236pub const HV_MESSAGE_PAYLOAD_BYTE_COUNT: u32 = 240;
237pub const HV_MESSAGE_PAYLOAD_QWORD_COUNT: u32 = 30;
238pub const HV_INTERCEPT_ACCESS_MASK_NONE: u32 = 0;
239pub const HV_INTERCEPT_ACCESS_MASK_READ: u32 = 1;
240pub const HV_INTERCEPT_ACCESS_MASK_WRITE: u32 = 2;
241pub const HV_INTERCEPT_ACCESS_MASK_EXECUTE: u32 = 4;
242pub const HV_INTERCEPT_ACCESS_READ: u32 = 0;
243pub const HV_INTERCEPT_ACCESS_WRITE: u32 = 1;
244pub const HV_INTERCEPT_ACCESS_EXECUTE: u32 = 2;
245pub const HVGDK_H_VERSION: u32 = 25125;
246pub const HVHVK_MINI_VERSION: u32 = 25294;
247pub const HV_GENERIC_SET_SHIFT: u32 = 6;
248pub const HV_GENERIC_SET_MASK: u32 = 63;
249pub const HV_PARTITION_VMM_CAPABILITIES_BANK_COUNT: u32 = 1;
250pub const HV_PARTITION_VMM_CAPABILITIES_RESERVED_BITFIELD_COUNT: u32 = 59;
251pub const HV_MAP_GPA_PERMISSIONS_NONE: u32 = 0;
252pub const HV_MAP_GPA_READABLE: u32 = 1;
253pub const HV_MAP_GPA_WRITABLE: u32 = 2;
254pub const HV_MAP_GPA_KERNEL_EXECUTABLE: u32 = 4;
255pub const HV_MAP_GPA_USER_EXECUTABLE: u32 = 8;
256pub const HV_MAP_GPA_EXECUTABLE: u32 = 12;
257pub const HV_MAP_GPA_PERMISSIONS_MASK: u32 = 15;
258pub const HV_MAP_GPA_ADJUSTABLE: u32 = 32768;
259pub const HV_MAP_GPA_NO_ACCESS: u32 = 65536;
260pub const HV_MAP_GPA_NOT_CACHED: u32 = 2097152;
261pub const HV_MAP_GPA_LARGE_PAGE: u32 = 2147483648;
262pub const HV_PFN_RNG_PAGEBITS: u32 = 24;
263pub const HVHDK_H_VERSION: u32 = 25212;
264pub const HV_X64_REGISTER_CLASS_GENERAL: u32 = 0;
265pub const HV_X64_REGISTER_CLASS_IP: u32 = 1;
266pub const HV_X64_REGISTER_CLASS_XMM: u32 = 2;
267pub const HV_X64_REGISTER_CLASS_SEGMENT: u32 = 3;
268pub const HV_X64_REGISTER_CLASS_FLAGS: u32 = 4;
269pub const HV_VP_REGISTER_PAGE_VERSION_1: u32 = 1;
270pub const HV_VP_REGISTER_PAGE_MAX_VECTOR_COUNT: u32 = 7;
271pub const HV_PARTITION_SYNTHETIC_PROCESSOR_FEATURES_BANKS: u32 = 1;
272pub const HV_TRANSLATE_GVA_VALIDATE_READ: u32 = 1;
273pub const HV_TRANSLATE_GVA_VALIDATE_WRITE: u32 = 2;
274pub const HV_TRANSLATE_GVA_VALIDATE_EXECUTE: u32 = 4;
275pub const HV_TRANSLATE_GVA_SET_PAGE_TABLE_BITS: u32 = 16;
276pub const HV_TRANSLATE_GVA_TLB_FLUSH_INHIBIT: u32 = 32;
277pub const HV_TRANSLATE_GVA_SUPERVISOR_ACCESS: u32 = 64;
278pub const HV_TRANSLATE_GVA_USER_ACCESS: u32 = 128;
279pub const HV_TRANSLATE_GVA_PAN_SET: u32 = 256;
280pub const HV_TRANSLATE_GVA_PAN_CLEAR: u32 = 512;
281pub const HV_PSP_CPUID_LEAF_COUNT_MAX: u32 = 64;
282pub const HV_READ_WRITE_GPA_MAX_SIZE: u32 = 16;
283pub const HV_PARTITION_PROCESSOR_FEATURES_BANKS: u32 = 2;
284pub const HV_PARTITION_PROCESSOR_FEATURES_RESERVEDBANK1_BITFIELD_COUNT: u32 = 4;
285pub const MSHV_IOCTL: u32 = 184;
286pub const MSHV_VP_MAX_REGISTERS: u32 = 128;
287pub const MSHV_NUM_CPU_FEATURES_BANKS: u32 = 2;
288pub const MSHV_HV_PAGE_SIZE: u32 = 4096;
289pub const MSHV_RUN_VP_BUF_SZ: u32 = 256;
290pub const MSHV_CREATE_DEVICE_TEST: u32 = 1;
291pub const MSHV_DEV_VFIO_FILE: u32 = 1;
292pub const MSHV_DEV_VFIO_FILE_ADD: u32 = 1;
293pub const MSHV_DEV_VFIO_FILE_DEL: u32 = 2;
294pub const MSHV_DIAG_IOCTL: u32 = 185;
295pub const MSHV_TRACE_IOCTL: u32 = 186;
296pub type bool_ = bool;
297pub type __s8 = ::std::os::raw::c_schar;
298pub type __u8 = ::std::os::raw::c_uchar;
299pub type __s16 = ::std::os::raw::c_short;
300pub type __u16 = ::std::os::raw::c_ushort;
301pub type __s32 = ::std::os::raw::c_int;
302pub type __u32 = ::std::os::raw::c_uint;
303pub type __s64 = ::std::os::raw::c_longlong;
304pub type __u64 = ::std::os::raw::c_ulonglong;
305#[repr(C)]
306#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
307pub struct __kernel_fd_set {
308 pub fds_bits: [::std::os::raw::c_ulong; 16usize],
309}
310#[allow(clippy::unnecessary_operation, clippy::identity_op)]
311const _: () = {
312 ["Size of __kernel_fd_set"][::std::mem::size_of::<__kernel_fd_set>() - 128usize];
313 ["Alignment of __kernel_fd_set"][::std::mem::align_of::<__kernel_fd_set>() - 8usize];
314 ["Offset of field: __kernel_fd_set::fds_bits"]
315 [::std::mem::offset_of!(__kernel_fd_set, fds_bits) - 0usize];
316};
317pub type __kernel_sighandler_t =
318 ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
319pub type __kernel_key_t = ::std::os::raw::c_int;
320pub type __kernel_mqd_t = ::std::os::raw::c_int;
321pub type __kernel_old_uid_t = ::std::os::raw::c_ushort;
322pub type __kernel_old_gid_t = ::std::os::raw::c_ushort;
323pub type __kernel_long_t = ::std::os::raw::c_long;
324pub type __kernel_ulong_t = ::std::os::raw::c_ulong;
325pub type __kernel_ino_t = __kernel_ulong_t;
326pub type __kernel_mode_t = ::std::os::raw::c_uint;
327pub type __kernel_pid_t = ::std::os::raw::c_int;
328pub type __kernel_ipc_pid_t = ::std::os::raw::c_int;
329pub type __kernel_uid_t = ::std::os::raw::c_uint;
330pub type __kernel_gid_t = ::std::os::raw::c_uint;
331pub type __kernel_suseconds_t = __kernel_long_t;
332pub type __kernel_daddr_t = ::std::os::raw::c_int;
333pub type __kernel_uid32_t = ::std::os::raw::c_uint;
334pub type __kernel_gid32_t = ::std::os::raw::c_uint;
335pub type __kernel_old_dev_t = ::std::os::raw::c_uint;
336pub type __kernel_size_t = __kernel_ulong_t;
337pub type __kernel_ssize_t = __kernel_long_t;
338pub type __kernel_ptrdiff_t = __kernel_long_t;
339#[repr(C)]
340#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
341pub struct __kernel_fsid_t {
342 pub val: [::std::os::raw::c_int; 2usize],
343}
344#[allow(clippy::unnecessary_operation, clippy::identity_op)]
345const _: () = {
346 ["Size of __kernel_fsid_t"][::std::mem::size_of::<__kernel_fsid_t>() - 8usize];
347 ["Alignment of __kernel_fsid_t"][::std::mem::align_of::<__kernel_fsid_t>() - 4usize];
348 ["Offset of field: __kernel_fsid_t::val"]
349 [::std::mem::offset_of!(__kernel_fsid_t, val) - 0usize];
350};
351pub type __kernel_off_t = __kernel_long_t;
352pub type __kernel_loff_t = ::std::os::raw::c_longlong;
353pub type __kernel_old_time_t = __kernel_long_t;
354pub type __kernel_time_t = __kernel_long_t;
355pub type __kernel_time64_t = ::std::os::raw::c_longlong;
356pub type __kernel_clock_t = __kernel_long_t;
357pub type __kernel_timer_t = ::std::os::raw::c_int;
358pub type __kernel_clockid_t = ::std::os::raw::c_int;
359pub type __kernel_caddr_t = *mut ::std::os::raw::c_char;
360pub type __kernel_uid16_t = ::std::os::raw::c_ushort;
361pub type __kernel_gid16_t = ::std::os::raw::c_ushort;
362pub type __s128 = i128;
363pub type __u128 = u128;
364pub type __le16 = __u16;
365pub type __be16 = __u16;
366pub type __le32 = __u32;
367pub type __be32 = __u32;
368pub type __le64 = __u64;
369pub type __be64 = __u64;
370pub type __sum16 = __u16;
371pub type __wsum = __u32;
372pub type __poll_t = ::std::os::raw::c_uint;
373pub type hv_nano100_time_t = __u64;
374#[repr(C, packed)]
375#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
376pub struct hv_u128 {
377 pub low_part: __u64,
378 pub high_part: __u64,
379}
380#[allow(clippy::unnecessary_operation, clippy::identity_op)]
381const _: () = {
382 ["Size of hv_u128"][::std::mem::size_of::<hv_u128>() - 16usize];
383 ["Alignment of hv_u128"][::std::mem::align_of::<hv_u128>() - 1usize];
384 ["Offset of field: hv_u128::low_part"][::std::mem::offset_of!(hv_u128, low_part) - 0usize];
385 ["Offset of field: hv_u128::high_part"][::std::mem::offset_of!(hv_u128, high_part) - 8usize];
386};
387#[repr(C)]
388#[derive(Copy, Clone)]
389pub union hv_gpa_page_range {
390 pub address_space: __u64,
391 pub page: hv_gpa_page_range__bindgen_ty_1,
392 pub __bindgen_anon_1: hv_gpa_page_range__bindgen_ty_2,
393}
394#[repr(C)]
395#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
396pub struct hv_gpa_page_range__bindgen_ty_1 {
397 pub _bitfield_align_1: [u64; 0],
398 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
399}
400#[allow(clippy::unnecessary_operation, clippy::identity_op)]
401const _: () = {
402 ["Size of hv_gpa_page_range__bindgen_ty_1"]
403 [::std::mem::size_of::<hv_gpa_page_range__bindgen_ty_1>() - 8usize];
404 ["Alignment of hv_gpa_page_range__bindgen_ty_1"]
405 [::std::mem::align_of::<hv_gpa_page_range__bindgen_ty_1>() - 8usize];
406};
407impl hv_gpa_page_range__bindgen_ty_1 {
408 #[inline]
409 pub fn additional_pages(&self) -> __u64 {
410 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 11u8) as u64) }
411 }
412 #[inline]
413 pub fn set_additional_pages(&mut self, val: __u64) {
414 unsafe {
415 let val: u64 = ::std::mem::transmute(val);
416 self._bitfield_1.set(0usize, 11u8, val as u64)
417 }
418 }
419 #[inline]
420 pub unsafe fn additional_pages_raw(this: *const Self) -> __u64 {
421 unsafe {
422 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
423 ::std::ptr::addr_of!((*this)._bitfield_1),
424 0usize,
425 11u8,
426 ) as u64)
427 }
428 }
429 #[inline]
430 pub unsafe fn set_additional_pages_raw(this: *mut Self, val: __u64) {
431 unsafe {
432 let val: u64 = ::std::mem::transmute(val);
433 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
434 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
435 0usize,
436 11u8,
437 val as u64,
438 )
439 }
440 }
441 #[inline]
442 pub fn largepage(&self) -> __u64 {
443 unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u64) }
444 }
445 #[inline]
446 pub fn set_largepage(&mut self, val: __u64) {
447 unsafe {
448 let val: u64 = ::std::mem::transmute(val);
449 self._bitfield_1.set(11usize, 1u8, val as u64)
450 }
451 }
452 #[inline]
453 pub unsafe fn largepage_raw(this: *const Self) -> __u64 {
454 unsafe {
455 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
456 ::std::ptr::addr_of!((*this)._bitfield_1),
457 11usize,
458 1u8,
459 ) as u64)
460 }
461 }
462 #[inline]
463 pub unsafe fn set_largepage_raw(this: *mut Self, val: __u64) {
464 unsafe {
465 let val: u64 = ::std::mem::transmute(val);
466 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
467 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
468 11usize,
469 1u8,
470 val as u64,
471 )
472 }
473 }
474 #[inline]
475 pub fn basepfn(&self) -> __u64 {
476 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 52u8) as u64) }
477 }
478 #[inline]
479 pub fn set_basepfn(&mut self, val: __u64) {
480 unsafe {
481 let val: u64 = ::std::mem::transmute(val);
482 self._bitfield_1.set(12usize, 52u8, val as u64)
483 }
484 }
485 #[inline]
486 pub unsafe fn basepfn_raw(this: *const Self) -> __u64 {
487 unsafe {
488 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
489 ::std::ptr::addr_of!((*this)._bitfield_1),
490 12usize,
491 52u8,
492 ) as u64)
493 }
494 }
495 #[inline]
496 pub unsafe fn set_basepfn_raw(this: *mut Self, val: __u64) {
497 unsafe {
498 let val: u64 = ::std::mem::transmute(val);
499 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
500 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
501 12usize,
502 52u8,
503 val as u64,
504 )
505 }
506 }
507 #[inline]
508 pub fn new_bitfield_1(
509 additional_pages: __u64,
510 largepage: __u64,
511 basepfn: __u64,
512 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
513 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
514 __bindgen_bitfield_unit.set(0usize, 11u8, {
515 let additional_pages: u64 = unsafe { ::std::mem::transmute(additional_pages) };
516 additional_pages as u64
517 });
518 __bindgen_bitfield_unit.set(11usize, 1u8, {
519 let largepage: u64 = unsafe { ::std::mem::transmute(largepage) };
520 largepage as u64
521 });
522 __bindgen_bitfield_unit.set(12usize, 52u8, {
523 let basepfn: u64 = unsafe { ::std::mem::transmute(basepfn) };
524 basepfn as u64
525 });
526 __bindgen_bitfield_unit
527 }
528}
529#[repr(C)]
530#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
531pub struct hv_gpa_page_range__bindgen_ty_2 {
532 pub _bitfield_align_1: [u64; 0],
533 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
534}
535#[allow(clippy::unnecessary_operation, clippy::identity_op)]
536const _: () = {
537 ["Size of hv_gpa_page_range__bindgen_ty_2"]
538 [::std::mem::size_of::<hv_gpa_page_range__bindgen_ty_2>() - 8usize];
539 ["Alignment of hv_gpa_page_range__bindgen_ty_2"]
540 [::std::mem::align_of::<hv_gpa_page_range__bindgen_ty_2>() - 8usize];
541};
542impl hv_gpa_page_range__bindgen_ty_2 {
543 #[inline]
544 pub fn reserved(&self) -> __u64 {
545 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u64) }
546 }
547 #[inline]
548 pub fn set_reserved(&mut self, val: __u64) {
549 unsafe {
550 let val: u64 = ::std::mem::transmute(val);
551 self._bitfield_1.set(0usize, 12u8, val as u64)
552 }
553 }
554 #[inline]
555 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
556 unsafe {
557 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
558 ::std::ptr::addr_of!((*this)._bitfield_1),
559 0usize,
560 12u8,
561 ) as u64)
562 }
563 }
564 #[inline]
565 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
566 unsafe {
567 let val: u64 = ::std::mem::transmute(val);
568 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
569 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
570 0usize,
571 12u8,
572 val as u64,
573 )
574 }
575 }
576 #[inline]
577 pub fn page_size(&self) -> __u64 {
578 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u64) }
579 }
580 #[inline]
581 pub fn set_page_size(&mut self, val: __u64) {
582 unsafe {
583 let val: u64 = ::std::mem::transmute(val);
584 self._bitfield_1.set(12usize, 1u8, val as u64)
585 }
586 }
587 #[inline]
588 pub unsafe fn page_size_raw(this: *const Self) -> __u64 {
589 unsafe {
590 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
591 ::std::ptr::addr_of!((*this)._bitfield_1),
592 12usize,
593 1u8,
594 ) as u64)
595 }
596 }
597 #[inline]
598 pub unsafe fn set_page_size_raw(this: *mut Self, val: __u64) {
599 unsafe {
600 let val: u64 = ::std::mem::transmute(val);
601 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
602 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
603 12usize,
604 1u8,
605 val as u64,
606 )
607 }
608 }
609 #[inline]
610 pub fn reserved1(&self) -> __u64 {
611 unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 8u8) as u64) }
612 }
613 #[inline]
614 pub fn set_reserved1(&mut self, val: __u64) {
615 unsafe {
616 let val: u64 = ::std::mem::transmute(val);
617 self._bitfield_1.set(13usize, 8u8, val as u64)
618 }
619 }
620 #[inline]
621 pub unsafe fn reserved1_raw(this: *const Self) -> __u64 {
622 unsafe {
623 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
624 ::std::ptr::addr_of!((*this)._bitfield_1),
625 13usize,
626 8u8,
627 ) as u64)
628 }
629 }
630 #[inline]
631 pub unsafe fn set_reserved1_raw(this: *mut Self, val: __u64) {
632 unsafe {
633 let val: u64 = ::std::mem::transmute(val);
634 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
635 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
636 13usize,
637 8u8,
638 val as u64,
639 )
640 }
641 }
642 #[inline]
643 pub fn base_large_pfn(&self) -> __u64 {
644 unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 43u8) as u64) }
645 }
646 #[inline]
647 pub fn set_base_large_pfn(&mut self, val: __u64) {
648 unsafe {
649 let val: u64 = ::std::mem::transmute(val);
650 self._bitfield_1.set(21usize, 43u8, val as u64)
651 }
652 }
653 #[inline]
654 pub unsafe fn base_large_pfn_raw(this: *const Self) -> __u64 {
655 unsafe {
656 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
657 ::std::ptr::addr_of!((*this)._bitfield_1),
658 21usize,
659 43u8,
660 ) as u64)
661 }
662 }
663 #[inline]
664 pub unsafe fn set_base_large_pfn_raw(this: *mut Self, val: __u64) {
665 unsafe {
666 let val: u64 = ::std::mem::transmute(val);
667 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
668 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
669 21usize,
670 43u8,
671 val as u64,
672 )
673 }
674 }
675 #[inline]
676 pub fn new_bitfield_1(
677 reserved: __u64,
678 page_size: __u64,
679 reserved1: __u64,
680 base_large_pfn: __u64,
681 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
682 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
683 __bindgen_bitfield_unit.set(0usize, 12u8, {
684 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
685 reserved as u64
686 });
687 __bindgen_bitfield_unit.set(12usize, 1u8, {
688 let page_size: u64 = unsafe { ::std::mem::transmute(page_size) };
689 page_size as u64
690 });
691 __bindgen_bitfield_unit.set(13usize, 8u8, {
692 let reserved1: u64 = unsafe { ::std::mem::transmute(reserved1) };
693 reserved1 as u64
694 });
695 __bindgen_bitfield_unit.set(21usize, 43u8, {
696 let base_large_pfn: u64 = unsafe { ::std::mem::transmute(base_large_pfn) };
697 base_large_pfn as u64
698 });
699 __bindgen_bitfield_unit
700 }
701}
702#[allow(clippy::unnecessary_operation, clippy::identity_op)]
703const _: () = {
704 ["Size of hv_gpa_page_range"][::std::mem::size_of::<hv_gpa_page_range>() - 8usize];
705 ["Alignment of hv_gpa_page_range"][::std::mem::align_of::<hv_gpa_page_range>() - 8usize];
706 ["Offset of field: hv_gpa_page_range::address_space"]
707 [::std::mem::offset_of!(hv_gpa_page_range, address_space) - 0usize];
708 ["Offset of field: hv_gpa_page_range::page"]
709 [::std::mem::offset_of!(hv_gpa_page_range, page) - 0usize];
710};
711impl Default for hv_gpa_page_range {
712 fn default() -> Self {
713 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
714 unsafe {
715 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
716 s.assume_init()
717 }
718 }
719}
720pub const hv_interrupt_type_HV_ARM64_INTERRUPT_TYPE_FIXED: hv_interrupt_type = 0;
721pub const hv_interrupt_type_HV_ARM64_INTERRUPT_TYPE_MAXIMUM: hv_interrupt_type = 8;
722pub type hv_interrupt_type = ::std::os::raw::c_uint;
723#[repr(C)]
724#[derive(Copy, Clone)]
725pub union hv_x64_xsave_xfem_register {
726 pub as_uint64: __u64,
727 pub __bindgen_anon_1: hv_x64_xsave_xfem_register__bindgen_ty_1,
728 pub __bindgen_anon_2: hv_x64_xsave_xfem_register__bindgen_ty_2,
729}
730#[repr(C, packed)]
731#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
732pub struct hv_x64_xsave_xfem_register__bindgen_ty_1 {
733 pub low_uint32: __u32,
734 pub high_uint32: __u32,
735}
736#[allow(clippy::unnecessary_operation, clippy::identity_op)]
737const _: () = {
738 ["Size of hv_x64_xsave_xfem_register__bindgen_ty_1"]
739 [::std::mem::size_of::<hv_x64_xsave_xfem_register__bindgen_ty_1>() - 8usize];
740 ["Alignment of hv_x64_xsave_xfem_register__bindgen_ty_1"]
741 [::std::mem::align_of::<hv_x64_xsave_xfem_register__bindgen_ty_1>() - 1usize];
742 ["Offset of field: hv_x64_xsave_xfem_register__bindgen_ty_1::low_uint32"]
743 [::std::mem::offset_of!(hv_x64_xsave_xfem_register__bindgen_ty_1, low_uint32) - 0usize];
744 ["Offset of field: hv_x64_xsave_xfem_register__bindgen_ty_1::high_uint32"]
745 [::std::mem::offset_of!(hv_x64_xsave_xfem_register__bindgen_ty_1, high_uint32) - 4usize];
746};
747#[repr(C, packed)]
748#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
749pub struct hv_x64_xsave_xfem_register__bindgen_ty_2 {
750 pub _bitfield_align_1: [u8; 0],
751 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
752}
753#[allow(clippy::unnecessary_operation, clippy::identity_op)]
754const _: () = {
755 ["Size of hv_x64_xsave_xfem_register__bindgen_ty_2"]
756 [::std::mem::size_of::<hv_x64_xsave_xfem_register__bindgen_ty_2>() - 8usize];
757 ["Alignment of hv_x64_xsave_xfem_register__bindgen_ty_2"]
758 [::std::mem::align_of::<hv_x64_xsave_xfem_register__bindgen_ty_2>() - 1usize];
759};
760impl hv_x64_xsave_xfem_register__bindgen_ty_2 {
761 #[inline]
762 pub fn legacy_x87(&self) -> __u64 {
763 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
764 }
765 #[inline]
766 pub fn set_legacy_x87(&mut self, val: __u64) {
767 unsafe {
768 let val: u64 = ::std::mem::transmute(val);
769 self._bitfield_1.set(0usize, 1u8, val as u64)
770 }
771 }
772 #[inline]
773 pub unsafe fn legacy_x87_raw(this: *const Self) -> __u64 {
774 unsafe {
775 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
776 ::std::ptr::addr_of!((*this)._bitfield_1),
777 0usize,
778 1u8,
779 ) as u64)
780 }
781 }
782 #[inline]
783 pub unsafe fn set_legacy_x87_raw(this: *mut Self, val: __u64) {
784 unsafe {
785 let val: u64 = ::std::mem::transmute(val);
786 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
787 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
788 0usize,
789 1u8,
790 val as u64,
791 )
792 }
793 }
794 #[inline]
795 pub fn legacy_sse(&self) -> __u64 {
796 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
797 }
798 #[inline]
799 pub fn set_legacy_sse(&mut self, val: __u64) {
800 unsafe {
801 let val: u64 = ::std::mem::transmute(val);
802 self._bitfield_1.set(1usize, 1u8, val as u64)
803 }
804 }
805 #[inline]
806 pub unsafe fn legacy_sse_raw(this: *const Self) -> __u64 {
807 unsafe {
808 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
809 ::std::ptr::addr_of!((*this)._bitfield_1),
810 1usize,
811 1u8,
812 ) as u64)
813 }
814 }
815 #[inline]
816 pub unsafe fn set_legacy_sse_raw(this: *mut Self, val: __u64) {
817 unsafe {
818 let val: u64 = ::std::mem::transmute(val);
819 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
820 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
821 1usize,
822 1u8,
823 val as u64,
824 )
825 }
826 }
827 #[inline]
828 pub fn avx(&self) -> __u64 {
829 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
830 }
831 #[inline]
832 pub fn set_avx(&mut self, val: __u64) {
833 unsafe {
834 let val: u64 = ::std::mem::transmute(val);
835 self._bitfield_1.set(2usize, 1u8, val as u64)
836 }
837 }
838 #[inline]
839 pub unsafe fn avx_raw(this: *const Self) -> __u64 {
840 unsafe {
841 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
842 ::std::ptr::addr_of!((*this)._bitfield_1),
843 2usize,
844 1u8,
845 ) as u64)
846 }
847 }
848 #[inline]
849 pub unsafe fn set_avx_raw(this: *mut Self, val: __u64) {
850 unsafe {
851 let val: u64 = ::std::mem::transmute(val);
852 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
853 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
854 2usize,
855 1u8,
856 val as u64,
857 )
858 }
859 }
860 #[inline]
861 pub fn mpx_bndreg(&self) -> __u64 {
862 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) }
863 }
864 #[inline]
865 pub fn set_mpx_bndreg(&mut self, val: __u64) {
866 unsafe {
867 let val: u64 = ::std::mem::transmute(val);
868 self._bitfield_1.set(3usize, 1u8, val as u64)
869 }
870 }
871 #[inline]
872 pub unsafe fn mpx_bndreg_raw(this: *const Self) -> __u64 {
873 unsafe {
874 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
875 ::std::ptr::addr_of!((*this)._bitfield_1),
876 3usize,
877 1u8,
878 ) as u64)
879 }
880 }
881 #[inline]
882 pub unsafe fn set_mpx_bndreg_raw(this: *mut Self, val: __u64) {
883 unsafe {
884 let val: u64 = ::std::mem::transmute(val);
885 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
886 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
887 3usize,
888 1u8,
889 val as u64,
890 )
891 }
892 }
893 #[inline]
894 pub fn mpx_bndcsr(&self) -> __u64 {
895 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u64) }
896 }
897 #[inline]
898 pub fn set_mpx_bndcsr(&mut self, val: __u64) {
899 unsafe {
900 let val: u64 = ::std::mem::transmute(val);
901 self._bitfield_1.set(4usize, 1u8, val as u64)
902 }
903 }
904 #[inline]
905 pub unsafe fn mpx_bndcsr_raw(this: *const Self) -> __u64 {
906 unsafe {
907 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
908 ::std::ptr::addr_of!((*this)._bitfield_1),
909 4usize,
910 1u8,
911 ) as u64)
912 }
913 }
914 #[inline]
915 pub unsafe fn set_mpx_bndcsr_raw(this: *mut Self, val: __u64) {
916 unsafe {
917 let val: u64 = ::std::mem::transmute(val);
918 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
919 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
920 4usize,
921 1u8,
922 val as u64,
923 )
924 }
925 }
926 #[inline]
927 pub fn avx_512_op_mask(&self) -> __u64 {
928 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
929 }
930 #[inline]
931 pub fn set_avx_512_op_mask(&mut self, val: __u64) {
932 unsafe {
933 let val: u64 = ::std::mem::transmute(val);
934 self._bitfield_1.set(5usize, 1u8, val as u64)
935 }
936 }
937 #[inline]
938 pub unsafe fn avx_512_op_mask_raw(this: *const Self) -> __u64 {
939 unsafe {
940 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
941 ::std::ptr::addr_of!((*this)._bitfield_1),
942 5usize,
943 1u8,
944 ) as u64)
945 }
946 }
947 #[inline]
948 pub unsafe fn set_avx_512_op_mask_raw(this: *mut Self, val: __u64) {
949 unsafe {
950 let val: u64 = ::std::mem::transmute(val);
951 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
952 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
953 5usize,
954 1u8,
955 val as u64,
956 )
957 }
958 }
959 #[inline]
960 pub fn avx_512_zmmhi(&self) -> __u64 {
961 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u64) }
962 }
963 #[inline]
964 pub fn set_avx_512_zmmhi(&mut self, val: __u64) {
965 unsafe {
966 let val: u64 = ::std::mem::transmute(val);
967 self._bitfield_1.set(6usize, 1u8, val as u64)
968 }
969 }
970 #[inline]
971 pub unsafe fn avx_512_zmmhi_raw(this: *const Self) -> __u64 {
972 unsafe {
973 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
974 ::std::ptr::addr_of!((*this)._bitfield_1),
975 6usize,
976 1u8,
977 ) as u64)
978 }
979 }
980 #[inline]
981 pub unsafe fn set_avx_512_zmmhi_raw(this: *mut Self, val: __u64) {
982 unsafe {
983 let val: u64 = ::std::mem::transmute(val);
984 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
985 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
986 6usize,
987 1u8,
988 val as u64,
989 )
990 }
991 }
992 #[inline]
993 pub fn avx_512_zmm16_31(&self) -> __u64 {
994 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u64) }
995 }
996 #[inline]
997 pub fn set_avx_512_zmm16_31(&mut self, val: __u64) {
998 unsafe {
999 let val: u64 = ::std::mem::transmute(val);
1000 self._bitfield_1.set(7usize, 1u8, val as u64)
1001 }
1002 }
1003 #[inline]
1004 pub unsafe fn avx_512_zmm16_31_raw(this: *const Self) -> __u64 {
1005 unsafe {
1006 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1007 ::std::ptr::addr_of!((*this)._bitfield_1),
1008 7usize,
1009 1u8,
1010 ) as u64)
1011 }
1012 }
1013 #[inline]
1014 pub unsafe fn set_avx_512_zmm16_31_raw(this: *mut Self, val: __u64) {
1015 unsafe {
1016 let val: u64 = ::std::mem::transmute(val);
1017 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1018 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1019 7usize,
1020 1u8,
1021 val as u64,
1022 )
1023 }
1024 }
1025 #[inline]
1026 pub fn rsvd8_9(&self) -> __u64 {
1027 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u64) }
1028 }
1029 #[inline]
1030 pub fn set_rsvd8_9(&mut self, val: __u64) {
1031 unsafe {
1032 let val: u64 = ::std::mem::transmute(val);
1033 self._bitfield_1.set(8usize, 2u8, val as u64)
1034 }
1035 }
1036 #[inline]
1037 pub unsafe fn rsvd8_9_raw(this: *const Self) -> __u64 {
1038 unsafe {
1039 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1040 ::std::ptr::addr_of!((*this)._bitfield_1),
1041 8usize,
1042 2u8,
1043 ) as u64)
1044 }
1045 }
1046 #[inline]
1047 pub unsafe fn set_rsvd8_9_raw(this: *mut Self, val: __u64) {
1048 unsafe {
1049 let val: u64 = ::std::mem::transmute(val);
1050 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1051 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1052 8usize,
1053 2u8,
1054 val as u64,
1055 )
1056 }
1057 }
1058 #[inline]
1059 pub fn pasid(&self) -> __u64 {
1060 unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u64) }
1061 }
1062 #[inline]
1063 pub fn set_pasid(&mut self, val: __u64) {
1064 unsafe {
1065 let val: u64 = ::std::mem::transmute(val);
1066 self._bitfield_1.set(10usize, 1u8, val as u64)
1067 }
1068 }
1069 #[inline]
1070 pub unsafe fn pasid_raw(this: *const Self) -> __u64 {
1071 unsafe {
1072 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1073 ::std::ptr::addr_of!((*this)._bitfield_1),
1074 10usize,
1075 1u8,
1076 ) as u64)
1077 }
1078 }
1079 #[inline]
1080 pub unsafe fn set_pasid_raw(this: *mut Self, val: __u64) {
1081 unsafe {
1082 let val: u64 = ::std::mem::transmute(val);
1083 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1084 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1085 10usize,
1086 1u8,
1087 val as u64,
1088 )
1089 }
1090 }
1091 #[inline]
1092 pub fn cet_u(&self) -> __u64 {
1093 unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u64) }
1094 }
1095 #[inline]
1096 pub fn set_cet_u(&mut self, val: __u64) {
1097 unsafe {
1098 let val: u64 = ::std::mem::transmute(val);
1099 self._bitfield_1.set(11usize, 1u8, val as u64)
1100 }
1101 }
1102 #[inline]
1103 pub unsafe fn cet_u_raw(this: *const Self) -> __u64 {
1104 unsafe {
1105 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1106 ::std::ptr::addr_of!((*this)._bitfield_1),
1107 11usize,
1108 1u8,
1109 ) as u64)
1110 }
1111 }
1112 #[inline]
1113 pub unsafe fn set_cet_u_raw(this: *mut Self, val: __u64) {
1114 unsafe {
1115 let val: u64 = ::std::mem::transmute(val);
1116 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1117 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1118 11usize,
1119 1u8,
1120 val as u64,
1121 )
1122 }
1123 }
1124 #[inline]
1125 pub fn cet_s(&self) -> __u64 {
1126 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u64) }
1127 }
1128 #[inline]
1129 pub fn set_cet_s(&mut self, val: __u64) {
1130 unsafe {
1131 let val: u64 = ::std::mem::transmute(val);
1132 self._bitfield_1.set(12usize, 1u8, val as u64)
1133 }
1134 }
1135 #[inline]
1136 pub unsafe fn cet_s_raw(this: *const Self) -> __u64 {
1137 unsafe {
1138 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1139 ::std::ptr::addr_of!((*this)._bitfield_1),
1140 12usize,
1141 1u8,
1142 ) as u64)
1143 }
1144 }
1145 #[inline]
1146 pub unsafe fn set_cet_s_raw(this: *mut Self, val: __u64) {
1147 unsafe {
1148 let val: u64 = ::std::mem::transmute(val);
1149 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1150 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1151 12usize,
1152 1u8,
1153 val as u64,
1154 )
1155 }
1156 }
1157 #[inline]
1158 pub fn rsvd13_16(&self) -> __u64 {
1159 unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 4u8) as u64) }
1160 }
1161 #[inline]
1162 pub fn set_rsvd13_16(&mut self, val: __u64) {
1163 unsafe {
1164 let val: u64 = ::std::mem::transmute(val);
1165 self._bitfield_1.set(13usize, 4u8, val as u64)
1166 }
1167 }
1168 #[inline]
1169 pub unsafe fn rsvd13_16_raw(this: *const Self) -> __u64 {
1170 unsafe {
1171 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1172 ::std::ptr::addr_of!((*this)._bitfield_1),
1173 13usize,
1174 4u8,
1175 ) as u64)
1176 }
1177 }
1178 #[inline]
1179 pub unsafe fn set_rsvd13_16_raw(this: *mut Self, val: __u64) {
1180 unsafe {
1181 let val: u64 = ::std::mem::transmute(val);
1182 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1183 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1184 13usize,
1185 4u8,
1186 val as u64,
1187 )
1188 }
1189 }
1190 #[inline]
1191 pub fn xtile_cfg(&self) -> __u64 {
1192 unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u64) }
1193 }
1194 #[inline]
1195 pub fn set_xtile_cfg(&mut self, val: __u64) {
1196 unsafe {
1197 let val: u64 = ::std::mem::transmute(val);
1198 self._bitfield_1.set(17usize, 1u8, val as u64)
1199 }
1200 }
1201 #[inline]
1202 pub unsafe fn xtile_cfg_raw(this: *const Self) -> __u64 {
1203 unsafe {
1204 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1205 ::std::ptr::addr_of!((*this)._bitfield_1),
1206 17usize,
1207 1u8,
1208 ) as u64)
1209 }
1210 }
1211 #[inline]
1212 pub unsafe fn set_xtile_cfg_raw(this: *mut Self, val: __u64) {
1213 unsafe {
1214 let val: u64 = ::std::mem::transmute(val);
1215 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1216 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1217 17usize,
1218 1u8,
1219 val as u64,
1220 )
1221 }
1222 }
1223 #[inline]
1224 pub fn xtile_data(&self) -> __u64 {
1225 unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u64) }
1226 }
1227 #[inline]
1228 pub fn set_xtile_data(&mut self, val: __u64) {
1229 unsafe {
1230 let val: u64 = ::std::mem::transmute(val);
1231 self._bitfield_1.set(18usize, 1u8, val as u64)
1232 }
1233 }
1234 #[inline]
1235 pub unsafe fn xtile_data_raw(this: *const Self) -> __u64 {
1236 unsafe {
1237 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1238 ::std::ptr::addr_of!((*this)._bitfield_1),
1239 18usize,
1240 1u8,
1241 ) as u64)
1242 }
1243 }
1244 #[inline]
1245 pub unsafe fn set_xtile_data_raw(this: *mut Self, val: __u64) {
1246 unsafe {
1247 let val: u64 = ::std::mem::transmute(val);
1248 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1249 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1250 18usize,
1251 1u8,
1252 val as u64,
1253 )
1254 }
1255 }
1256 #[inline]
1257 pub fn rsvd19_63(&self) -> __u64 {
1258 unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 45u8) as u64) }
1259 }
1260 #[inline]
1261 pub fn set_rsvd19_63(&mut self, val: __u64) {
1262 unsafe {
1263 let val: u64 = ::std::mem::transmute(val);
1264 self._bitfield_1.set(19usize, 45u8, val as u64)
1265 }
1266 }
1267 #[inline]
1268 pub unsafe fn rsvd19_63_raw(this: *const Self) -> __u64 {
1269 unsafe {
1270 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1271 ::std::ptr::addr_of!((*this)._bitfield_1),
1272 19usize,
1273 45u8,
1274 ) as u64)
1275 }
1276 }
1277 #[inline]
1278 pub unsafe fn set_rsvd19_63_raw(this: *mut Self, val: __u64) {
1279 unsafe {
1280 let val: u64 = ::std::mem::transmute(val);
1281 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1282 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1283 19usize,
1284 45u8,
1285 val as u64,
1286 )
1287 }
1288 }
1289 #[inline]
1290 pub fn new_bitfield_1(
1291 legacy_x87: __u64,
1292 legacy_sse: __u64,
1293 avx: __u64,
1294 mpx_bndreg: __u64,
1295 mpx_bndcsr: __u64,
1296 avx_512_op_mask: __u64,
1297 avx_512_zmmhi: __u64,
1298 avx_512_zmm16_31: __u64,
1299 rsvd8_9: __u64,
1300 pasid: __u64,
1301 cet_u: __u64,
1302 cet_s: __u64,
1303 rsvd13_16: __u64,
1304 xtile_cfg: __u64,
1305 xtile_data: __u64,
1306 rsvd19_63: __u64,
1307 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1308 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1309 __bindgen_bitfield_unit.set(0usize, 1u8, {
1310 let legacy_x87: u64 = unsafe { ::std::mem::transmute(legacy_x87) };
1311 legacy_x87 as u64
1312 });
1313 __bindgen_bitfield_unit.set(1usize, 1u8, {
1314 let legacy_sse: u64 = unsafe { ::std::mem::transmute(legacy_sse) };
1315 legacy_sse as u64
1316 });
1317 __bindgen_bitfield_unit.set(2usize, 1u8, {
1318 let avx: u64 = unsafe { ::std::mem::transmute(avx) };
1319 avx as u64
1320 });
1321 __bindgen_bitfield_unit.set(3usize, 1u8, {
1322 let mpx_bndreg: u64 = unsafe { ::std::mem::transmute(mpx_bndreg) };
1323 mpx_bndreg as u64
1324 });
1325 __bindgen_bitfield_unit.set(4usize, 1u8, {
1326 let mpx_bndcsr: u64 = unsafe { ::std::mem::transmute(mpx_bndcsr) };
1327 mpx_bndcsr as u64
1328 });
1329 __bindgen_bitfield_unit.set(5usize, 1u8, {
1330 let avx_512_op_mask: u64 = unsafe { ::std::mem::transmute(avx_512_op_mask) };
1331 avx_512_op_mask as u64
1332 });
1333 __bindgen_bitfield_unit.set(6usize, 1u8, {
1334 let avx_512_zmmhi: u64 = unsafe { ::std::mem::transmute(avx_512_zmmhi) };
1335 avx_512_zmmhi as u64
1336 });
1337 __bindgen_bitfield_unit.set(7usize, 1u8, {
1338 let avx_512_zmm16_31: u64 = unsafe { ::std::mem::transmute(avx_512_zmm16_31) };
1339 avx_512_zmm16_31 as u64
1340 });
1341 __bindgen_bitfield_unit.set(8usize, 2u8, {
1342 let rsvd8_9: u64 = unsafe { ::std::mem::transmute(rsvd8_9) };
1343 rsvd8_9 as u64
1344 });
1345 __bindgen_bitfield_unit.set(10usize, 1u8, {
1346 let pasid: u64 = unsafe { ::std::mem::transmute(pasid) };
1347 pasid as u64
1348 });
1349 __bindgen_bitfield_unit.set(11usize, 1u8, {
1350 let cet_u: u64 = unsafe { ::std::mem::transmute(cet_u) };
1351 cet_u as u64
1352 });
1353 __bindgen_bitfield_unit.set(12usize, 1u8, {
1354 let cet_s: u64 = unsafe { ::std::mem::transmute(cet_s) };
1355 cet_s as u64
1356 });
1357 __bindgen_bitfield_unit.set(13usize, 4u8, {
1358 let rsvd13_16: u64 = unsafe { ::std::mem::transmute(rsvd13_16) };
1359 rsvd13_16 as u64
1360 });
1361 __bindgen_bitfield_unit.set(17usize, 1u8, {
1362 let xtile_cfg: u64 = unsafe { ::std::mem::transmute(xtile_cfg) };
1363 xtile_cfg as u64
1364 });
1365 __bindgen_bitfield_unit.set(18usize, 1u8, {
1366 let xtile_data: u64 = unsafe { ::std::mem::transmute(xtile_data) };
1367 xtile_data as u64
1368 });
1369 __bindgen_bitfield_unit.set(19usize, 45u8, {
1370 let rsvd19_63: u64 = unsafe { ::std::mem::transmute(rsvd19_63) };
1371 rsvd19_63 as u64
1372 });
1373 __bindgen_bitfield_unit
1374 }
1375}
1376#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1377const _: () = {
1378 ["Size of hv_x64_xsave_xfem_register"]
1379 [::std::mem::size_of::<hv_x64_xsave_xfem_register>() - 8usize];
1380 ["Alignment of hv_x64_xsave_xfem_register"]
1381 [::std::mem::align_of::<hv_x64_xsave_xfem_register>() - 8usize];
1382 ["Offset of field: hv_x64_xsave_xfem_register::as_uint64"]
1383 [::std::mem::offset_of!(hv_x64_xsave_xfem_register, as_uint64) - 0usize];
1384};
1385impl Default for hv_x64_xsave_xfem_register {
1386 fn default() -> Self {
1387 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1388 unsafe {
1389 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1390 s.assume_init()
1391 }
1392 }
1393}
1394#[repr(C)]
1395#[derive(Copy, Clone)]
1396pub union hv_stimer_config {
1397 pub as_uint64: __u64,
1398 pub __bindgen_anon_1: hv_stimer_config__bindgen_ty_1,
1399}
1400#[repr(C, packed)]
1401#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
1402pub struct hv_stimer_config__bindgen_ty_1 {
1403 pub _bitfield_align_1: [u8; 0],
1404 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
1405}
1406#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1407const _: () = {
1408 ["Size of hv_stimer_config__bindgen_ty_1"]
1409 [::std::mem::size_of::<hv_stimer_config__bindgen_ty_1>() - 8usize];
1410 ["Alignment of hv_stimer_config__bindgen_ty_1"]
1411 [::std::mem::align_of::<hv_stimer_config__bindgen_ty_1>() - 1usize];
1412};
1413impl hv_stimer_config__bindgen_ty_1 {
1414 #[inline]
1415 pub fn enable(&self) -> __u64 {
1416 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
1417 }
1418 #[inline]
1419 pub fn set_enable(&mut self, val: __u64) {
1420 unsafe {
1421 let val: u64 = ::std::mem::transmute(val);
1422 self._bitfield_1.set(0usize, 1u8, val as u64)
1423 }
1424 }
1425 #[inline]
1426 pub unsafe fn enable_raw(this: *const Self) -> __u64 {
1427 unsafe {
1428 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1429 ::std::ptr::addr_of!((*this)._bitfield_1),
1430 0usize,
1431 1u8,
1432 ) as u64)
1433 }
1434 }
1435 #[inline]
1436 pub unsafe fn set_enable_raw(this: *mut Self, val: __u64) {
1437 unsafe {
1438 let val: u64 = ::std::mem::transmute(val);
1439 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1440 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1441 0usize,
1442 1u8,
1443 val as u64,
1444 )
1445 }
1446 }
1447 #[inline]
1448 pub fn periodic(&self) -> __u64 {
1449 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
1450 }
1451 #[inline]
1452 pub fn set_periodic(&mut self, val: __u64) {
1453 unsafe {
1454 let val: u64 = ::std::mem::transmute(val);
1455 self._bitfield_1.set(1usize, 1u8, val as u64)
1456 }
1457 }
1458 #[inline]
1459 pub unsafe fn periodic_raw(this: *const Self) -> __u64 {
1460 unsafe {
1461 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1462 ::std::ptr::addr_of!((*this)._bitfield_1),
1463 1usize,
1464 1u8,
1465 ) as u64)
1466 }
1467 }
1468 #[inline]
1469 pub unsafe fn set_periodic_raw(this: *mut Self, val: __u64) {
1470 unsafe {
1471 let val: u64 = ::std::mem::transmute(val);
1472 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1473 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1474 1usize,
1475 1u8,
1476 val as u64,
1477 )
1478 }
1479 }
1480 #[inline]
1481 pub fn lazy(&self) -> __u64 {
1482 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
1483 }
1484 #[inline]
1485 pub fn set_lazy(&mut self, val: __u64) {
1486 unsafe {
1487 let val: u64 = ::std::mem::transmute(val);
1488 self._bitfield_1.set(2usize, 1u8, val as u64)
1489 }
1490 }
1491 #[inline]
1492 pub unsafe fn lazy_raw(this: *const Self) -> __u64 {
1493 unsafe {
1494 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1495 ::std::ptr::addr_of!((*this)._bitfield_1),
1496 2usize,
1497 1u8,
1498 ) as u64)
1499 }
1500 }
1501 #[inline]
1502 pub unsafe fn set_lazy_raw(this: *mut Self, val: __u64) {
1503 unsafe {
1504 let val: u64 = ::std::mem::transmute(val);
1505 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1506 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1507 2usize,
1508 1u8,
1509 val as u64,
1510 )
1511 }
1512 }
1513 #[inline]
1514 pub fn auto_enable(&self) -> __u64 {
1515 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) }
1516 }
1517 #[inline]
1518 pub fn set_auto_enable(&mut self, val: __u64) {
1519 unsafe {
1520 let val: u64 = ::std::mem::transmute(val);
1521 self._bitfield_1.set(3usize, 1u8, val as u64)
1522 }
1523 }
1524 #[inline]
1525 pub unsafe fn auto_enable_raw(this: *const Self) -> __u64 {
1526 unsafe {
1527 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1528 ::std::ptr::addr_of!((*this)._bitfield_1),
1529 3usize,
1530 1u8,
1531 ) as u64)
1532 }
1533 }
1534 #[inline]
1535 pub unsafe fn set_auto_enable_raw(this: *mut Self, val: __u64) {
1536 unsafe {
1537 let val: u64 = ::std::mem::transmute(val);
1538 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1539 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1540 3usize,
1541 1u8,
1542 val as u64,
1543 )
1544 }
1545 }
1546 #[inline]
1547 pub fn apic_vector(&self) -> __u64 {
1548 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 8u8) as u64) }
1549 }
1550 #[inline]
1551 pub fn set_apic_vector(&mut self, val: __u64) {
1552 unsafe {
1553 let val: u64 = ::std::mem::transmute(val);
1554 self._bitfield_1.set(4usize, 8u8, val as u64)
1555 }
1556 }
1557 #[inline]
1558 pub unsafe fn apic_vector_raw(this: *const Self) -> __u64 {
1559 unsafe {
1560 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1561 ::std::ptr::addr_of!((*this)._bitfield_1),
1562 4usize,
1563 8u8,
1564 ) as u64)
1565 }
1566 }
1567 #[inline]
1568 pub unsafe fn set_apic_vector_raw(this: *mut Self, val: __u64) {
1569 unsafe {
1570 let val: u64 = ::std::mem::transmute(val);
1571 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1572 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1573 4usize,
1574 8u8,
1575 val as u64,
1576 )
1577 }
1578 }
1579 #[inline]
1580 pub fn direct_mode(&self) -> __u64 {
1581 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u64) }
1582 }
1583 #[inline]
1584 pub fn set_direct_mode(&mut self, val: __u64) {
1585 unsafe {
1586 let val: u64 = ::std::mem::transmute(val);
1587 self._bitfield_1.set(12usize, 1u8, val as u64)
1588 }
1589 }
1590 #[inline]
1591 pub unsafe fn direct_mode_raw(this: *const Self) -> __u64 {
1592 unsafe {
1593 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1594 ::std::ptr::addr_of!((*this)._bitfield_1),
1595 12usize,
1596 1u8,
1597 ) as u64)
1598 }
1599 }
1600 #[inline]
1601 pub unsafe fn set_direct_mode_raw(this: *mut Self, val: __u64) {
1602 unsafe {
1603 let val: u64 = ::std::mem::transmute(val);
1604 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1605 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1606 12usize,
1607 1u8,
1608 val as u64,
1609 )
1610 }
1611 }
1612 #[inline]
1613 pub fn reserved_z0(&self) -> __u64 {
1614 unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 3u8) as u64) }
1615 }
1616 #[inline]
1617 pub fn set_reserved_z0(&mut self, val: __u64) {
1618 unsafe {
1619 let val: u64 = ::std::mem::transmute(val);
1620 self._bitfield_1.set(13usize, 3u8, val as u64)
1621 }
1622 }
1623 #[inline]
1624 pub unsafe fn reserved_z0_raw(this: *const Self) -> __u64 {
1625 unsafe {
1626 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1627 ::std::ptr::addr_of!((*this)._bitfield_1),
1628 13usize,
1629 3u8,
1630 ) as u64)
1631 }
1632 }
1633 #[inline]
1634 pub unsafe fn set_reserved_z0_raw(this: *mut Self, val: __u64) {
1635 unsafe {
1636 let val: u64 = ::std::mem::transmute(val);
1637 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1638 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1639 13usize,
1640 3u8,
1641 val as u64,
1642 )
1643 }
1644 }
1645 #[inline]
1646 pub fn sintx(&self) -> __u64 {
1647 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u64) }
1648 }
1649 #[inline]
1650 pub fn set_sintx(&mut self, val: __u64) {
1651 unsafe {
1652 let val: u64 = ::std::mem::transmute(val);
1653 self._bitfield_1.set(16usize, 4u8, val as u64)
1654 }
1655 }
1656 #[inline]
1657 pub unsafe fn sintx_raw(this: *const Self) -> __u64 {
1658 unsafe {
1659 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1660 ::std::ptr::addr_of!((*this)._bitfield_1),
1661 16usize,
1662 4u8,
1663 ) as u64)
1664 }
1665 }
1666 #[inline]
1667 pub unsafe fn set_sintx_raw(this: *mut Self, val: __u64) {
1668 unsafe {
1669 let val: u64 = ::std::mem::transmute(val);
1670 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1671 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1672 16usize,
1673 4u8,
1674 val as u64,
1675 )
1676 }
1677 }
1678 #[inline]
1679 pub fn reserved_z1(&self) -> __u64 {
1680 unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 44u8) as u64) }
1681 }
1682 #[inline]
1683 pub fn set_reserved_z1(&mut self, val: __u64) {
1684 unsafe {
1685 let val: u64 = ::std::mem::transmute(val);
1686 self._bitfield_1.set(20usize, 44u8, val as u64)
1687 }
1688 }
1689 #[inline]
1690 pub unsafe fn reserved_z1_raw(this: *const Self) -> __u64 {
1691 unsafe {
1692 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1693 ::std::ptr::addr_of!((*this)._bitfield_1),
1694 20usize,
1695 44u8,
1696 ) as u64)
1697 }
1698 }
1699 #[inline]
1700 pub unsafe fn set_reserved_z1_raw(this: *mut Self, val: __u64) {
1701 unsafe {
1702 let val: u64 = ::std::mem::transmute(val);
1703 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1704 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1705 20usize,
1706 44u8,
1707 val as u64,
1708 )
1709 }
1710 }
1711 #[inline]
1712 pub fn new_bitfield_1(
1713 enable: __u64,
1714 periodic: __u64,
1715 lazy: __u64,
1716 auto_enable: __u64,
1717 apic_vector: __u64,
1718 direct_mode: __u64,
1719 reserved_z0: __u64,
1720 sintx: __u64,
1721 reserved_z1: __u64,
1722 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1723 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1724 __bindgen_bitfield_unit.set(0usize, 1u8, {
1725 let enable: u64 = unsafe { ::std::mem::transmute(enable) };
1726 enable as u64
1727 });
1728 __bindgen_bitfield_unit.set(1usize, 1u8, {
1729 let periodic: u64 = unsafe { ::std::mem::transmute(periodic) };
1730 periodic as u64
1731 });
1732 __bindgen_bitfield_unit.set(2usize, 1u8, {
1733 let lazy: u64 = unsafe { ::std::mem::transmute(lazy) };
1734 lazy as u64
1735 });
1736 __bindgen_bitfield_unit.set(3usize, 1u8, {
1737 let auto_enable: u64 = unsafe { ::std::mem::transmute(auto_enable) };
1738 auto_enable as u64
1739 });
1740 __bindgen_bitfield_unit.set(4usize, 8u8, {
1741 let apic_vector: u64 = unsafe { ::std::mem::transmute(apic_vector) };
1742 apic_vector as u64
1743 });
1744 __bindgen_bitfield_unit.set(12usize, 1u8, {
1745 let direct_mode: u64 = unsafe { ::std::mem::transmute(direct_mode) };
1746 direct_mode as u64
1747 });
1748 __bindgen_bitfield_unit.set(13usize, 3u8, {
1749 let reserved_z0: u64 = unsafe { ::std::mem::transmute(reserved_z0) };
1750 reserved_z0 as u64
1751 });
1752 __bindgen_bitfield_unit.set(16usize, 4u8, {
1753 let sintx: u64 = unsafe { ::std::mem::transmute(sintx) };
1754 sintx as u64
1755 });
1756 __bindgen_bitfield_unit.set(20usize, 44u8, {
1757 let reserved_z1: u64 = unsafe { ::std::mem::transmute(reserved_z1) };
1758 reserved_z1 as u64
1759 });
1760 __bindgen_bitfield_unit
1761 }
1762}
1763#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1764const _: () = {
1765 ["Size of hv_stimer_config"][::std::mem::size_of::<hv_stimer_config>() - 8usize];
1766 ["Alignment of hv_stimer_config"][::std::mem::align_of::<hv_stimer_config>() - 8usize];
1767 ["Offset of field: hv_stimer_config::as_uint64"]
1768 [::std::mem::offset_of!(hv_stimer_config, as_uint64) - 0usize];
1769};
1770impl Default for hv_stimer_config {
1771 fn default() -> Self {
1772 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1773 unsafe {
1774 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1775 s.assume_init()
1776 }
1777 }
1778}
1779#[repr(C)]
1780#[derive(Copy, Clone)]
1781pub union hv_port_id {
1782 pub as__u32: __u32,
1783 pub u: hv_port_id__bindgen_ty_1,
1784}
1785#[repr(C, packed)]
1786#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
1787pub struct hv_port_id__bindgen_ty_1 {
1788 pub _bitfield_align_1: [u8; 0],
1789 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
1790}
1791#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1792const _: () = {
1793 ["Size of hv_port_id__bindgen_ty_1"]
1794 [::std::mem::size_of::<hv_port_id__bindgen_ty_1>() - 4usize];
1795 ["Alignment of hv_port_id__bindgen_ty_1"]
1796 [::std::mem::align_of::<hv_port_id__bindgen_ty_1>() - 1usize];
1797};
1798impl hv_port_id__bindgen_ty_1 {
1799 #[inline]
1800 pub fn id(&self) -> __u32 {
1801 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 24u8) as u32) }
1802 }
1803 #[inline]
1804 pub fn set_id(&mut self, val: __u32) {
1805 unsafe {
1806 let val: u32 = ::std::mem::transmute(val);
1807 self._bitfield_1.set(0usize, 24u8, val as u64)
1808 }
1809 }
1810 #[inline]
1811 pub unsafe fn id_raw(this: *const Self) -> __u32 {
1812 unsafe {
1813 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1814 ::std::ptr::addr_of!((*this)._bitfield_1),
1815 0usize,
1816 24u8,
1817 ) as u32)
1818 }
1819 }
1820 #[inline]
1821 pub unsafe fn set_id_raw(this: *mut Self, val: __u32) {
1822 unsafe {
1823 let val: u32 = ::std::mem::transmute(val);
1824 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1825 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1826 0usize,
1827 24u8,
1828 val as u64,
1829 )
1830 }
1831 }
1832 #[inline]
1833 pub fn reserved(&self) -> __u32 {
1834 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
1835 }
1836 #[inline]
1837 pub fn set_reserved(&mut self, val: __u32) {
1838 unsafe {
1839 let val: u32 = ::std::mem::transmute(val);
1840 self._bitfield_1.set(24usize, 8u8, val as u64)
1841 }
1842 }
1843 #[inline]
1844 pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
1845 unsafe {
1846 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1847 ::std::ptr::addr_of!((*this)._bitfield_1),
1848 24usize,
1849 8u8,
1850 ) as u32)
1851 }
1852 }
1853 #[inline]
1854 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
1855 unsafe {
1856 let val: u32 = ::std::mem::transmute(val);
1857 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1858 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1859 24usize,
1860 8u8,
1861 val as u64,
1862 )
1863 }
1864 }
1865 #[inline]
1866 pub fn new_bitfield_1(id: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
1867 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
1868 __bindgen_bitfield_unit.set(0usize, 24u8, {
1869 let id: u32 = unsafe { ::std::mem::transmute(id) };
1870 id as u64
1871 });
1872 __bindgen_bitfield_unit.set(24usize, 8u8, {
1873 let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
1874 reserved as u64
1875 });
1876 __bindgen_bitfield_unit
1877 }
1878}
1879#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1880const _: () = {
1881 ["Size of hv_port_id"][::std::mem::size_of::<hv_port_id>() - 4usize];
1882 ["Alignment of hv_port_id"][::std::mem::align_of::<hv_port_id>() - 4usize];
1883 ["Offset of field: hv_port_id::as__u32"][::std::mem::offset_of!(hv_port_id, as__u32) - 0usize];
1884 ["Offset of field: hv_port_id::u"][::std::mem::offset_of!(hv_port_id, u) - 0usize];
1885};
1886impl Default for hv_port_id {
1887 fn default() -> Self {
1888 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1889 unsafe {
1890 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1891 s.assume_init()
1892 }
1893 }
1894}
1895pub const hv_message_type_HVMSG_NONE: hv_message_type = 0;
1896pub const hv_message_type_HVMSG_UNMAPPED_GPA: hv_message_type = 2147483648;
1897pub const hv_message_type_HVMSG_GPA_INTERCEPT: hv_message_type = 2147483649;
1898pub const hv_message_type_HVMSG_UNACCEPTED_GPA: hv_message_type = 2147483651;
1899pub const hv_message_type_HVMSG_GPA_ATTRIBUTE_INTERCEPT: hv_message_type = 2147483652;
1900pub const hv_message_type_HVMSG_TIMER_EXPIRED: hv_message_type = 2147483664;
1901pub const hv_message_type_HVMSG_INVALID_VP_REGISTER_VALUE: hv_message_type = 2147483680;
1902pub const hv_message_type_HVMSG_UNRECOVERABLE_EXCEPTION: hv_message_type = 2147483681;
1903pub const hv_message_type_HVMSG_UNSUPPORTED_FEATURE: hv_message_type = 2147483682;
1904pub const hv_message_type_HVMSG_OPAQUE_INTERCEPT: hv_message_type = 2147483711;
1905pub const hv_message_type_HVMSG_EVENTLOG_BUFFERCOMPLETE: hv_message_type = 2147483712;
1906pub const hv_message_type_HVMSG_HYPERCALL_INTERCEPT: hv_message_type = 2147483728;
1907pub const hv_message_type_HVMSG_SYNIC_EVENT_INTERCEPT: hv_message_type = 2147483744;
1908pub const hv_message_type_HVMSG_SYNIC_SINT_INTERCEPT: hv_message_type = 2147483745;
1909pub const hv_message_type_HVMSG_SYNIC_SINT_DELIVERABLE: hv_message_type = 2147483746;
1910pub const hv_message_type_HVMSG_ASYNC_CALL_COMPLETION: hv_message_type = 2147483760;
1911pub const hv_message_type_HVMSG_SCHEDULER_VP_SIGNAL_BITSET: hv_message_type = 2147483904;
1912pub const hv_message_type_HVMSG_SCHEDULER_VP_SIGNAL_PAIR: hv_message_type = 2147483905;
1913pub const hv_message_type_HVMSG_X64_IO_PORT_INTERCEPT: hv_message_type = 2147549184;
1914pub const hv_message_type_HVMSG_X64_MSR_INTERCEPT: hv_message_type = 2147549185;
1915pub const hv_message_type_HVMSG_X64_CPUID_INTERCEPT: hv_message_type = 2147549186;
1916pub const hv_message_type_HVMSG_X64_EXCEPTION_INTERCEPT: hv_message_type = 2147549187;
1917pub const hv_message_type_HVMSG_X64_APIC_EOI: hv_message_type = 2147549188;
1918pub const hv_message_type_HVMSG_X64_LEGACY_FP_ERROR: hv_message_type = 2147549189;
1919pub const hv_message_type_HVMSG_X64_IOMMU_PRQ: hv_message_type = 2147549190;
1920pub const hv_message_type_HVMSG_X64_HALT: hv_message_type = 2147549191;
1921pub const hv_message_type_HVMSG_X64_INTERRUPTION_DELIVERABLE: hv_message_type = 2147549192;
1922pub const hv_message_type_HVMSG_X64_SIPI_INTERCEPT: hv_message_type = 2147549193;
1923pub const hv_message_type_HVMSG_ARM64_RESET_INTERCEPT: hv_message_type = 2147549196;
1924pub const hv_message_type_HVMSG_X64_SEV_VMGEXIT_INTERCEPT: hv_message_type = 2147549203;
1925pub type hv_message_type = ::std::os::raw::c_uint;
1926#[repr(C)]
1927#[derive(Copy, Clone)]
1928pub union hv_message_flags {
1929 pub asu8: __u8,
1930 pub __bindgen_anon_1: hv_message_flags__bindgen_ty_1,
1931}
1932#[repr(C, packed)]
1933#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
1934pub struct hv_message_flags__bindgen_ty_1 {
1935 pub _bitfield_align_1: [u8; 0],
1936 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1937}
1938#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1939const _: () = {
1940 ["Size of hv_message_flags__bindgen_ty_1"]
1941 [::std::mem::size_of::<hv_message_flags__bindgen_ty_1>() - 1usize];
1942 ["Alignment of hv_message_flags__bindgen_ty_1"]
1943 [::std::mem::align_of::<hv_message_flags__bindgen_ty_1>() - 1usize];
1944};
1945impl hv_message_flags__bindgen_ty_1 {
1946 #[inline]
1947 pub fn msg_pending(&self) -> __u8 {
1948 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
1949 }
1950 #[inline]
1951 pub fn set_msg_pending(&mut self, val: __u8) {
1952 unsafe {
1953 let val: u8 = ::std::mem::transmute(val);
1954 self._bitfield_1.set(0usize, 1u8, val as u64)
1955 }
1956 }
1957 #[inline]
1958 pub unsafe fn msg_pending_raw(this: *const Self) -> __u8 {
1959 unsafe {
1960 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1961 ::std::ptr::addr_of!((*this)._bitfield_1),
1962 0usize,
1963 1u8,
1964 ) as u8)
1965 }
1966 }
1967 #[inline]
1968 pub unsafe fn set_msg_pending_raw(this: *mut Self, val: __u8) {
1969 unsafe {
1970 let val: u8 = ::std::mem::transmute(val);
1971 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1972 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1973 0usize,
1974 1u8,
1975 val as u64,
1976 )
1977 }
1978 }
1979 #[inline]
1980 pub fn reserved(&self) -> __u8 {
1981 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) }
1982 }
1983 #[inline]
1984 pub fn set_reserved(&mut self, val: __u8) {
1985 unsafe {
1986 let val: u8 = ::std::mem::transmute(val);
1987 self._bitfield_1.set(1usize, 7u8, val as u64)
1988 }
1989 }
1990 #[inline]
1991 pub unsafe fn reserved_raw(this: *const Self) -> __u8 {
1992 unsafe {
1993 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1994 ::std::ptr::addr_of!((*this)._bitfield_1),
1995 1usize,
1996 7u8,
1997 ) as u8)
1998 }
1999 }
2000 #[inline]
2001 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u8) {
2002 unsafe {
2003 let val: u8 = ::std::mem::transmute(val);
2004 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2005 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2006 1usize,
2007 7u8,
2008 val as u64,
2009 )
2010 }
2011 }
2012 #[inline]
2013 pub fn new_bitfield_1(
2014 msg_pending: __u8,
2015 reserved: __u8,
2016 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2017 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2018 __bindgen_bitfield_unit.set(0usize, 1u8, {
2019 let msg_pending: u8 = unsafe { ::std::mem::transmute(msg_pending) };
2020 msg_pending as u64
2021 });
2022 __bindgen_bitfield_unit.set(1usize, 7u8, {
2023 let reserved: u8 = unsafe { ::std::mem::transmute(reserved) };
2024 reserved as u64
2025 });
2026 __bindgen_bitfield_unit
2027 }
2028}
2029#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2030const _: () = {
2031 ["Size of hv_message_flags"][::std::mem::size_of::<hv_message_flags>() - 1usize];
2032 ["Alignment of hv_message_flags"][::std::mem::align_of::<hv_message_flags>() - 1usize];
2033 ["Offset of field: hv_message_flags::asu8"]
2034 [::std::mem::offset_of!(hv_message_flags, asu8) - 0usize];
2035};
2036impl Default for hv_message_flags {
2037 fn default() -> Self {
2038 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2039 unsafe {
2040 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2041 s.assume_init()
2042 }
2043 }
2044}
2045#[repr(C, packed)]
2046#[derive(Copy, Clone)]
2047pub struct hv_message_header {
2048 pub message_type: __u32,
2049 pub payload_size: __u8,
2050 pub message_flags: hv_message_flags,
2051 pub reserved: [__u8; 2usize],
2052 pub __bindgen_anon_1: hv_message_header__bindgen_ty_1,
2053}
2054#[repr(C)]
2055#[derive(Copy, Clone)]
2056pub union hv_message_header__bindgen_ty_1 {
2057 pub sender: __u64,
2058 pub port: hv_port_id,
2059}
2060#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2061const _: () = {
2062 ["Size of hv_message_header__bindgen_ty_1"]
2063 [::std::mem::size_of::<hv_message_header__bindgen_ty_1>() - 8usize];
2064 ["Alignment of hv_message_header__bindgen_ty_1"]
2065 [::std::mem::align_of::<hv_message_header__bindgen_ty_1>() - 8usize];
2066 ["Offset of field: hv_message_header__bindgen_ty_1::sender"]
2067 [::std::mem::offset_of!(hv_message_header__bindgen_ty_1, sender) - 0usize];
2068 ["Offset of field: hv_message_header__bindgen_ty_1::port"]
2069 [::std::mem::offset_of!(hv_message_header__bindgen_ty_1, port) - 0usize];
2070};
2071impl Default for hv_message_header__bindgen_ty_1 {
2072 fn default() -> Self {
2073 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2074 unsafe {
2075 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2076 s.assume_init()
2077 }
2078 }
2079}
2080#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2081const _: () = {
2082 ["Size of hv_message_header"][::std::mem::size_of::<hv_message_header>() - 16usize];
2083 ["Alignment of hv_message_header"][::std::mem::align_of::<hv_message_header>() - 1usize];
2084 ["Offset of field: hv_message_header::message_type"]
2085 [::std::mem::offset_of!(hv_message_header, message_type) - 0usize];
2086 ["Offset of field: hv_message_header::payload_size"]
2087 [::std::mem::offset_of!(hv_message_header, payload_size) - 4usize];
2088 ["Offset of field: hv_message_header::message_flags"]
2089 [::std::mem::offset_of!(hv_message_header, message_flags) - 5usize];
2090 ["Offset of field: hv_message_header::reserved"]
2091 [::std::mem::offset_of!(hv_message_header, reserved) - 6usize];
2092};
2093impl Default for hv_message_header {
2094 fn default() -> Self {
2095 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2096 unsafe {
2097 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2098 s.assume_init()
2099 }
2100 }
2101}
2102#[repr(C, packed)]
2103#[derive(Copy, Clone)]
2104pub struct hv_message {
2105 pub header: hv_message_header,
2106 pub u: hv_message__bindgen_ty_1,
2107}
2108#[repr(C)]
2109#[derive(Copy, Clone)]
2110pub union hv_message__bindgen_ty_1 {
2111 pub payload: [__u64; 30usize],
2112}
2113#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2114const _: () = {
2115 ["Size of hv_message__bindgen_ty_1"]
2116 [::std::mem::size_of::<hv_message__bindgen_ty_1>() - 240usize];
2117 ["Alignment of hv_message__bindgen_ty_1"]
2118 [::std::mem::align_of::<hv_message__bindgen_ty_1>() - 8usize];
2119 ["Offset of field: hv_message__bindgen_ty_1::payload"]
2120 [::std::mem::offset_of!(hv_message__bindgen_ty_1, payload) - 0usize];
2121};
2122impl Default for hv_message__bindgen_ty_1 {
2123 fn default() -> Self {
2124 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2125 unsafe {
2126 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2127 s.assume_init()
2128 }
2129 }
2130}
2131#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2132const _: () = {
2133 ["Size of hv_message"][::std::mem::size_of::<hv_message>() - 256usize];
2134 ["Alignment of hv_message"][::std::mem::align_of::<hv_message>() - 1usize];
2135 ["Offset of field: hv_message::header"][::std::mem::offset_of!(hv_message, header) - 0usize];
2136 ["Offset of field: hv_message::u"][::std::mem::offset_of!(hv_message, u) - 16usize];
2137};
2138impl Default for hv_message {
2139 fn default() -> Self {
2140 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2141 unsafe {
2142 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2143 s.assume_init()
2144 }
2145 }
2146}
2147#[repr(C, packed)]
2148#[derive(Copy, Clone)]
2149pub struct hv_x64_segment_register {
2150 pub base: __u64,
2151 pub limit: __u32,
2152 pub selector: __u16,
2153 pub __bindgen_anon_1: hv_x64_segment_register__bindgen_ty_1,
2154}
2155#[repr(C)]
2156#[derive(Copy, Clone)]
2157pub union hv_x64_segment_register__bindgen_ty_1 {
2158 pub __bindgen_anon_1: hv_x64_segment_register__bindgen_ty_1__bindgen_ty_1,
2159 pub attributes: __u16,
2160}
2161#[repr(C, packed)]
2162#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
2163pub struct hv_x64_segment_register__bindgen_ty_1__bindgen_ty_1 {
2164 pub _bitfield_align_1: [u8; 0],
2165 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2166}
2167#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2168const _: () = {
2169 ["Size of hv_x64_segment_register__bindgen_ty_1__bindgen_ty_1"]
2170 [::std::mem::size_of::<hv_x64_segment_register__bindgen_ty_1__bindgen_ty_1>() - 2usize];
2171 ["Alignment of hv_x64_segment_register__bindgen_ty_1__bindgen_ty_1"]
2172 [::std::mem::align_of::<hv_x64_segment_register__bindgen_ty_1__bindgen_ty_1>() - 1usize];
2173};
2174impl hv_x64_segment_register__bindgen_ty_1__bindgen_ty_1 {
2175 #[inline]
2176 pub fn segment_type(&self) -> __u16 {
2177 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) }
2178 }
2179 #[inline]
2180 pub fn set_segment_type(&mut self, val: __u16) {
2181 unsafe {
2182 let val: u16 = ::std::mem::transmute(val);
2183 self._bitfield_1.set(0usize, 4u8, val as u64)
2184 }
2185 }
2186 #[inline]
2187 pub unsafe fn segment_type_raw(this: *const Self) -> __u16 {
2188 unsafe {
2189 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2190 ::std::ptr::addr_of!((*this)._bitfield_1),
2191 0usize,
2192 4u8,
2193 ) as u16)
2194 }
2195 }
2196 #[inline]
2197 pub unsafe fn set_segment_type_raw(this: *mut Self, val: __u16) {
2198 unsafe {
2199 let val: u16 = ::std::mem::transmute(val);
2200 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2201 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2202 0usize,
2203 4u8,
2204 val as u64,
2205 )
2206 }
2207 }
2208 #[inline]
2209 pub fn non_system_segment(&self) -> __u16 {
2210 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) }
2211 }
2212 #[inline]
2213 pub fn set_non_system_segment(&mut self, val: __u16) {
2214 unsafe {
2215 let val: u16 = ::std::mem::transmute(val);
2216 self._bitfield_1.set(4usize, 1u8, val as u64)
2217 }
2218 }
2219 #[inline]
2220 pub unsafe fn non_system_segment_raw(this: *const Self) -> __u16 {
2221 unsafe {
2222 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2223 ::std::ptr::addr_of!((*this)._bitfield_1),
2224 4usize,
2225 1u8,
2226 ) as u16)
2227 }
2228 }
2229 #[inline]
2230 pub unsafe fn set_non_system_segment_raw(this: *mut Self, val: __u16) {
2231 unsafe {
2232 let val: u16 = ::std::mem::transmute(val);
2233 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2234 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2235 4usize,
2236 1u8,
2237 val as u64,
2238 )
2239 }
2240 }
2241 #[inline]
2242 pub fn descriptor_privilege_level(&self) -> __u16 {
2243 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 2u8) as u16) }
2244 }
2245 #[inline]
2246 pub fn set_descriptor_privilege_level(&mut self, val: __u16) {
2247 unsafe {
2248 let val: u16 = ::std::mem::transmute(val);
2249 self._bitfield_1.set(5usize, 2u8, val as u64)
2250 }
2251 }
2252 #[inline]
2253 pub unsafe fn descriptor_privilege_level_raw(this: *const Self) -> __u16 {
2254 unsafe {
2255 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2256 ::std::ptr::addr_of!((*this)._bitfield_1),
2257 5usize,
2258 2u8,
2259 ) as u16)
2260 }
2261 }
2262 #[inline]
2263 pub unsafe fn set_descriptor_privilege_level_raw(this: *mut Self, val: __u16) {
2264 unsafe {
2265 let val: u16 = ::std::mem::transmute(val);
2266 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2267 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2268 5usize,
2269 2u8,
2270 val as u64,
2271 )
2272 }
2273 }
2274 #[inline]
2275 pub fn present(&self) -> __u16 {
2276 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) }
2277 }
2278 #[inline]
2279 pub fn set_present(&mut self, val: __u16) {
2280 unsafe {
2281 let val: u16 = ::std::mem::transmute(val);
2282 self._bitfield_1.set(7usize, 1u8, val as u64)
2283 }
2284 }
2285 #[inline]
2286 pub unsafe fn present_raw(this: *const Self) -> __u16 {
2287 unsafe {
2288 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2289 ::std::ptr::addr_of!((*this)._bitfield_1),
2290 7usize,
2291 1u8,
2292 ) as u16)
2293 }
2294 }
2295 #[inline]
2296 pub unsafe fn set_present_raw(this: *mut Self, val: __u16) {
2297 unsafe {
2298 let val: u16 = ::std::mem::transmute(val);
2299 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2300 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2301 7usize,
2302 1u8,
2303 val as u64,
2304 )
2305 }
2306 }
2307 #[inline]
2308 pub fn reserved(&self) -> __u16 {
2309 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u16) }
2310 }
2311 #[inline]
2312 pub fn set_reserved(&mut self, val: __u16) {
2313 unsafe {
2314 let val: u16 = ::std::mem::transmute(val);
2315 self._bitfield_1.set(8usize, 4u8, val as u64)
2316 }
2317 }
2318 #[inline]
2319 pub unsafe fn reserved_raw(this: *const Self) -> __u16 {
2320 unsafe {
2321 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2322 ::std::ptr::addr_of!((*this)._bitfield_1),
2323 8usize,
2324 4u8,
2325 ) as u16)
2326 }
2327 }
2328 #[inline]
2329 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) {
2330 unsafe {
2331 let val: u16 = ::std::mem::transmute(val);
2332 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2333 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2334 8usize,
2335 4u8,
2336 val as u64,
2337 )
2338 }
2339 }
2340 #[inline]
2341 pub fn available(&self) -> __u16 {
2342 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) }
2343 }
2344 #[inline]
2345 pub fn set_available(&mut self, val: __u16) {
2346 unsafe {
2347 let val: u16 = ::std::mem::transmute(val);
2348 self._bitfield_1.set(12usize, 1u8, val as u64)
2349 }
2350 }
2351 #[inline]
2352 pub unsafe fn available_raw(this: *const Self) -> __u16 {
2353 unsafe {
2354 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2355 ::std::ptr::addr_of!((*this)._bitfield_1),
2356 12usize,
2357 1u8,
2358 ) as u16)
2359 }
2360 }
2361 #[inline]
2362 pub unsafe fn set_available_raw(this: *mut Self, val: __u16) {
2363 unsafe {
2364 let val: u16 = ::std::mem::transmute(val);
2365 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2366 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2367 12usize,
2368 1u8,
2369 val as u64,
2370 )
2371 }
2372 }
2373 #[inline]
2374 pub fn _long(&self) -> __u16 {
2375 unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) }
2376 }
2377 #[inline]
2378 pub fn set__long(&mut self, val: __u16) {
2379 unsafe {
2380 let val: u16 = ::std::mem::transmute(val);
2381 self._bitfield_1.set(13usize, 1u8, val as u64)
2382 }
2383 }
2384 #[inline]
2385 pub unsafe fn _long_raw(this: *const Self) -> __u16 {
2386 unsafe {
2387 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2388 ::std::ptr::addr_of!((*this)._bitfield_1),
2389 13usize,
2390 1u8,
2391 ) as u16)
2392 }
2393 }
2394 #[inline]
2395 pub unsafe fn set__long_raw(this: *mut Self, val: __u16) {
2396 unsafe {
2397 let val: u16 = ::std::mem::transmute(val);
2398 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2399 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2400 13usize,
2401 1u8,
2402 val as u64,
2403 )
2404 }
2405 }
2406 #[inline]
2407 pub fn _default(&self) -> __u16 {
2408 unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) }
2409 }
2410 #[inline]
2411 pub fn set__default(&mut self, val: __u16) {
2412 unsafe {
2413 let val: u16 = ::std::mem::transmute(val);
2414 self._bitfield_1.set(14usize, 1u8, val as u64)
2415 }
2416 }
2417 #[inline]
2418 pub unsafe fn _default_raw(this: *const Self) -> __u16 {
2419 unsafe {
2420 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2421 ::std::ptr::addr_of!((*this)._bitfield_1),
2422 14usize,
2423 1u8,
2424 ) as u16)
2425 }
2426 }
2427 #[inline]
2428 pub unsafe fn set__default_raw(this: *mut Self, val: __u16) {
2429 unsafe {
2430 let val: u16 = ::std::mem::transmute(val);
2431 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2432 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2433 14usize,
2434 1u8,
2435 val as u64,
2436 )
2437 }
2438 }
2439 #[inline]
2440 pub fn granularity(&self) -> __u16 {
2441 unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) }
2442 }
2443 #[inline]
2444 pub fn set_granularity(&mut self, val: __u16) {
2445 unsafe {
2446 let val: u16 = ::std::mem::transmute(val);
2447 self._bitfield_1.set(15usize, 1u8, val as u64)
2448 }
2449 }
2450 #[inline]
2451 pub unsafe fn granularity_raw(this: *const Self) -> __u16 {
2452 unsafe {
2453 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2454 ::std::ptr::addr_of!((*this)._bitfield_1),
2455 15usize,
2456 1u8,
2457 ) as u16)
2458 }
2459 }
2460 #[inline]
2461 pub unsafe fn set_granularity_raw(this: *mut Self, val: __u16) {
2462 unsafe {
2463 let val: u16 = ::std::mem::transmute(val);
2464 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2465 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2466 15usize,
2467 1u8,
2468 val as u64,
2469 )
2470 }
2471 }
2472 #[inline]
2473 pub fn new_bitfield_1(
2474 segment_type: __u16,
2475 non_system_segment: __u16,
2476 descriptor_privilege_level: __u16,
2477 present: __u16,
2478 reserved: __u16,
2479 available: __u16,
2480 _long: __u16,
2481 _default: __u16,
2482 granularity: __u16,
2483 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2484 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2485 __bindgen_bitfield_unit.set(0usize, 4u8, {
2486 let segment_type: u16 = unsafe { ::std::mem::transmute(segment_type) };
2487 segment_type as u64
2488 });
2489 __bindgen_bitfield_unit.set(4usize, 1u8, {
2490 let non_system_segment: u16 = unsafe { ::std::mem::transmute(non_system_segment) };
2491 non_system_segment as u64
2492 });
2493 __bindgen_bitfield_unit.set(5usize, 2u8, {
2494 let descriptor_privilege_level: u16 =
2495 unsafe { ::std::mem::transmute(descriptor_privilege_level) };
2496 descriptor_privilege_level as u64
2497 });
2498 __bindgen_bitfield_unit.set(7usize, 1u8, {
2499 let present: u16 = unsafe { ::std::mem::transmute(present) };
2500 present as u64
2501 });
2502 __bindgen_bitfield_unit.set(8usize, 4u8, {
2503 let reserved: u16 = unsafe { ::std::mem::transmute(reserved) };
2504 reserved as u64
2505 });
2506 __bindgen_bitfield_unit.set(12usize, 1u8, {
2507 let available: u16 = unsafe { ::std::mem::transmute(available) };
2508 available as u64
2509 });
2510 __bindgen_bitfield_unit.set(13usize, 1u8, {
2511 let _long: u16 = unsafe { ::std::mem::transmute(_long) };
2512 _long as u64
2513 });
2514 __bindgen_bitfield_unit.set(14usize, 1u8, {
2515 let _default: u16 = unsafe { ::std::mem::transmute(_default) };
2516 _default as u64
2517 });
2518 __bindgen_bitfield_unit.set(15usize, 1u8, {
2519 let granularity: u16 = unsafe { ::std::mem::transmute(granularity) };
2520 granularity as u64
2521 });
2522 __bindgen_bitfield_unit
2523 }
2524}
2525#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2526const _: () = {
2527 ["Size of hv_x64_segment_register__bindgen_ty_1"]
2528 [::std::mem::size_of::<hv_x64_segment_register__bindgen_ty_1>() - 2usize];
2529 ["Alignment of hv_x64_segment_register__bindgen_ty_1"]
2530 [::std::mem::align_of::<hv_x64_segment_register__bindgen_ty_1>() - 2usize];
2531 ["Offset of field: hv_x64_segment_register__bindgen_ty_1::attributes"]
2532 [::std::mem::offset_of!(hv_x64_segment_register__bindgen_ty_1, attributes) - 0usize];
2533};
2534impl Default for hv_x64_segment_register__bindgen_ty_1 {
2535 fn default() -> Self {
2536 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2537 unsafe {
2538 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2539 s.assume_init()
2540 }
2541 }
2542}
2543#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2544const _: () = {
2545 ["Size of hv_x64_segment_register"][::std::mem::size_of::<hv_x64_segment_register>() - 16usize];
2546 ["Alignment of hv_x64_segment_register"]
2547 [::std::mem::align_of::<hv_x64_segment_register>() - 1usize];
2548 ["Offset of field: hv_x64_segment_register::base"]
2549 [::std::mem::offset_of!(hv_x64_segment_register, base) - 0usize];
2550 ["Offset of field: hv_x64_segment_register::limit"]
2551 [::std::mem::offset_of!(hv_x64_segment_register, limit) - 8usize];
2552 ["Offset of field: hv_x64_segment_register::selector"]
2553 [::std::mem::offset_of!(hv_x64_segment_register, selector) - 12usize];
2554};
2555impl Default for hv_x64_segment_register {
2556 fn default() -> Self {
2557 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2558 unsafe {
2559 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2560 s.assume_init()
2561 }
2562 }
2563}
2564#[repr(C, packed)]
2565#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
2566pub struct hv_x64_table_register {
2567 pub pad: [__u16; 3usize],
2568 pub limit: __u16,
2569 pub base: __u64,
2570}
2571#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2572const _: () = {
2573 ["Size of hv_x64_table_register"][::std::mem::size_of::<hv_x64_table_register>() - 16usize];
2574 ["Alignment of hv_x64_table_register"]
2575 [::std::mem::align_of::<hv_x64_table_register>() - 1usize];
2576 ["Offset of field: hv_x64_table_register::pad"]
2577 [::std::mem::offset_of!(hv_x64_table_register, pad) - 0usize];
2578 ["Offset of field: hv_x64_table_register::limit"]
2579 [::std::mem::offset_of!(hv_x64_table_register, limit) - 6usize];
2580 ["Offset of field: hv_x64_table_register::base"]
2581 [::std::mem::offset_of!(hv_x64_table_register, base) - 8usize];
2582};
2583#[repr(C, packed)]
2584#[derive(Copy, Clone)]
2585pub union hv_x64_fp_control_status_register {
2586 pub as_uint128: hv_u128,
2587 pub __bindgen_anon_1: hv_x64_fp_control_status_register__bindgen_ty_1,
2588}
2589#[repr(C, packed)]
2590#[derive(Copy, Clone)]
2591pub struct hv_x64_fp_control_status_register__bindgen_ty_1 {
2592 pub fp_control: __u16,
2593 pub fp_status: __u16,
2594 pub fp_tag: __u8,
2595 pub reserved: __u8,
2596 pub last_fp_op: __u16,
2597 pub __bindgen_anon_1: hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1,
2598}
2599#[repr(C)]
2600#[derive(Copy, Clone)]
2601pub union hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1 {
2602 pub last_fp_rip: __u64,
2603 pub __bindgen_anon_1:
2604 hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
2605}
2606#[repr(C, packed)]
2607#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
2608pub struct hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
2609 pub last_fp_eip: __u32,
2610 pub last_fp_cs: __u16,
2611 pub padding: __u16,
2612}
2613#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2614const _: () = {
2615 ["Size of hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"]
2616 [::std::mem::size_of::<
2617 hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
2618 >() - 8usize];
2619 ["Alignment of hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"]
2620 [::std::mem::align_of::<
2621 hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
2622 >() - 1usize];
2623 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::last_fp_eip"] [:: std :: mem :: offset_of ! (hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , last_fp_eip) - 0usize] ;
2624 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::last_fp_cs"] [:: std :: mem :: offset_of ! (hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , last_fp_cs) - 4usize] ;
2625 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::padding"] [:: std :: mem :: offset_of ! (hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , padding) - 6usize] ;
2626};
2627#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2628const _: () = {
2629 ["Size of hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1"][::std::mem::size_of::<
2630 hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1,
2631 >() - 8usize];
2632 ["Alignment of hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1"]
2633 [::std::mem::align_of::<hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1>()
2634 - 8usize];
2635 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1::last_fp_rip"] [:: std :: mem :: offset_of ! (hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1 , last_fp_rip) - 0usize] ;
2636};
2637impl Default for hv_x64_fp_control_status_register__bindgen_ty_1__bindgen_ty_1 {
2638 fn default() -> Self {
2639 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2640 unsafe {
2641 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2642 s.assume_init()
2643 }
2644 }
2645}
2646#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2647const _: () = {
2648 ["Size of hv_x64_fp_control_status_register__bindgen_ty_1"]
2649 [::std::mem::size_of::<hv_x64_fp_control_status_register__bindgen_ty_1>() - 16usize];
2650 ["Alignment of hv_x64_fp_control_status_register__bindgen_ty_1"]
2651 [::std::mem::align_of::<hv_x64_fp_control_status_register__bindgen_ty_1>() - 1usize];
2652 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1::fp_control"][::std::mem::offset_of!(
2653 hv_x64_fp_control_status_register__bindgen_ty_1,
2654 fp_control
2655 ) - 0usize];
2656 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1::fp_status"][::std::mem::offset_of!(
2657 hv_x64_fp_control_status_register__bindgen_ty_1,
2658 fp_status
2659 ) - 2usize];
2660 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1::fp_tag"]
2661 [::std::mem::offset_of!(hv_x64_fp_control_status_register__bindgen_ty_1, fp_tag) - 4usize];
2662 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1::reserved"][::std::mem::offset_of!(
2663 hv_x64_fp_control_status_register__bindgen_ty_1,
2664 reserved
2665 ) - 5usize];
2666 ["Offset of field: hv_x64_fp_control_status_register__bindgen_ty_1::last_fp_op"][::std::mem::offset_of!(
2667 hv_x64_fp_control_status_register__bindgen_ty_1,
2668 last_fp_op
2669 ) - 6usize];
2670};
2671impl Default for hv_x64_fp_control_status_register__bindgen_ty_1 {
2672 fn default() -> Self {
2673 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2674 unsafe {
2675 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2676 s.assume_init()
2677 }
2678 }
2679}
2680#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2681const _: () = {
2682 ["Size of hv_x64_fp_control_status_register"]
2683 [::std::mem::size_of::<hv_x64_fp_control_status_register>() - 16usize];
2684 ["Alignment of hv_x64_fp_control_status_register"]
2685 [::std::mem::align_of::<hv_x64_fp_control_status_register>() - 1usize];
2686 ["Offset of field: hv_x64_fp_control_status_register::as_uint128"]
2687 [::std::mem::offset_of!(hv_x64_fp_control_status_register, as_uint128) - 0usize];
2688};
2689impl Default for hv_x64_fp_control_status_register {
2690 fn default() -> Self {
2691 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2692 unsafe {
2693 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2694 s.assume_init()
2695 }
2696 }
2697}
2698#[repr(C, packed)]
2699#[derive(Copy, Clone)]
2700pub union hv_x64_xmm_control_status_register {
2701 pub as_uint128: hv_u128,
2702 pub __bindgen_anon_1: hv_x64_xmm_control_status_register__bindgen_ty_1,
2703}
2704#[repr(C, packed)]
2705#[derive(Copy, Clone)]
2706pub struct hv_x64_xmm_control_status_register__bindgen_ty_1 {
2707 pub __bindgen_anon_1: hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1,
2708 pub xmm_status_control: __u32,
2709 pub xmm_status_control_mask: __u32,
2710}
2711#[repr(C)]
2712#[derive(Copy, Clone)]
2713pub union hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1 {
2714 pub last_fp_rdp: __u64,
2715 pub __bindgen_anon_1:
2716 hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
2717}
2718#[repr(C, packed)]
2719#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
2720pub struct hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
2721 pub last_fp_dp: __u32,
2722 pub last_fp_ds: __u16,
2723 pub padding: __u16,
2724}
2725#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2726const _: () = {
2727 ["Size of hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"]
2728 [::std::mem::size_of::<
2729 hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
2730 >() - 8usize];
2731 ["Alignment of hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"]
2732 [::std::mem::align_of::<
2733 hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
2734 >() - 1usize];
2735 ["Offset of field: hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::last_fp_dp"] [:: std :: mem :: offset_of ! (hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , last_fp_dp) - 0usize] ;
2736 ["Offset of field: hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::last_fp_ds"] [:: std :: mem :: offset_of ! (hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , last_fp_ds) - 4usize] ;
2737 ["Offset of field: hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::padding"] [:: std :: mem :: offset_of ! (hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , padding) - 6usize] ;
2738};
2739#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2740const _: () = {
2741 ["Size of hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1"][::std::mem::size_of::<
2742 hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1,
2743 >() - 8usize];
2744 ["Alignment of hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1"]
2745 [::std::mem::align_of::<hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1>()
2746 - 8usize];
2747 ["Offset of field: hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1::last_fp_rdp"] [:: std :: mem :: offset_of ! (hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1 , last_fp_rdp) - 0usize] ;
2748};
2749impl Default for hv_x64_xmm_control_status_register__bindgen_ty_1__bindgen_ty_1 {
2750 fn default() -> Self {
2751 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2752 unsafe {
2753 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2754 s.assume_init()
2755 }
2756 }
2757}
2758#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2759const _: () = {
2760 ["Size of hv_x64_xmm_control_status_register__bindgen_ty_1"]
2761 [::std::mem::size_of::<hv_x64_xmm_control_status_register__bindgen_ty_1>() - 16usize];
2762 ["Alignment of hv_x64_xmm_control_status_register__bindgen_ty_1"]
2763 [::std::mem::align_of::<hv_x64_xmm_control_status_register__bindgen_ty_1>() - 1usize];
2764 ["Offset of field: hv_x64_xmm_control_status_register__bindgen_ty_1::xmm_status_control"][::std::mem::offset_of!(
2765 hv_x64_xmm_control_status_register__bindgen_ty_1,
2766 xmm_status_control
2767 )
2768 - 8usize];
2769 ["Offset of field: hv_x64_xmm_control_status_register__bindgen_ty_1::xmm_status_control_mask"] [:: std :: mem :: offset_of ! (hv_x64_xmm_control_status_register__bindgen_ty_1 , xmm_status_control_mask) - 12usize] ;
2770};
2771impl Default for hv_x64_xmm_control_status_register__bindgen_ty_1 {
2772 fn default() -> Self {
2773 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2774 unsafe {
2775 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2776 s.assume_init()
2777 }
2778 }
2779}
2780#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2781const _: () = {
2782 ["Size of hv_x64_xmm_control_status_register"]
2783 [::std::mem::size_of::<hv_x64_xmm_control_status_register>() - 16usize];
2784 ["Alignment of hv_x64_xmm_control_status_register"]
2785 [::std::mem::align_of::<hv_x64_xmm_control_status_register>() - 1usize];
2786 ["Offset of field: hv_x64_xmm_control_status_register::as_uint128"]
2787 [::std::mem::offset_of!(hv_x64_xmm_control_status_register, as_uint128) - 0usize];
2788};
2789impl Default for hv_x64_xmm_control_status_register {
2790 fn default() -> Self {
2791 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2792 unsafe {
2793 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2794 s.assume_init()
2795 }
2796 }
2797}
2798#[repr(C, packed)]
2799#[derive(Copy, Clone)]
2800pub union hv_x64_fp_register {
2801 pub as_uint128: hv_u128,
2802 pub __bindgen_anon_1: hv_x64_fp_register__bindgen_ty_1,
2803}
2804#[repr(C, packed)]
2805#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
2806pub struct hv_x64_fp_register__bindgen_ty_1 {
2807 pub mantissa: __u64,
2808 pub _bitfield_align_1: [u8; 0],
2809 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
2810}
2811#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2812const _: () = {
2813 ["Size of hv_x64_fp_register__bindgen_ty_1"]
2814 [::std::mem::size_of::<hv_x64_fp_register__bindgen_ty_1>() - 16usize];
2815 ["Alignment of hv_x64_fp_register__bindgen_ty_1"]
2816 [::std::mem::align_of::<hv_x64_fp_register__bindgen_ty_1>() - 1usize];
2817 ["Offset of field: hv_x64_fp_register__bindgen_ty_1::mantissa"]
2818 [::std::mem::offset_of!(hv_x64_fp_register__bindgen_ty_1, mantissa) - 0usize];
2819};
2820impl hv_x64_fp_register__bindgen_ty_1 {
2821 #[inline]
2822 pub fn biased_exponent(&self) -> __u64 {
2823 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 15u8) as u64) }
2824 }
2825 #[inline]
2826 pub fn set_biased_exponent(&mut self, val: __u64) {
2827 unsafe {
2828 let val: u64 = ::std::mem::transmute(val);
2829 self._bitfield_1.set(0usize, 15u8, val as u64)
2830 }
2831 }
2832 #[inline]
2833 pub unsafe fn biased_exponent_raw(this: *const Self) -> __u64 {
2834 unsafe {
2835 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
2836 ::std::ptr::addr_of!((*this)._bitfield_1),
2837 0usize,
2838 15u8,
2839 ) as u64)
2840 }
2841 }
2842 #[inline]
2843 pub unsafe fn set_biased_exponent_raw(this: *mut Self, val: __u64) {
2844 unsafe {
2845 let val: u64 = ::std::mem::transmute(val);
2846 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
2847 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2848 0usize,
2849 15u8,
2850 val as u64,
2851 )
2852 }
2853 }
2854 #[inline]
2855 pub fn sign(&self) -> __u64 {
2856 unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u64) }
2857 }
2858 #[inline]
2859 pub fn set_sign(&mut self, val: __u64) {
2860 unsafe {
2861 let val: u64 = ::std::mem::transmute(val);
2862 self._bitfield_1.set(15usize, 1u8, val as u64)
2863 }
2864 }
2865 #[inline]
2866 pub unsafe fn sign_raw(this: *const Self) -> __u64 {
2867 unsafe {
2868 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
2869 ::std::ptr::addr_of!((*this)._bitfield_1),
2870 15usize,
2871 1u8,
2872 ) as u64)
2873 }
2874 }
2875 #[inline]
2876 pub unsafe fn set_sign_raw(this: *mut Self, val: __u64) {
2877 unsafe {
2878 let val: u64 = ::std::mem::transmute(val);
2879 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
2880 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2881 15usize,
2882 1u8,
2883 val as u64,
2884 )
2885 }
2886 }
2887 #[inline]
2888 pub fn reserved(&self) -> __u64 {
2889 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 48u8) as u64) }
2890 }
2891 #[inline]
2892 pub fn set_reserved(&mut self, val: __u64) {
2893 unsafe {
2894 let val: u64 = ::std::mem::transmute(val);
2895 self._bitfield_1.set(16usize, 48u8, val as u64)
2896 }
2897 }
2898 #[inline]
2899 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
2900 unsafe {
2901 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
2902 ::std::ptr::addr_of!((*this)._bitfield_1),
2903 16usize,
2904 48u8,
2905 ) as u64)
2906 }
2907 }
2908 #[inline]
2909 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
2910 unsafe {
2911 let val: u64 = ::std::mem::transmute(val);
2912 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
2913 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2914 16usize,
2915 48u8,
2916 val as u64,
2917 )
2918 }
2919 }
2920 #[inline]
2921 pub fn new_bitfield_1(
2922 biased_exponent: __u64,
2923 sign: __u64,
2924 reserved: __u64,
2925 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
2926 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
2927 __bindgen_bitfield_unit.set(0usize, 15u8, {
2928 let biased_exponent: u64 = unsafe { ::std::mem::transmute(biased_exponent) };
2929 biased_exponent as u64
2930 });
2931 __bindgen_bitfield_unit.set(15usize, 1u8, {
2932 let sign: u64 = unsafe { ::std::mem::transmute(sign) };
2933 sign as u64
2934 });
2935 __bindgen_bitfield_unit.set(16usize, 48u8, {
2936 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
2937 reserved as u64
2938 });
2939 __bindgen_bitfield_unit
2940 }
2941}
2942#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2943const _: () = {
2944 ["Size of hv_x64_fp_register"][::std::mem::size_of::<hv_x64_fp_register>() - 16usize];
2945 ["Alignment of hv_x64_fp_register"][::std::mem::align_of::<hv_x64_fp_register>() - 1usize];
2946 ["Offset of field: hv_x64_fp_register::as_uint128"]
2947 [::std::mem::offset_of!(hv_x64_fp_register, as_uint128) - 0usize];
2948};
2949impl Default for hv_x64_fp_register {
2950 fn default() -> Self {
2951 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2952 unsafe {
2953 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2954 s.assume_init()
2955 }
2956 }
2957}
2958#[repr(C)]
2959#[derive(Copy, Clone)]
2960pub union hv_x64_msr_npiep_config_contents {
2961 pub as_uint64: __u64,
2962 pub __bindgen_anon_1: hv_x64_msr_npiep_config_contents__bindgen_ty_1,
2963}
2964#[repr(C, packed)]
2965#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
2966pub struct hv_x64_msr_npiep_config_contents__bindgen_ty_1 {
2967 pub _bitfield_align_1: [u8; 0],
2968 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
2969}
2970#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2971const _: () = {
2972 ["Size of hv_x64_msr_npiep_config_contents__bindgen_ty_1"]
2973 [::std::mem::size_of::<hv_x64_msr_npiep_config_contents__bindgen_ty_1>() - 8usize];
2974 ["Alignment of hv_x64_msr_npiep_config_contents__bindgen_ty_1"]
2975 [::std::mem::align_of::<hv_x64_msr_npiep_config_contents__bindgen_ty_1>() - 1usize];
2976};
2977impl hv_x64_msr_npiep_config_contents__bindgen_ty_1 {
2978 #[inline]
2979 pub fn prevents_gdt(&self) -> __u64 {
2980 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
2981 }
2982 #[inline]
2983 pub fn set_prevents_gdt(&mut self, val: __u64) {
2984 unsafe {
2985 let val: u64 = ::std::mem::transmute(val);
2986 self._bitfield_1.set(0usize, 1u8, val as u64)
2987 }
2988 }
2989 #[inline]
2990 pub unsafe fn prevents_gdt_raw(this: *const Self) -> __u64 {
2991 unsafe {
2992 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
2993 ::std::ptr::addr_of!((*this)._bitfield_1),
2994 0usize,
2995 1u8,
2996 ) as u64)
2997 }
2998 }
2999 #[inline]
3000 pub unsafe fn set_prevents_gdt_raw(this: *mut Self, val: __u64) {
3001 unsafe {
3002 let val: u64 = ::std::mem::transmute(val);
3003 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3004 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3005 0usize,
3006 1u8,
3007 val as u64,
3008 )
3009 }
3010 }
3011 #[inline]
3012 pub fn prevents_idt(&self) -> __u64 {
3013 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
3014 }
3015 #[inline]
3016 pub fn set_prevents_idt(&mut self, val: __u64) {
3017 unsafe {
3018 let val: u64 = ::std::mem::transmute(val);
3019 self._bitfield_1.set(1usize, 1u8, val as u64)
3020 }
3021 }
3022 #[inline]
3023 pub unsafe fn prevents_idt_raw(this: *const Self) -> __u64 {
3024 unsafe {
3025 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3026 ::std::ptr::addr_of!((*this)._bitfield_1),
3027 1usize,
3028 1u8,
3029 ) as u64)
3030 }
3031 }
3032 #[inline]
3033 pub unsafe fn set_prevents_idt_raw(this: *mut Self, val: __u64) {
3034 unsafe {
3035 let val: u64 = ::std::mem::transmute(val);
3036 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3037 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3038 1usize,
3039 1u8,
3040 val as u64,
3041 )
3042 }
3043 }
3044 #[inline]
3045 pub fn prevents_ldt(&self) -> __u64 {
3046 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
3047 }
3048 #[inline]
3049 pub fn set_prevents_ldt(&mut self, val: __u64) {
3050 unsafe {
3051 let val: u64 = ::std::mem::transmute(val);
3052 self._bitfield_1.set(2usize, 1u8, val as u64)
3053 }
3054 }
3055 #[inline]
3056 pub unsafe fn prevents_ldt_raw(this: *const Self) -> __u64 {
3057 unsafe {
3058 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3059 ::std::ptr::addr_of!((*this)._bitfield_1),
3060 2usize,
3061 1u8,
3062 ) as u64)
3063 }
3064 }
3065 #[inline]
3066 pub unsafe fn set_prevents_ldt_raw(this: *mut Self, val: __u64) {
3067 unsafe {
3068 let val: u64 = ::std::mem::transmute(val);
3069 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3070 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3071 2usize,
3072 1u8,
3073 val as u64,
3074 )
3075 }
3076 }
3077 #[inline]
3078 pub fn prevents_tr(&self) -> __u64 {
3079 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) }
3080 }
3081 #[inline]
3082 pub fn set_prevents_tr(&mut self, val: __u64) {
3083 unsafe {
3084 let val: u64 = ::std::mem::transmute(val);
3085 self._bitfield_1.set(3usize, 1u8, val as u64)
3086 }
3087 }
3088 #[inline]
3089 pub unsafe fn prevents_tr_raw(this: *const Self) -> __u64 {
3090 unsafe {
3091 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3092 ::std::ptr::addr_of!((*this)._bitfield_1),
3093 3usize,
3094 1u8,
3095 ) as u64)
3096 }
3097 }
3098 #[inline]
3099 pub unsafe fn set_prevents_tr_raw(this: *mut Self, val: __u64) {
3100 unsafe {
3101 let val: u64 = ::std::mem::transmute(val);
3102 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3103 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3104 3usize,
3105 1u8,
3106 val as u64,
3107 )
3108 }
3109 }
3110 #[inline]
3111 pub fn reserved(&self) -> __u64 {
3112 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 60u8) as u64) }
3113 }
3114 #[inline]
3115 pub fn set_reserved(&mut self, val: __u64) {
3116 unsafe {
3117 let val: u64 = ::std::mem::transmute(val);
3118 self._bitfield_1.set(4usize, 60u8, val as u64)
3119 }
3120 }
3121 #[inline]
3122 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
3123 unsafe {
3124 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3125 ::std::ptr::addr_of!((*this)._bitfield_1),
3126 4usize,
3127 60u8,
3128 ) as u64)
3129 }
3130 }
3131 #[inline]
3132 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
3133 unsafe {
3134 let val: u64 = ::std::mem::transmute(val);
3135 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3136 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3137 4usize,
3138 60u8,
3139 val as u64,
3140 )
3141 }
3142 }
3143 #[inline]
3144 pub fn new_bitfield_1(
3145 prevents_gdt: __u64,
3146 prevents_idt: __u64,
3147 prevents_ldt: __u64,
3148 prevents_tr: __u64,
3149 reserved: __u64,
3150 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
3151 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
3152 __bindgen_bitfield_unit.set(0usize, 1u8, {
3153 let prevents_gdt: u64 = unsafe { ::std::mem::transmute(prevents_gdt) };
3154 prevents_gdt as u64
3155 });
3156 __bindgen_bitfield_unit.set(1usize, 1u8, {
3157 let prevents_idt: u64 = unsafe { ::std::mem::transmute(prevents_idt) };
3158 prevents_idt as u64
3159 });
3160 __bindgen_bitfield_unit.set(2usize, 1u8, {
3161 let prevents_ldt: u64 = unsafe { ::std::mem::transmute(prevents_ldt) };
3162 prevents_ldt as u64
3163 });
3164 __bindgen_bitfield_unit.set(3usize, 1u8, {
3165 let prevents_tr: u64 = unsafe { ::std::mem::transmute(prevents_tr) };
3166 prevents_tr as u64
3167 });
3168 __bindgen_bitfield_unit.set(4usize, 60u8, {
3169 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
3170 reserved as u64
3171 });
3172 __bindgen_bitfield_unit
3173 }
3174}
3175#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3176const _: () = {
3177 ["Size of hv_x64_msr_npiep_config_contents"]
3178 [::std::mem::size_of::<hv_x64_msr_npiep_config_contents>() - 8usize];
3179 ["Alignment of hv_x64_msr_npiep_config_contents"]
3180 [::std::mem::align_of::<hv_x64_msr_npiep_config_contents>() - 8usize];
3181 ["Offset of field: hv_x64_msr_npiep_config_contents::as_uint64"]
3182 [::std::mem::offset_of!(hv_x64_msr_npiep_config_contents, as_uint64) - 0usize];
3183};
3184impl Default for hv_x64_msr_npiep_config_contents {
3185 fn default() -> Self {
3186 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3187 unsafe {
3188 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3189 s.assume_init()
3190 }
3191 }
3192}
3193#[repr(C, packed)]
3194#[derive(Copy, Clone)]
3195pub union hv_input_vtl {
3196 pub as_uint8: __u8,
3197 pub __bindgen_anon_1: hv_input_vtl__bindgen_ty_1,
3198}
3199#[repr(C)]
3200#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
3201pub struct hv_input_vtl__bindgen_ty_1 {
3202 pub _bitfield_align_1: [u8; 0],
3203 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
3204}
3205#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3206const _: () = {
3207 ["Size of hv_input_vtl__bindgen_ty_1"]
3208 [::std::mem::size_of::<hv_input_vtl__bindgen_ty_1>() - 1usize];
3209 ["Alignment of hv_input_vtl__bindgen_ty_1"]
3210 [::std::mem::align_of::<hv_input_vtl__bindgen_ty_1>() - 1usize];
3211};
3212impl hv_input_vtl__bindgen_ty_1 {
3213 #[inline]
3214 pub fn target_vtl(&self) -> __u8 {
3215 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
3216 }
3217 #[inline]
3218 pub fn set_target_vtl(&mut self, val: __u8) {
3219 unsafe {
3220 let val: u8 = ::std::mem::transmute(val);
3221 self._bitfield_1.set(0usize, 4u8, val as u64)
3222 }
3223 }
3224 #[inline]
3225 pub unsafe fn target_vtl_raw(this: *const Self) -> __u8 {
3226 unsafe {
3227 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3228 ::std::ptr::addr_of!((*this)._bitfield_1),
3229 0usize,
3230 4u8,
3231 ) as u8)
3232 }
3233 }
3234 #[inline]
3235 pub unsafe fn set_target_vtl_raw(this: *mut Self, val: __u8) {
3236 unsafe {
3237 let val: u8 = ::std::mem::transmute(val);
3238 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3239 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3240 0usize,
3241 4u8,
3242 val as u64,
3243 )
3244 }
3245 }
3246 #[inline]
3247 pub fn use_target_vtl(&self) -> __u8 {
3248 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) }
3249 }
3250 #[inline]
3251 pub fn set_use_target_vtl(&mut self, val: __u8) {
3252 unsafe {
3253 let val: u8 = ::std::mem::transmute(val);
3254 self._bitfield_1.set(4usize, 1u8, val as u64)
3255 }
3256 }
3257 #[inline]
3258 pub unsafe fn use_target_vtl_raw(this: *const Self) -> __u8 {
3259 unsafe {
3260 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3261 ::std::ptr::addr_of!((*this)._bitfield_1),
3262 4usize,
3263 1u8,
3264 ) as u8)
3265 }
3266 }
3267 #[inline]
3268 pub unsafe fn set_use_target_vtl_raw(this: *mut Self, val: __u8) {
3269 unsafe {
3270 let val: u8 = ::std::mem::transmute(val);
3271 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3272 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3273 4usize,
3274 1u8,
3275 val as u64,
3276 )
3277 }
3278 }
3279 #[inline]
3280 pub fn reserved_z(&self) -> __u8 {
3281 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u8) }
3282 }
3283 #[inline]
3284 pub fn set_reserved_z(&mut self, val: __u8) {
3285 unsafe {
3286 let val: u8 = ::std::mem::transmute(val);
3287 self._bitfield_1.set(5usize, 3u8, val as u64)
3288 }
3289 }
3290 #[inline]
3291 pub unsafe fn reserved_z_raw(this: *const Self) -> __u8 {
3292 unsafe {
3293 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
3294 ::std::ptr::addr_of!((*this)._bitfield_1),
3295 5usize,
3296 3u8,
3297 ) as u8)
3298 }
3299 }
3300 #[inline]
3301 pub unsafe fn set_reserved_z_raw(this: *mut Self, val: __u8) {
3302 unsafe {
3303 let val: u8 = ::std::mem::transmute(val);
3304 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
3305 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3306 5usize,
3307 3u8,
3308 val as u64,
3309 )
3310 }
3311 }
3312 #[inline]
3313 pub fn new_bitfield_1(
3314 target_vtl: __u8,
3315 use_target_vtl: __u8,
3316 reserved_z: __u8,
3317 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
3318 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
3319 __bindgen_bitfield_unit.set(0usize, 4u8, {
3320 let target_vtl: u8 = unsafe { ::std::mem::transmute(target_vtl) };
3321 target_vtl as u64
3322 });
3323 __bindgen_bitfield_unit.set(4usize, 1u8, {
3324 let use_target_vtl: u8 = unsafe { ::std::mem::transmute(use_target_vtl) };
3325 use_target_vtl as u64
3326 });
3327 __bindgen_bitfield_unit.set(5usize, 3u8, {
3328 let reserved_z: u8 = unsafe { ::std::mem::transmute(reserved_z) };
3329 reserved_z as u64
3330 });
3331 __bindgen_bitfield_unit
3332 }
3333}
3334#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3335const _: () = {
3336 ["Size of hv_input_vtl"][::std::mem::size_of::<hv_input_vtl>() - 1usize];
3337 ["Alignment of hv_input_vtl"][::std::mem::align_of::<hv_input_vtl>() - 1usize];
3338 ["Offset of field: hv_input_vtl::as_uint8"]
3339 [::std::mem::offset_of!(hv_input_vtl, as_uint8) - 0usize];
3340};
3341impl Default for hv_input_vtl {
3342 fn default() -> Self {
3343 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3344 unsafe {
3345 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3346 s.assume_init()
3347 }
3348 }
3349}
3350#[repr(C)]
3351#[derive(Copy, Clone)]
3352pub union hv_register_vsm_partition_config {
3353 pub as_u64: __u64,
3354 pub __bindgen_anon_1: hv_register_vsm_partition_config__bindgen_ty_1,
3355}
3356#[repr(C)]
3357#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
3358pub struct hv_register_vsm_partition_config__bindgen_ty_1 {
3359 pub _bitfield_align_1: [u64; 0],
3360 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
3361}
3362#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3363const _: () = {
3364 ["Size of hv_register_vsm_partition_config__bindgen_ty_1"]
3365 [::std::mem::size_of::<hv_register_vsm_partition_config__bindgen_ty_1>() - 8usize];
3366 ["Alignment of hv_register_vsm_partition_config__bindgen_ty_1"]
3367 [::std::mem::align_of::<hv_register_vsm_partition_config__bindgen_ty_1>() - 8usize];
3368};
3369impl hv_register_vsm_partition_config__bindgen_ty_1 {
3370 #[inline]
3371 pub fn enable_vtl_protection(&self) -> __u64 {
3372 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
3373 }
3374 #[inline]
3375 pub fn set_enable_vtl_protection(&mut self, val: __u64) {
3376 unsafe {
3377 let val: u64 = ::std::mem::transmute(val);
3378 self._bitfield_1.set(0usize, 1u8, val as u64)
3379 }
3380 }
3381 #[inline]
3382 pub unsafe fn enable_vtl_protection_raw(this: *const Self) -> __u64 {
3383 unsafe {
3384 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3385 ::std::ptr::addr_of!((*this)._bitfield_1),
3386 0usize,
3387 1u8,
3388 ) as u64)
3389 }
3390 }
3391 #[inline]
3392 pub unsafe fn set_enable_vtl_protection_raw(this: *mut Self, val: __u64) {
3393 unsafe {
3394 let val: u64 = ::std::mem::transmute(val);
3395 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3396 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3397 0usize,
3398 1u8,
3399 val as u64,
3400 )
3401 }
3402 }
3403 #[inline]
3404 pub fn default_vtl_protection_mask(&self) -> __u64 {
3405 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 4u8) as u64) }
3406 }
3407 #[inline]
3408 pub fn set_default_vtl_protection_mask(&mut self, val: __u64) {
3409 unsafe {
3410 let val: u64 = ::std::mem::transmute(val);
3411 self._bitfield_1.set(1usize, 4u8, val as u64)
3412 }
3413 }
3414 #[inline]
3415 pub unsafe fn default_vtl_protection_mask_raw(this: *const Self) -> __u64 {
3416 unsafe {
3417 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3418 ::std::ptr::addr_of!((*this)._bitfield_1),
3419 1usize,
3420 4u8,
3421 ) as u64)
3422 }
3423 }
3424 #[inline]
3425 pub unsafe fn set_default_vtl_protection_mask_raw(this: *mut Self, val: __u64) {
3426 unsafe {
3427 let val: u64 = ::std::mem::transmute(val);
3428 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3429 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3430 1usize,
3431 4u8,
3432 val as u64,
3433 )
3434 }
3435 }
3436 #[inline]
3437 pub fn zero_memory_on_reset(&self) -> __u64 {
3438 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
3439 }
3440 #[inline]
3441 pub fn set_zero_memory_on_reset(&mut self, val: __u64) {
3442 unsafe {
3443 let val: u64 = ::std::mem::transmute(val);
3444 self._bitfield_1.set(5usize, 1u8, val as u64)
3445 }
3446 }
3447 #[inline]
3448 pub unsafe fn zero_memory_on_reset_raw(this: *const Self) -> __u64 {
3449 unsafe {
3450 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3451 ::std::ptr::addr_of!((*this)._bitfield_1),
3452 5usize,
3453 1u8,
3454 ) as u64)
3455 }
3456 }
3457 #[inline]
3458 pub unsafe fn set_zero_memory_on_reset_raw(this: *mut Self, val: __u64) {
3459 unsafe {
3460 let val: u64 = ::std::mem::transmute(val);
3461 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3462 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3463 5usize,
3464 1u8,
3465 val as u64,
3466 )
3467 }
3468 }
3469 #[inline]
3470 pub fn deny_lower_vtl_startup(&self) -> __u64 {
3471 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u64) }
3472 }
3473 #[inline]
3474 pub fn set_deny_lower_vtl_startup(&mut self, val: __u64) {
3475 unsafe {
3476 let val: u64 = ::std::mem::transmute(val);
3477 self._bitfield_1.set(6usize, 1u8, val as u64)
3478 }
3479 }
3480 #[inline]
3481 pub unsafe fn deny_lower_vtl_startup_raw(this: *const Self) -> __u64 {
3482 unsafe {
3483 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3484 ::std::ptr::addr_of!((*this)._bitfield_1),
3485 6usize,
3486 1u8,
3487 ) as u64)
3488 }
3489 }
3490 #[inline]
3491 pub unsafe fn set_deny_lower_vtl_startup_raw(this: *mut Self, val: __u64) {
3492 unsafe {
3493 let val: u64 = ::std::mem::transmute(val);
3494 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3495 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3496 6usize,
3497 1u8,
3498 val as u64,
3499 )
3500 }
3501 }
3502 #[inline]
3503 pub fn intercept_acceptance(&self) -> __u64 {
3504 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u64) }
3505 }
3506 #[inline]
3507 pub fn set_intercept_acceptance(&mut self, val: __u64) {
3508 unsafe {
3509 let val: u64 = ::std::mem::transmute(val);
3510 self._bitfield_1.set(7usize, 1u8, val as u64)
3511 }
3512 }
3513 #[inline]
3514 pub unsafe fn intercept_acceptance_raw(this: *const Self) -> __u64 {
3515 unsafe {
3516 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3517 ::std::ptr::addr_of!((*this)._bitfield_1),
3518 7usize,
3519 1u8,
3520 ) as u64)
3521 }
3522 }
3523 #[inline]
3524 pub unsafe fn set_intercept_acceptance_raw(this: *mut Self, val: __u64) {
3525 unsafe {
3526 let val: u64 = ::std::mem::transmute(val);
3527 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3528 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3529 7usize,
3530 1u8,
3531 val as u64,
3532 )
3533 }
3534 }
3535 #[inline]
3536 pub fn intercept_enable_vtl_protection(&self) -> __u64 {
3537 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u64) }
3538 }
3539 #[inline]
3540 pub fn set_intercept_enable_vtl_protection(&mut self, val: __u64) {
3541 unsafe {
3542 let val: u64 = ::std::mem::transmute(val);
3543 self._bitfield_1.set(8usize, 1u8, val as u64)
3544 }
3545 }
3546 #[inline]
3547 pub unsafe fn intercept_enable_vtl_protection_raw(this: *const Self) -> __u64 {
3548 unsafe {
3549 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3550 ::std::ptr::addr_of!((*this)._bitfield_1),
3551 8usize,
3552 1u8,
3553 ) as u64)
3554 }
3555 }
3556 #[inline]
3557 pub unsafe fn set_intercept_enable_vtl_protection_raw(this: *mut Self, val: __u64) {
3558 unsafe {
3559 let val: u64 = ::std::mem::transmute(val);
3560 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3561 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3562 8usize,
3563 1u8,
3564 val as u64,
3565 )
3566 }
3567 }
3568 #[inline]
3569 pub fn intercept_vp_startup(&self) -> __u64 {
3570 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u64) }
3571 }
3572 #[inline]
3573 pub fn set_intercept_vp_startup(&mut self, val: __u64) {
3574 unsafe {
3575 let val: u64 = ::std::mem::transmute(val);
3576 self._bitfield_1.set(9usize, 1u8, val as u64)
3577 }
3578 }
3579 #[inline]
3580 pub unsafe fn intercept_vp_startup_raw(this: *const Self) -> __u64 {
3581 unsafe {
3582 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3583 ::std::ptr::addr_of!((*this)._bitfield_1),
3584 9usize,
3585 1u8,
3586 ) as u64)
3587 }
3588 }
3589 #[inline]
3590 pub unsafe fn set_intercept_vp_startup_raw(this: *mut Self, val: __u64) {
3591 unsafe {
3592 let val: u64 = ::std::mem::transmute(val);
3593 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3594 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3595 9usize,
3596 1u8,
3597 val as u64,
3598 )
3599 }
3600 }
3601 #[inline]
3602 pub fn intercept_cpuid_unimplemented(&self) -> __u64 {
3603 unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u64) }
3604 }
3605 #[inline]
3606 pub fn set_intercept_cpuid_unimplemented(&mut self, val: __u64) {
3607 unsafe {
3608 let val: u64 = ::std::mem::transmute(val);
3609 self._bitfield_1.set(10usize, 1u8, val as u64)
3610 }
3611 }
3612 #[inline]
3613 pub unsafe fn intercept_cpuid_unimplemented_raw(this: *const Self) -> __u64 {
3614 unsafe {
3615 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3616 ::std::ptr::addr_of!((*this)._bitfield_1),
3617 10usize,
3618 1u8,
3619 ) as u64)
3620 }
3621 }
3622 #[inline]
3623 pub unsafe fn set_intercept_cpuid_unimplemented_raw(this: *mut Self, val: __u64) {
3624 unsafe {
3625 let val: u64 = ::std::mem::transmute(val);
3626 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3627 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3628 10usize,
3629 1u8,
3630 val as u64,
3631 )
3632 }
3633 }
3634 #[inline]
3635 pub fn intercept_unrecoverable_exception(&self) -> __u64 {
3636 unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u64) }
3637 }
3638 #[inline]
3639 pub fn set_intercept_unrecoverable_exception(&mut self, val: __u64) {
3640 unsafe {
3641 let val: u64 = ::std::mem::transmute(val);
3642 self._bitfield_1.set(11usize, 1u8, val as u64)
3643 }
3644 }
3645 #[inline]
3646 pub unsafe fn intercept_unrecoverable_exception_raw(this: *const Self) -> __u64 {
3647 unsafe {
3648 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3649 ::std::ptr::addr_of!((*this)._bitfield_1),
3650 11usize,
3651 1u8,
3652 ) as u64)
3653 }
3654 }
3655 #[inline]
3656 pub unsafe fn set_intercept_unrecoverable_exception_raw(this: *mut Self, val: __u64) {
3657 unsafe {
3658 let val: u64 = ::std::mem::transmute(val);
3659 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3660 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3661 11usize,
3662 1u8,
3663 val as u64,
3664 )
3665 }
3666 }
3667 #[inline]
3668 pub fn intercept_page(&self) -> __u64 {
3669 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u64) }
3670 }
3671 #[inline]
3672 pub fn set_intercept_page(&mut self, val: __u64) {
3673 unsafe {
3674 let val: u64 = ::std::mem::transmute(val);
3675 self._bitfield_1.set(12usize, 1u8, val as u64)
3676 }
3677 }
3678 #[inline]
3679 pub unsafe fn intercept_page_raw(this: *const Self) -> __u64 {
3680 unsafe {
3681 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3682 ::std::ptr::addr_of!((*this)._bitfield_1),
3683 12usize,
3684 1u8,
3685 ) as u64)
3686 }
3687 }
3688 #[inline]
3689 pub unsafe fn set_intercept_page_raw(this: *mut Self, val: __u64) {
3690 unsafe {
3691 let val: u64 = ::std::mem::transmute(val);
3692 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3693 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3694 12usize,
3695 1u8,
3696 val as u64,
3697 )
3698 }
3699 }
3700 #[inline]
3701 pub fn intercept_restore_partition_time(&self) -> __u64 {
3702 unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u64) }
3703 }
3704 #[inline]
3705 pub fn set_intercept_restore_partition_time(&mut self, val: __u64) {
3706 unsafe {
3707 let val: u64 = ::std::mem::transmute(val);
3708 self._bitfield_1.set(13usize, 1u8, val as u64)
3709 }
3710 }
3711 #[inline]
3712 pub unsafe fn intercept_restore_partition_time_raw(this: *const Self) -> __u64 {
3713 unsafe {
3714 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3715 ::std::ptr::addr_of!((*this)._bitfield_1),
3716 13usize,
3717 1u8,
3718 ) as u64)
3719 }
3720 }
3721 #[inline]
3722 pub unsafe fn set_intercept_restore_partition_time_raw(this: *mut Self, val: __u64) {
3723 unsafe {
3724 let val: u64 = ::std::mem::transmute(val);
3725 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3726 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3727 13usize,
3728 1u8,
3729 val as u64,
3730 )
3731 }
3732 }
3733 #[inline]
3734 pub fn intercept_not_present(&self) -> __u64 {
3735 unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u64) }
3736 }
3737 #[inline]
3738 pub fn set_intercept_not_present(&mut self, val: __u64) {
3739 unsafe {
3740 let val: u64 = ::std::mem::transmute(val);
3741 self._bitfield_1.set(14usize, 1u8, val as u64)
3742 }
3743 }
3744 #[inline]
3745 pub unsafe fn intercept_not_present_raw(this: *const Self) -> __u64 {
3746 unsafe {
3747 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3748 ::std::ptr::addr_of!((*this)._bitfield_1),
3749 14usize,
3750 1u8,
3751 ) as u64)
3752 }
3753 }
3754 #[inline]
3755 pub unsafe fn set_intercept_not_present_raw(this: *mut Self, val: __u64) {
3756 unsafe {
3757 let val: u64 = ::std::mem::transmute(val);
3758 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3759 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3760 14usize,
3761 1u8,
3762 val as u64,
3763 )
3764 }
3765 }
3766 #[inline]
3767 pub fn mbz(&self) -> __u64 {
3768 unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 49u8) as u64) }
3769 }
3770 #[inline]
3771 pub fn set_mbz(&mut self, val: __u64) {
3772 unsafe {
3773 let val: u64 = ::std::mem::transmute(val);
3774 self._bitfield_1.set(15usize, 49u8, val as u64)
3775 }
3776 }
3777 #[inline]
3778 pub unsafe fn mbz_raw(this: *const Self) -> __u64 {
3779 unsafe {
3780 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3781 ::std::ptr::addr_of!((*this)._bitfield_1),
3782 15usize,
3783 49u8,
3784 ) as u64)
3785 }
3786 }
3787 #[inline]
3788 pub unsafe fn set_mbz_raw(this: *mut Self, val: __u64) {
3789 unsafe {
3790 let val: u64 = ::std::mem::transmute(val);
3791 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3792 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3793 15usize,
3794 49u8,
3795 val as u64,
3796 )
3797 }
3798 }
3799 #[inline]
3800 pub fn new_bitfield_1(
3801 enable_vtl_protection: __u64,
3802 default_vtl_protection_mask: __u64,
3803 zero_memory_on_reset: __u64,
3804 deny_lower_vtl_startup: __u64,
3805 intercept_acceptance: __u64,
3806 intercept_enable_vtl_protection: __u64,
3807 intercept_vp_startup: __u64,
3808 intercept_cpuid_unimplemented: __u64,
3809 intercept_unrecoverable_exception: __u64,
3810 intercept_page: __u64,
3811 intercept_restore_partition_time: __u64,
3812 intercept_not_present: __u64,
3813 mbz: __u64,
3814 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
3815 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
3816 __bindgen_bitfield_unit.set(0usize, 1u8, {
3817 let enable_vtl_protection: u64 =
3818 unsafe { ::std::mem::transmute(enable_vtl_protection) };
3819 enable_vtl_protection as u64
3820 });
3821 __bindgen_bitfield_unit.set(1usize, 4u8, {
3822 let default_vtl_protection_mask: u64 =
3823 unsafe { ::std::mem::transmute(default_vtl_protection_mask) };
3824 default_vtl_protection_mask as u64
3825 });
3826 __bindgen_bitfield_unit.set(5usize, 1u8, {
3827 let zero_memory_on_reset: u64 = unsafe { ::std::mem::transmute(zero_memory_on_reset) };
3828 zero_memory_on_reset as u64
3829 });
3830 __bindgen_bitfield_unit.set(6usize, 1u8, {
3831 let deny_lower_vtl_startup: u64 =
3832 unsafe { ::std::mem::transmute(deny_lower_vtl_startup) };
3833 deny_lower_vtl_startup as u64
3834 });
3835 __bindgen_bitfield_unit.set(7usize, 1u8, {
3836 let intercept_acceptance: u64 = unsafe { ::std::mem::transmute(intercept_acceptance) };
3837 intercept_acceptance as u64
3838 });
3839 __bindgen_bitfield_unit.set(8usize, 1u8, {
3840 let intercept_enable_vtl_protection: u64 =
3841 unsafe { ::std::mem::transmute(intercept_enable_vtl_protection) };
3842 intercept_enable_vtl_protection as u64
3843 });
3844 __bindgen_bitfield_unit.set(9usize, 1u8, {
3845 let intercept_vp_startup: u64 = unsafe { ::std::mem::transmute(intercept_vp_startup) };
3846 intercept_vp_startup as u64
3847 });
3848 __bindgen_bitfield_unit.set(10usize, 1u8, {
3849 let intercept_cpuid_unimplemented: u64 =
3850 unsafe { ::std::mem::transmute(intercept_cpuid_unimplemented) };
3851 intercept_cpuid_unimplemented as u64
3852 });
3853 __bindgen_bitfield_unit.set(11usize, 1u8, {
3854 let intercept_unrecoverable_exception: u64 =
3855 unsafe { ::std::mem::transmute(intercept_unrecoverable_exception) };
3856 intercept_unrecoverable_exception as u64
3857 });
3858 __bindgen_bitfield_unit.set(12usize, 1u8, {
3859 let intercept_page: u64 = unsafe { ::std::mem::transmute(intercept_page) };
3860 intercept_page as u64
3861 });
3862 __bindgen_bitfield_unit.set(13usize, 1u8, {
3863 let intercept_restore_partition_time: u64 =
3864 unsafe { ::std::mem::transmute(intercept_restore_partition_time) };
3865 intercept_restore_partition_time as u64
3866 });
3867 __bindgen_bitfield_unit.set(14usize, 1u8, {
3868 let intercept_not_present: u64 =
3869 unsafe { ::std::mem::transmute(intercept_not_present) };
3870 intercept_not_present as u64
3871 });
3872 __bindgen_bitfield_unit.set(15usize, 49u8, {
3873 let mbz: u64 = unsafe { ::std::mem::transmute(mbz) };
3874 mbz as u64
3875 });
3876 __bindgen_bitfield_unit
3877 }
3878}
3879#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3880const _: () = {
3881 ["Size of hv_register_vsm_partition_config"]
3882 [::std::mem::size_of::<hv_register_vsm_partition_config>() - 8usize];
3883 ["Alignment of hv_register_vsm_partition_config"]
3884 [::std::mem::align_of::<hv_register_vsm_partition_config>() - 8usize];
3885 ["Offset of field: hv_register_vsm_partition_config::as_u64"]
3886 [::std::mem::offset_of!(hv_register_vsm_partition_config, as_u64) - 0usize];
3887};
3888impl Default for hv_register_vsm_partition_config {
3889 fn default() -> Self {
3890 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3891 unsafe {
3892 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3893 s.assume_init()
3894 }
3895 }
3896}
3897pub const hv_register_name_HV_REGISTER_EXPLICIT_SUSPEND: hv_register_name = 0;
3898pub const hv_register_name_HV_REGISTER_INTERCEPT_SUSPEND: hv_register_name = 1;
3899pub const hv_register_name_HV_REGISTER_INSTRUCTION_EMULATION_HINTS: hv_register_name = 2;
3900pub const hv_register_name_HV_REGISTER_DISPATCH_SUSPEND: hv_register_name = 3;
3901pub const hv_register_name_HV_REGISTER_INTERNAL_ACTIVITY_STATE: hv_register_name = 4;
3902pub const hv_register_name_HV_REGISTER_HYPERVISOR_VERSION: hv_register_name = 256;
3903pub const hv_register_name_HV_REGISTER_PRIVILEGES_AND_FEATURES_INFO: hv_register_name = 512;
3904pub const hv_register_name_HV_REGISTER_FEATURES_INFO: hv_register_name = 513;
3905pub const hv_register_name_HV_REGISTER_IMPLEMENTATION_LIMITS_INFO: hv_register_name = 514;
3906pub const hv_register_name_HV_REGISTER_HARDWARE_FEATURES_INFO: hv_register_name = 515;
3907pub const hv_register_name_HV_REGISTER_CPU_MANAGEMENT_FEATURES_INFO: hv_register_name = 516;
3908pub const hv_register_name_HV_REGISTER_SVM_FEATURES_INFO: hv_register_name = 517;
3909pub const hv_register_name_HV_REGISTER_SKIP_LEVEL_FEATURES_INFO: hv_register_name = 518;
3910pub const hv_register_name_HV_REGISTER_NESTED_VIRT_FEATURES_INFO: hv_register_name = 519;
3911pub const hv_register_name_HV_REGISTER_IPT_FEATURES_INFO: hv_register_name = 520;
3912pub const hv_register_name_HV_REGISTER_GUEST_CRASH_P0: hv_register_name = 528;
3913pub const hv_register_name_HV_REGISTER_GUEST_CRASH_P1: hv_register_name = 529;
3914pub const hv_register_name_HV_REGISTER_GUEST_CRASH_P2: hv_register_name = 530;
3915pub const hv_register_name_HV_REGISTER_GUEST_CRASH_P3: hv_register_name = 531;
3916pub const hv_register_name_HV_REGISTER_GUEST_CRASH_P4: hv_register_name = 532;
3917pub const hv_register_name_HV_REGISTER_GUEST_CRASH_CTL: hv_register_name = 533;
3918pub const hv_register_name_HV_REGISTER_POWER_STATE_CONFIG_C1: hv_register_name = 544;
3919pub const hv_register_name_HV_REGISTER_POWER_STATE_TRIGGER_C1: hv_register_name = 545;
3920pub const hv_register_name_HV_REGISTER_POWER_STATE_CONFIG_C2: hv_register_name = 546;
3921pub const hv_register_name_HV_REGISTER_POWER_STATE_TRIGGER_C2: hv_register_name = 547;
3922pub const hv_register_name_HV_REGISTER_POWER_STATE_CONFIG_C3: hv_register_name = 548;
3923pub const hv_register_name_HV_REGISTER_POWER_STATE_TRIGGER_C3: hv_register_name = 549;
3924pub const hv_register_name_HV_REGISTER_PROCESSOR_CLOCK_FREQUENCY: hv_register_name = 576;
3925pub const hv_register_name_HV_REGISTER_INTERRUPT_CLOCK_FREQUENCY: hv_register_name = 577;
3926pub const hv_register_name_HV_REGISTER_GUEST_IDLE: hv_register_name = 592;
3927pub const hv_register_name_HV_REGISTER_DEBUG_DEVICE_OPTIONS: hv_register_name = 608;
3928pub const hv_register_name_HV_REGISTER_MEMORY_ZEROING_CONTROL: hv_register_name = 624;
3929pub const hv_register_name_HV_REGISTER_PENDING_EVENT0: hv_register_name = 65540;
3930pub const hv_register_name_HV_REGISTER_PENDING_EVENT1: hv_register_name = 65541;
3931pub const hv_register_name_HV_REGISTER_DELIVERABILITY_NOTIFICATIONS: hv_register_name = 65542;
3932pub const hv_register_name_HV_REGISTER_VP_RUNTIME: hv_register_name = 589824;
3933pub const hv_register_name_HV_REGISTER_GUEST_OS_ID: hv_register_name = 589826;
3934pub const hv_register_name_HV_REGISTER_VP_INDEX: hv_register_name = 589827;
3935pub const hv_register_name_HV_REGISTER_TIME_REF_COUNT: hv_register_name = 589828;
3936pub const hv_register_name_HV_REGISTER_CPU_MANAGEMENT_VERSION: hv_register_name = 589831;
3937pub const hv_register_name_HV_REGISTER_VP_ASSIST_PAGE: hv_register_name = 589843;
3938pub const hv_register_name_HV_REGISTER_VP_ROOT_SIGNAL_COUNT: hv_register_name = 589844;
3939pub const hv_register_name_HV_REGISTER_REFERENCE_TSC: hv_register_name = 589847;
3940pub const hv_register_name_HV_REGISTER_STATS_PARTITION_RETAIL: hv_register_name = 589856;
3941pub const hv_register_name_HV_REGISTER_STATS_PARTITION_INTERNAL: hv_register_name = 589857;
3942pub const hv_register_name_HV_REGISTER_STATS_VP_RETAIL: hv_register_name = 589858;
3943pub const hv_register_name_HV_REGISTER_STATS_VP_INTERNAL: hv_register_name = 589859;
3944pub const hv_register_name_HV_REGISTER_NESTED_VP_INDEX: hv_register_name = 593923;
3945pub const hv_register_name_HV_REGISTER_SINT0: hv_register_name = 655360;
3946pub const hv_register_name_HV_REGISTER_SINT1: hv_register_name = 655361;
3947pub const hv_register_name_HV_REGISTER_SINT2: hv_register_name = 655362;
3948pub const hv_register_name_HV_REGISTER_SINT3: hv_register_name = 655363;
3949pub const hv_register_name_HV_REGISTER_SINT4: hv_register_name = 655364;
3950pub const hv_register_name_HV_REGISTER_SINT5: hv_register_name = 655365;
3951pub const hv_register_name_HV_REGISTER_SINT6: hv_register_name = 655366;
3952pub const hv_register_name_HV_REGISTER_SINT7: hv_register_name = 655367;
3953pub const hv_register_name_HV_REGISTER_SINT8: hv_register_name = 655368;
3954pub const hv_register_name_HV_REGISTER_SINT9: hv_register_name = 655369;
3955pub const hv_register_name_HV_REGISTER_SINT10: hv_register_name = 655370;
3956pub const hv_register_name_HV_REGISTER_SINT11: hv_register_name = 655371;
3957pub const hv_register_name_HV_REGISTER_SINT12: hv_register_name = 655372;
3958pub const hv_register_name_HV_REGISTER_SINT13: hv_register_name = 655373;
3959pub const hv_register_name_HV_REGISTER_SINT14: hv_register_name = 655374;
3960pub const hv_register_name_HV_REGISTER_SINT15: hv_register_name = 655375;
3961pub const hv_register_name_HV_REGISTER_SCONTROL: hv_register_name = 655376;
3962pub const hv_register_name_HV_REGISTER_SVERSION: hv_register_name = 655377;
3963pub const hv_register_name_HV_REGISTER_SIEFP: hv_register_name = 655378;
3964pub const hv_register_name_HV_REGISTER_SIMP: hv_register_name = 655379;
3965pub const hv_register_name_HV_REGISTER_EOM: hv_register_name = 655380;
3966pub const hv_register_name_HV_REGISTER_SIRBP: hv_register_name = 655381;
3967pub const hv_register_name_HV_REGISTER_NESTED_SINT0: hv_register_name = 659456;
3968pub const hv_register_name_HV_REGISTER_NESTED_SINT1: hv_register_name = 659457;
3969pub const hv_register_name_HV_REGISTER_NESTED_SINT2: hv_register_name = 659458;
3970pub const hv_register_name_HV_REGISTER_NESTED_SINT3: hv_register_name = 659459;
3971pub const hv_register_name_HV_REGISTER_NESTED_SINT4: hv_register_name = 659460;
3972pub const hv_register_name_HV_REGISTER_NESTED_SINT5: hv_register_name = 659461;
3973pub const hv_register_name_HV_REGISTER_NESTED_SINT6: hv_register_name = 659462;
3974pub const hv_register_name_HV_REGISTER_NESTED_SINT7: hv_register_name = 659463;
3975pub const hv_register_name_HV_REGISTER_NESTED_SINT8: hv_register_name = 659464;
3976pub const hv_register_name_HV_REGISTER_NESTED_SINT9: hv_register_name = 659465;
3977pub const hv_register_name_HV_REGISTER_NESTED_SINT10: hv_register_name = 659466;
3978pub const hv_register_name_HV_REGISTER_NESTED_SINT11: hv_register_name = 659467;
3979pub const hv_register_name_HV_REGISTER_NESTED_SINT12: hv_register_name = 659468;
3980pub const hv_register_name_HV_REGISTER_NESTED_SINT13: hv_register_name = 659469;
3981pub const hv_register_name_HV_REGISTER_NESTED_SINT14: hv_register_name = 659470;
3982pub const hv_register_name_HV_REGISTER_NESTED_SINT15: hv_register_name = 659471;
3983pub const hv_register_name_HV_REGISTER_NESTED_SCONTROL: hv_register_name = 659472;
3984pub const hv_register_name_HV_REGISTER_NESTED_SVERSION: hv_register_name = 659473;
3985pub const hv_register_name_HV_REGISTER_NESTED_SIFP: hv_register_name = 659474;
3986pub const hv_register_name_HV_REGISTER_NESTED_SIPP: hv_register_name = 659475;
3987pub const hv_register_name_HV_REGISTER_NESTED_EOM: hv_register_name = 659476;
3988pub const hv_register_name_HV_REGISTER_NESTED_SIRBP: hv_register_name = 659477;
3989pub const hv_register_name_HV_REGISTER_STIMER0_CONFIG: hv_register_name = 720896;
3990pub const hv_register_name_HV_REGISTER_STIMER0_COUNT: hv_register_name = 720897;
3991pub const hv_register_name_HV_REGISTER_STIMER1_CONFIG: hv_register_name = 720898;
3992pub const hv_register_name_HV_REGISTER_STIMER1_COUNT: hv_register_name = 720899;
3993pub const hv_register_name_HV_REGISTER_STIMER2_CONFIG: hv_register_name = 720900;
3994pub const hv_register_name_HV_REGISTER_STIMER2_COUNT: hv_register_name = 720901;
3995pub const hv_register_name_HV_REGISTER_STIMER3_CONFIG: hv_register_name = 720902;
3996pub const hv_register_name_HV_REGISTER_STIMER3_COUNT: hv_register_name = 720903;
3997pub const hv_register_name_HV_REGISTER_STIME_UNHALTED_TIMER_CONFIG: hv_register_name = 721152;
3998pub const hv_register_name_HV_REGISTER_STIME_UNHALTED_TIMER_COUNT: hv_register_name = 721153;
3999pub const hv_register_name_HV_REGISTER_VSM_CODE_PAGE_OFFSETS: hv_register_name = 851970;
4000pub const hv_register_name_HV_REGISTER_VSM_VP_STATUS: hv_register_name = 851971;
4001pub const hv_register_name_HV_REGISTER_VSM_PARTITION_STATUS: hv_register_name = 851972;
4002pub const hv_register_name_HV_REGISTER_VSM_VINA: hv_register_name = 851973;
4003pub const hv_register_name_HV_REGISTER_VSM_CAPABILITIES: hv_register_name = 851974;
4004pub const hv_register_name_HV_REGISTER_VSM_PARTITION_CONFIG: hv_register_name = 851975;
4005pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL0: hv_register_name = 851984;
4006pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL1: hv_register_name = 851985;
4007pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL2: hv_register_name = 851986;
4008pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL3: hv_register_name = 851987;
4009pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL4: hv_register_name = 851988;
4010pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL5: hv_register_name = 851989;
4011pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL6: hv_register_name = 851990;
4012pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL7: hv_register_name = 851991;
4013pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL8: hv_register_name = 851992;
4014pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL9: hv_register_name = 851993;
4015pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL10: hv_register_name = 851994;
4016pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL11: hv_register_name = 851995;
4017pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL12: hv_register_name = 851996;
4018pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL13: hv_register_name = 851997;
4019pub const hv_register_name_HV_REGISTER_VSM_VP_SECURE_CONFIG_VTL14: hv_register_name = 851998;
4020pub const hv_register_name_HV_REGISTER_VSM_VP_WAIT_FOR_TLB_LOCK: hv_register_name = 852000;
4021pub const hv_register_name_HV_REGISTER_ISOLATION_CAPABILITIES: hv_register_name = 852224;
4022pub const hv_register_name_HV_ARM64_REGISTER_XZR: hv_register_name = 196606;
4023pub const hv_register_name_HV_ARM64_REGISTER_X0: hv_register_name = 131072;
4024pub const hv_register_name_HV_ARM64_REGISTER_X1: hv_register_name = 131073;
4025pub const hv_register_name_HV_ARM64_REGISTER_X2: hv_register_name = 131074;
4026pub const hv_register_name_HV_ARM64_REGISTER_X3: hv_register_name = 131075;
4027pub const hv_register_name_HV_ARM64_REGISTER_X4: hv_register_name = 131076;
4028pub const hv_register_name_HV_ARM64_REGISTER_X5: hv_register_name = 131077;
4029pub const hv_register_name_HV_ARM64_REGISTER_X6: hv_register_name = 131078;
4030pub const hv_register_name_HV_ARM64_REGISTER_X7: hv_register_name = 131079;
4031pub const hv_register_name_HV_ARM64_REGISTER_X8: hv_register_name = 131080;
4032pub const hv_register_name_HV_ARM64_REGISTER_X9: hv_register_name = 131081;
4033pub const hv_register_name_HV_ARM64_REGISTER_X10: hv_register_name = 131082;
4034pub const hv_register_name_HV_ARM64_REGISTER_X11: hv_register_name = 131083;
4035pub const hv_register_name_HV_ARM64_REGISTER_X12: hv_register_name = 131084;
4036pub const hv_register_name_HV_ARM64_REGISTER_X13: hv_register_name = 131085;
4037pub const hv_register_name_HV_ARM64_REGISTER_X14: hv_register_name = 131086;
4038pub const hv_register_name_HV_ARM64_REGISTER_X15: hv_register_name = 131087;
4039pub const hv_register_name_HV_ARM64_REGISTER_X16: hv_register_name = 131088;
4040pub const hv_register_name_HV_ARM64_REGISTER_X17: hv_register_name = 131089;
4041pub const hv_register_name_HV_ARM64_REGISTER_X18: hv_register_name = 131090;
4042pub const hv_register_name_HV_ARM64_REGISTER_X19: hv_register_name = 131091;
4043pub const hv_register_name_HV_ARM64_REGISTER_X20: hv_register_name = 131092;
4044pub const hv_register_name_HV_ARM64_REGISTER_X21: hv_register_name = 131093;
4045pub const hv_register_name_HV_ARM64_REGISTER_X22: hv_register_name = 131094;
4046pub const hv_register_name_HV_ARM64_REGISTER_X23: hv_register_name = 131095;
4047pub const hv_register_name_HV_ARM64_REGISTER_X24: hv_register_name = 131096;
4048pub const hv_register_name_HV_ARM64_REGISTER_X25: hv_register_name = 131097;
4049pub const hv_register_name_HV_ARM64_REGISTER_X26: hv_register_name = 131098;
4050pub const hv_register_name_HV_ARM64_REGISTER_X27: hv_register_name = 131099;
4051pub const hv_register_name_HV_ARM64_REGISTER_X28: hv_register_name = 131100;
4052pub const hv_register_name_HV_ARM64_REGISTER_FP: hv_register_name = 131101;
4053pub const hv_register_name_HV_ARM64_REGISTER_LR: hv_register_name = 131102;
4054pub const hv_register_name_HV_ARM64_REGISTER_PC: hv_register_name = 131106;
4055pub const hv_register_name_HV_ARM64_REGISTER_Q0: hv_register_name = 196608;
4056pub const hv_register_name_HV_ARM64_REGISTER_Q1: hv_register_name = 196609;
4057pub const hv_register_name_HV_ARM64_REGISTER_Q2: hv_register_name = 196610;
4058pub const hv_register_name_HV_ARM64_REGISTER_Q3: hv_register_name = 196611;
4059pub const hv_register_name_HV_ARM64_REGISTER_Q4: hv_register_name = 196612;
4060pub const hv_register_name_HV_ARM64_REGISTER_Q5: hv_register_name = 196613;
4061pub const hv_register_name_HV_ARM64_REGISTER_Q6: hv_register_name = 196614;
4062pub const hv_register_name_HV_ARM64_REGISTER_Q7: hv_register_name = 196615;
4063pub const hv_register_name_HV_ARM64_REGISTER_Q8: hv_register_name = 196616;
4064pub const hv_register_name_HV_ARM64_REGISTER_Q9: hv_register_name = 196617;
4065pub const hv_register_name_HV_ARM64_REGISTER_Q10: hv_register_name = 196618;
4066pub const hv_register_name_HV_ARM64_REGISTER_Q11: hv_register_name = 196619;
4067pub const hv_register_name_HV_ARM64_REGISTER_Q12: hv_register_name = 196620;
4068pub const hv_register_name_HV_ARM64_REGISTER_Q13: hv_register_name = 196621;
4069pub const hv_register_name_HV_ARM64_REGISTER_Q14: hv_register_name = 196622;
4070pub const hv_register_name_HV_ARM64_REGISTER_Q15: hv_register_name = 196623;
4071pub const hv_register_name_HV_ARM64_REGISTER_Q16: hv_register_name = 196624;
4072pub const hv_register_name_HV_ARM64_REGISTER_Q17: hv_register_name = 196625;
4073pub const hv_register_name_HV_ARM64_REGISTER_Q18: hv_register_name = 196626;
4074pub const hv_register_name_HV_ARM64_REGISTER_Q19: hv_register_name = 196627;
4075pub const hv_register_name_HV_ARM64_REGISTER_Q20: hv_register_name = 196628;
4076pub const hv_register_name_HV_ARM64_REGISTER_Q21: hv_register_name = 196629;
4077pub const hv_register_name_HV_ARM64_REGISTER_Q22: hv_register_name = 196630;
4078pub const hv_register_name_HV_ARM64_REGISTER_Q23: hv_register_name = 196631;
4079pub const hv_register_name_HV_ARM64_REGISTER_Q24: hv_register_name = 196632;
4080pub const hv_register_name_HV_ARM64_REGISTER_Q25: hv_register_name = 196633;
4081pub const hv_register_name_HV_ARM64_REGISTER_Q26: hv_register_name = 196634;
4082pub const hv_register_name_HV_ARM64_REGISTER_Q27: hv_register_name = 196635;
4083pub const hv_register_name_HV_ARM64_REGISTER_Q28: hv_register_name = 196636;
4084pub const hv_register_name_HV_ARM64_REGISTER_Q29: hv_register_name = 196637;
4085pub const hv_register_name_HV_ARM64_REGISTER_Q30: hv_register_name = 196638;
4086pub const hv_register_name_HV_ARM64_REGISTER_Q31: hv_register_name = 196639;
4087pub const hv_register_name_HV_ARM64_REGISTER_Z0: hv_register_name = 196864;
4088pub const hv_register_name_HV_ARM64_REGISTER_Z1: hv_register_name = 196865;
4089pub const hv_register_name_HV_ARM64_REGISTER_Z2: hv_register_name = 196866;
4090pub const hv_register_name_HV_ARM64_REGISTER_Z3: hv_register_name = 196867;
4091pub const hv_register_name_HV_ARM64_REGISTER_Z4: hv_register_name = 196868;
4092pub const hv_register_name_HV_ARM64_REGISTER_Z5: hv_register_name = 196869;
4093pub const hv_register_name_HV_ARM64_REGISTER_Z6: hv_register_name = 196870;
4094pub const hv_register_name_HV_ARM64_REGISTER_Z7: hv_register_name = 196871;
4095pub const hv_register_name_HV_ARM64_REGISTER_Z8: hv_register_name = 196872;
4096pub const hv_register_name_HV_ARM64_REGISTER_Z9: hv_register_name = 196873;
4097pub const hv_register_name_HV_ARM64_REGISTER_Z10: hv_register_name = 196874;
4098pub const hv_register_name_HV_ARM64_REGISTER_Z11: hv_register_name = 196875;
4099pub const hv_register_name_HV_ARM64_REGISTER_Z12: hv_register_name = 196876;
4100pub const hv_register_name_HV_ARM64_REGISTER_Z13: hv_register_name = 196877;
4101pub const hv_register_name_HV_ARM64_REGISTER_Z14: hv_register_name = 196878;
4102pub const hv_register_name_HV_ARM64_REGISTER_Z15: hv_register_name = 196879;
4103pub const hv_register_name_HV_ARM64_REGISTER_Z16: hv_register_name = 196880;
4104pub const hv_register_name_HV_ARM64_REGISTER_Z17: hv_register_name = 196881;
4105pub const hv_register_name_HV_ARM64_REGISTER_Z18: hv_register_name = 196882;
4106pub const hv_register_name_HV_ARM64_REGISTER_Z19: hv_register_name = 196883;
4107pub const hv_register_name_HV_ARM64_REGISTER_Z20: hv_register_name = 196884;
4108pub const hv_register_name_HV_ARM64_REGISTER_Z21: hv_register_name = 196885;
4109pub const hv_register_name_HV_ARM64_REGISTER_Z22: hv_register_name = 196886;
4110pub const hv_register_name_HV_ARM64_REGISTER_Z23: hv_register_name = 196887;
4111pub const hv_register_name_HV_ARM64_REGISTER_Z24: hv_register_name = 196888;
4112pub const hv_register_name_HV_ARM64_REGISTER_Z25: hv_register_name = 196889;
4113pub const hv_register_name_HV_ARM64_REGISTER_Z26: hv_register_name = 196890;
4114pub const hv_register_name_HV_ARM64_REGISTER_Z27: hv_register_name = 196891;
4115pub const hv_register_name_HV_ARM64_REGISTER_Z28: hv_register_name = 196892;
4116pub const hv_register_name_HV_ARM64_REGISTER_Z29: hv_register_name = 196893;
4117pub const hv_register_name_HV_ARM64_REGISTER_Z30: hv_register_name = 196894;
4118pub const hv_register_name_HV_ARM64_REGISTER_Z31: hv_register_name = 196895;
4119pub const hv_register_name_HV_ARM64_REGISTER_P0: hv_register_name = 196896;
4120pub const hv_register_name_HV_ARM64_REGISTER_P1: hv_register_name = 196897;
4121pub const hv_register_name_HV_ARM64_REGISTER_P2: hv_register_name = 196898;
4122pub const hv_register_name_HV_ARM64_REGISTER_P3: hv_register_name = 196899;
4123pub const hv_register_name_HV_ARM64_REGISTER_P4: hv_register_name = 196900;
4124pub const hv_register_name_HV_ARM64_REGISTER_P5: hv_register_name = 196901;
4125pub const hv_register_name_HV_ARM64_REGISTER_P6: hv_register_name = 196902;
4126pub const hv_register_name_HV_ARM64_REGISTER_P7: hv_register_name = 196903;
4127pub const hv_register_name_HV_ARM64_REGISTER_P8: hv_register_name = 196904;
4128pub const hv_register_name_HV_ARM64_REGISTER_P9: hv_register_name = 196905;
4129pub const hv_register_name_HV_ARM64_REGISTER_P10: hv_register_name = 196906;
4130pub const hv_register_name_HV_ARM64_REGISTER_P11: hv_register_name = 196907;
4131pub const hv_register_name_HV_ARM64_REGISTER_P12: hv_register_name = 196908;
4132pub const hv_register_name_HV_ARM64_REGISTER_P13: hv_register_name = 196909;
4133pub const hv_register_name_HV_ARM64_REGISTER_P14: hv_register_name = 196910;
4134pub const hv_register_name_HV_ARM64_REGISTER_P15: hv_register_name = 196911;
4135pub const hv_register_name_HV_ARM64_REGISTER_FFR: hv_register_name = 196912;
4136pub const hv_register_name_HV_ARM64_REGISTER_CURRENT_EL: hv_register_name = 135171;
4137pub const hv_register_name_HV_ARM64_REGISTER_DAIF: hv_register_name = 135172;
4138pub const hv_register_name_HV_ARM64_REGISTER_DIT: hv_register_name = 135173;
4139pub const hv_register_name_HV_ARM64_REGISTER_PSTATE: hv_register_name = 131107;
4140pub const hv_register_name_HV_ARM64_REGISTER_ELR_EL1: hv_register_name = 262165;
4141pub const hv_register_name_HV_ARM64_REGISTER_ELR_EL2: hv_register_name = 135169;
4142pub const hv_register_name_HV_ARM64_REGISTER_ELR_ELX: hv_register_name = 135180;
4143pub const hv_register_name_HV_ARM64_REGISTER_FPCR: hv_register_name = 262162;
4144pub const hv_register_name_HV_ARM64_REGISTER_FPSR: hv_register_name = 262163;
4145pub const hv_register_name_HV_ARM64_REGISTER_NZCV: hv_register_name = 135174;
4146pub const hv_register_name_HV_ARM64_REGISTER_PAN: hv_register_name = 135175;
4147pub const hv_register_name_HV_ARM64_REGISTER_SP: hv_register_name = 131103;
4148pub const hv_register_name_HV_ARM64_REGISTER_SP_EL0: hv_register_name = 131104;
4149pub const hv_register_name_HV_ARM64_REGISTER_SP_EL1: hv_register_name = 131105;
4150pub const hv_register_name_HV_ARM64_REGISTER_SP_EL2: hv_register_name = 135168;
4151pub const hv_register_name_HV_ARM64_REGISTER_SP_SEL: hv_register_name = 135176;
4152pub const hv_register_name_HV_ARM64_REGISTER_SPSR_EL1: hv_register_name = 262164;
4153pub const hv_register_name_HV_ARM64_REGISTER_SPSR_EL2: hv_register_name = 135170;
4154pub const hv_register_name_HV_ARM64_REGISTER_SPSR_ELX: hv_register_name = 135181;
4155pub const hv_register_name_HV_ARM64_REGISTER_SSBS: hv_register_name = 135177;
4156pub const hv_register_name_HV_ARM64_REGISTER_TCO: hv_register_name = 135178;
4157pub const hv_register_name_HV_ARM64_REGISTER_UAO: hv_register_name = 135179;
4158pub const hv_register_name_HV_ARM64_REGISTER_ID_MIDR_EL1: hv_register_name = 139264;
4159pub const hv_register_name_HV_ARM64_REGISTER_ID_RES01_EL1: hv_register_name = 139265;
4160pub const hv_register_name_HV_ARM64_REGISTER_ID_RES02_EL1: hv_register_name = 139266;
4161pub const hv_register_name_HV_ARM64_REGISTER_ID_RES03_EL1: hv_register_name = 139267;
4162pub const hv_register_name_HV_ARM64_REGISTER_ID_RES04_EL1: hv_register_name = 139268;
4163pub const hv_register_name_HV_ARM64_REGISTER_ID_MPIDR_EL1: hv_register_name = 139269;
4164pub const hv_register_name_HV_ARM64_REGISTER_ID_REVIDR_EL1: hv_register_name = 139270;
4165pub const hv_register_name_HV_ARM64_REGISTER_ID_RES07_EL1: hv_register_name = 139271;
4166pub const hv_register_name_HV_ARM64_REGISTER_ID_PFR0_EL1: hv_register_name = 139272;
4167pub const hv_register_name_HV_ARM64_REGISTER_ID_PFR1_EL1: hv_register_name = 139273;
4168pub const hv_register_name_HV_ARM64_REGISTER_ID_DFR0_EL1: hv_register_name = 139274;
4169pub const hv_register_name_HV_ARM64_REGISTER_ID_RES13_EL1: hv_register_name = 139275;
4170pub const hv_register_name_HV_ARM64_REGISTER_ID_MMFR0_EL1: hv_register_name = 139276;
4171pub const hv_register_name_HV_ARM64_REGISTER_ID_MMFR1_EL1: hv_register_name = 139277;
4172pub const hv_register_name_HV_ARM64_REGISTER_ID_MMFR2_EL1: hv_register_name = 139278;
4173pub const hv_register_name_HV_ARM64_REGISTER_ID_MMFR3_EL1: hv_register_name = 139279;
4174pub const hv_register_name_HV_ARM64_REGISTER_ID_ISAR0_EL1: hv_register_name = 139280;
4175pub const hv_register_name_HV_ARM64_REGISTER_ID_ISAR1_EL1: hv_register_name = 139281;
4176pub const hv_register_name_HV_ARM64_REGISTER_ID_ISAR2_EL1: hv_register_name = 139282;
4177pub const hv_register_name_HV_ARM64_REGISTER_ID_ISAR3_EL1: hv_register_name = 139283;
4178pub const hv_register_name_HV_ARM64_REGISTER_ID_ISAR4_EL1: hv_register_name = 139284;
4179pub const hv_register_name_HV_ARM64_REGISTER_ID_ISAR5_EL1: hv_register_name = 139285;
4180pub const hv_register_name_HV_ARM64_REGISTER_ID_RES26_EL1: hv_register_name = 139286;
4181pub const hv_register_name_HV_ARM64_REGISTER_ID_RES27_EL1: hv_register_name = 139287;
4182pub const hv_register_name_HV_ARM64_REGISTER_ID_MVFR0_EL1: hv_register_name = 139288;
4183pub const hv_register_name_HV_ARM64_REGISTER_ID_MVFR1_EL1: hv_register_name = 139289;
4184pub const hv_register_name_HV_ARM64_REGISTER_ID_MVFR2_EL1: hv_register_name = 139290;
4185pub const hv_register_name_HV_ARM64_REGISTER_ID_RES33_EL1: hv_register_name = 139291;
4186pub const hv_register_name_HV_ARM64_REGISTER_ID_PFR2_EL1: hv_register_name = 139292;
4187pub const hv_register_name_HV_ARM64_REGISTER_ID_RES35_EL1: hv_register_name = 139293;
4188pub const hv_register_name_HV_ARM64_REGISTER_ID_RES36_EL1: hv_register_name = 139294;
4189pub const hv_register_name_HV_ARM64_REGISTER_ID_RES37_EL1: hv_register_name = 139295;
4190pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_PFR0_EL1: hv_register_name = 139296;
4191pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_PFR1_EL1: hv_register_name = 139297;
4192pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_PFR2_EL1: hv_register_name = 139298;
4193pub const hv_register_name_HV_ARM64_REGISTER_ID_RES43_EL1: hv_register_name = 139299;
4194pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_ZFR0_EL1: hv_register_name = 139300;
4195pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_SMFR0_EL1: hv_register_name = 139301;
4196pub const hv_register_name_HV_ARM64_REGISTER_ID_RES46_EL1: hv_register_name = 139302;
4197pub const hv_register_name_HV_ARM64_REGISTER_ID_RES47_EL1: hv_register_name = 139303;
4198pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_DFR0_EL1: hv_register_name = 139304;
4199pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_DFR1_EL1: hv_register_name = 139305;
4200pub const hv_register_name_HV_ARM64_REGISTER_ID_RES52_EL1: hv_register_name = 139306;
4201pub const hv_register_name_HV_ARM64_REGISTER_ID_RES53_EL1: hv_register_name = 139307;
4202pub const hv_register_name_HV_ARM64_REGISTER_ID_RES54_EL1: hv_register_name = 139308;
4203pub const hv_register_name_HV_ARM64_REGISTER_ID_RES55_EL1: hv_register_name = 139309;
4204pub const hv_register_name_HV_ARM64_REGISTER_ID_RES56_EL1: hv_register_name = 139310;
4205pub const hv_register_name_HV_ARM64_REGISTER_ID_RES57_EL1: hv_register_name = 139311;
4206pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_ISAR0_EL1: hv_register_name = 139312;
4207pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_ISAR1_EL1: hv_register_name = 139313;
4208pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_ISAR2_EL1: hv_register_name = 139314;
4209pub const hv_register_name_HV_ARM64_REGISTER_ID_RES63_EL1: hv_register_name = 139315;
4210pub const hv_register_name_HV_ARM64_REGISTER_ID_RES64_EL1: hv_register_name = 139316;
4211pub const hv_register_name_HV_ARM64_REGISTER_ID_RES65_EL1: hv_register_name = 139317;
4212pub const hv_register_name_HV_ARM64_REGISTER_ID_RES66_EL1: hv_register_name = 139318;
4213pub const hv_register_name_HV_ARM64_REGISTER_ID_RES67_EL1: hv_register_name = 139319;
4214pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_MMFR0_EL1: hv_register_name = 139320;
4215pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_MMFR1_EL1: hv_register_name = 139321;
4216pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_MMFR2_EL1: hv_register_name = 139322;
4217pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_MMFR3_EL1: hv_register_name = 139323;
4218pub const hv_register_name_HV_ARM64_REGISTER_ID_AA64_MMFR4_EL1: hv_register_name = 139324;
4219pub const hv_register_name_HV_ARM64_REGISTER_ID_RES75_EL1: hv_register_name = 139325;
4220pub const hv_register_name_HV_ARM64_REGISTER_ID_RES76_EL1: hv_register_name = 139326;
4221pub const hv_register_name_HV_ARM64_REGISTER_ID_RES77_EL1: hv_register_name = 139327;
4222pub const hv_register_name_HV_ARM64_REGISTER_ID_RES80_EL1: hv_register_name = 139328;
4223pub const hv_register_name_HV_ARM64_REGISTER_ID_RES81_EL1: hv_register_name = 139329;
4224pub const hv_register_name_HV_ARM64_REGISTER_ID_RES82_EL1: hv_register_name = 139330;
4225pub const hv_register_name_HV_ARM64_REGISTER_ID_RES83_EL1: hv_register_name = 139331;
4226pub const hv_register_name_HV_ARM64_REGISTER_ID_RES84_EL1: hv_register_name = 139332;
4227pub const hv_register_name_HV_ARM64_REGISTER_ID_RES85_EL1: hv_register_name = 139333;
4228pub const hv_register_name_HV_ARM64_REGISTER_ID_RES86_EL1: hv_register_name = 139334;
4229pub const hv_register_name_HV_ARM64_REGISTER_ID_RES87_EL1: hv_register_name = 139335;
4230pub const hv_register_name_HV_ARM64_REGISTER_ID_RES90_EL1: hv_register_name = 139336;
4231pub const hv_register_name_HV_ARM64_REGISTER_ID_RES91_EL1: hv_register_name = 139337;
4232pub const hv_register_name_HV_ARM64_REGISTER_ID_RES92_EL1: hv_register_name = 139338;
4233pub const hv_register_name_HV_ARM64_REGISTER_ID_RES93_EL1: hv_register_name = 139339;
4234pub const hv_register_name_HV_ARM64_REGISTER_ID_RES94_EL1: hv_register_name = 139340;
4235pub const hv_register_name_HV_ARM64_REGISTER_ID_RES95_EL1: hv_register_name = 139341;
4236pub const hv_register_name_HV_ARM64_REGISTER_ID_RES96_EL1: hv_register_name = 139342;
4237pub const hv_register_name_HV_ARM64_REGISTER_ID_RES97_EL1: hv_register_name = 139343;
4238pub const hv_register_name_HV_ARM64_REGISTER_ID_RES100_EL1: hv_register_name = 139344;
4239pub const hv_register_name_HV_ARM64_REGISTER_ID_RES101_EL1: hv_register_name = 139345;
4240pub const hv_register_name_HV_ARM64_REGISTER_ID_RES102_EL1: hv_register_name = 139346;
4241pub const hv_register_name_HV_ARM64_REGISTER_ID_RES103_EL1: hv_register_name = 139347;
4242pub const hv_register_name_HV_ARM64_REGISTER_ID_RES104_EL1: hv_register_name = 139348;
4243pub const hv_register_name_HV_ARM64_REGISTER_ID_RES105_EL1: hv_register_name = 139349;
4244pub const hv_register_name_HV_ARM64_REGISTER_ID_RES106_EL1: hv_register_name = 139350;
4245pub const hv_register_name_HV_ARM64_REGISTER_ID_RES107_EL1: hv_register_name = 139351;
4246pub const hv_register_name_HV_ARM64_REGISTER_ID_RES110_EL1: hv_register_name = 139352;
4247pub const hv_register_name_HV_ARM64_REGISTER_ID_RES111_EL1: hv_register_name = 139353;
4248pub const hv_register_name_HV_ARM64_REGISTER_ID_RES112_EL1: hv_register_name = 139354;
4249pub const hv_register_name_HV_ARM64_REGISTER_ID_RES113_EL1: hv_register_name = 139355;
4250pub const hv_register_name_HV_ARM64_REGISTER_ID_RES114_EL1: hv_register_name = 139356;
4251pub const hv_register_name_HV_ARM64_REGISTER_ID_RES115_EL1: hv_register_name = 139357;
4252pub const hv_register_name_HV_ARM64_REGISTER_ID_RES116_EL1: hv_register_name = 139358;
4253pub const hv_register_name_HV_ARM64_REGISTER_ID_RES117_EL1: hv_register_name = 139359;
4254pub const hv_register_name_HV_ARM64_REGISTER_ID_RES120_EL1: hv_register_name = 139360;
4255pub const hv_register_name_HV_ARM64_REGISTER_ID_RES121_EL1: hv_register_name = 139361;
4256pub const hv_register_name_HV_ARM64_REGISTER_ID_RES122_EL1: hv_register_name = 139362;
4257pub const hv_register_name_HV_ARM64_REGISTER_ID_RES123_EL1: hv_register_name = 139363;
4258pub const hv_register_name_HV_ARM64_REGISTER_ID_RES124_EL1: hv_register_name = 139364;
4259pub const hv_register_name_HV_ARM64_REGISTER_ID_RES125_EL1: hv_register_name = 139365;
4260pub const hv_register_name_HV_ARM64_REGISTER_ID_RES126_EL1: hv_register_name = 139366;
4261pub const hv_register_name_HV_ARM64_REGISTER_ID_RES127_EL1: hv_register_name = 139367;
4262pub const hv_register_name_HV_ARM64_REGISTER_ID_RES130_EL1: hv_register_name = 139368;
4263pub const hv_register_name_HV_ARM64_REGISTER_ID_RES131_EL1: hv_register_name = 139369;
4264pub const hv_register_name_HV_ARM64_REGISTER_ID_RES132_EL1: hv_register_name = 139370;
4265pub const hv_register_name_HV_ARM64_REGISTER_ID_RES133_EL1: hv_register_name = 139371;
4266pub const hv_register_name_HV_ARM64_REGISTER_ID_RES134_EL1: hv_register_name = 139372;
4267pub const hv_register_name_HV_ARM64_REGISTER_ID_RES135_EL1: hv_register_name = 139373;
4268pub const hv_register_name_HV_ARM64_REGISTER_ID_RES136_EL1: hv_register_name = 139374;
4269pub const hv_register_name_HV_ARM64_REGISTER_ID_RES137_EL1: hv_register_name = 139375;
4270pub const hv_register_name_HV_ARM64_REGISTER_ID_RES140_EL1: hv_register_name = 139376;
4271pub const hv_register_name_HV_ARM64_REGISTER_ID_RES141_EL1: hv_register_name = 139377;
4272pub const hv_register_name_HV_ARM64_REGISTER_ID_RES142_EL1: hv_register_name = 139378;
4273pub const hv_register_name_HV_ARM64_REGISTER_ID_RES143_EL1: hv_register_name = 139379;
4274pub const hv_register_name_HV_ARM64_REGISTER_ID_RES144_EL1: hv_register_name = 139380;
4275pub const hv_register_name_HV_ARM64_REGISTER_ID_RES145_EL1: hv_register_name = 139381;
4276pub const hv_register_name_HV_ARM64_REGISTER_ID_RES146_EL1: hv_register_name = 139382;
4277pub const hv_register_name_HV_ARM64_REGISTER_ID_RES147_EL1: hv_register_name = 139383;
4278pub const hv_register_name_HV_ARM64_REGISTER_ID_RES150_EL1: hv_register_name = 139384;
4279pub const hv_register_name_HV_ARM64_REGISTER_ID_RES151_EL1: hv_register_name = 139385;
4280pub const hv_register_name_HV_ARM64_REGISTER_ID_RES152_EL1: hv_register_name = 139386;
4281pub const hv_register_name_HV_ARM64_REGISTER_ID_RES153_EL1: hv_register_name = 139387;
4282pub const hv_register_name_HV_ARM64_REGISTER_ID_RES154_EL1: hv_register_name = 139388;
4283pub const hv_register_name_HV_ARM64_REGISTER_ID_RES155_EL1: hv_register_name = 139389;
4284pub const hv_register_name_HV_ARM64_REGISTER_ID_RES156_EL1: hv_register_name = 139390;
4285pub const hv_register_name_HV_ARM64_REGISTER_ID_RES157_EL1: hv_register_name = 139391;
4286pub const hv_register_name_HV_ARM64_REGISTER_ACCDATA_EL1: hv_register_name = 262176;
4287pub const hv_register_name_HV_ARM64_REGISTER_ACTLR_EL1: hv_register_name = 262147;
4288pub const hv_register_name_HV_ARM64_REGISTER_ACTLR_EL2: hv_register_name = 262177;
4289pub const hv_register_name_HV_ARM64_REGISTER_AFSR0_EL1: hv_register_name = 262166;
4290pub const hv_register_name_HV_ARM64_REGISTER_AFSR0_EL2: hv_register_name = 262178;
4291pub const hv_register_name_HV_ARM64_REGISTER_AFSR0_ELX: hv_register_name = 262259;
4292pub const hv_register_name_HV_ARM64_REGISTER_AFSR1_EL1: hv_register_name = 262167;
4293pub const hv_register_name_HV_ARM64_REGISTER_AFSR1_EL2: hv_register_name = 262179;
4294pub const hv_register_name_HV_ARM64_REGISTER_AFSR1_ELX: hv_register_name = 262260;
4295pub const hv_register_name_HV_ARM64_REGISTER_AIDR_EL1: hv_register_name = 262180;
4296pub const hv_register_name_HV_ARM64_REGISTER_AMAIR_EL1: hv_register_name = 262168;
4297pub const hv_register_name_HV_ARM64_REGISTER_AMAIR_EL2: hv_register_name = 262181;
4298pub const hv_register_name_HV_ARM64_REGISTER_AMAIR_ELX: hv_register_name = 262261;
4299pub const hv_register_name_HV_ARM64_REGISTER_APD_A_KEY_HI_EL1: hv_register_name = 262182;
4300pub const hv_register_name_HV_ARM64_REGISTER_APD_A_KEY_LO_EL1: hv_register_name = 262183;
4301pub const hv_register_name_HV_ARM64_REGISTER_APD_B_KEY_HI_EL1: hv_register_name = 262184;
4302pub const hv_register_name_HV_ARM64_REGISTER_APD_B_KEY_LO_EL1: hv_register_name = 262185;
4303pub const hv_register_name_HV_ARM64_REGISTER_APG_A_KEY_HI_EL1: hv_register_name = 262186;
4304pub const hv_register_name_HV_ARM64_REGISTER_APG_A_KEY_LO_EL1: hv_register_name = 262187;
4305pub const hv_register_name_HV_ARM64_REGISTER_API_A_KEY_HI_EL1: hv_register_name = 262188;
4306pub const hv_register_name_HV_ARM64_REGISTER_API_A_KEY_LO_EL1: hv_register_name = 262189;
4307pub const hv_register_name_HV_ARM64_REGISTER_API_B_KEY_HI_EL1: hv_register_name = 262190;
4308pub const hv_register_name_HV_ARM64_REGISTER_API_B_KEY_LO_EL1: hv_register_name = 262191;
4309pub const hv_register_name_HV_ARM64_REGISTER_CCSIDR_EL1: hv_register_name = 262192;
4310pub const hv_register_name_HV_ARM64_REGISTER_CCSIDR2_EL1: hv_register_name = 262193;
4311pub const hv_register_name_HV_ARM64_REGISTER_CLIDR_EL1: hv_register_name = 262194;
4312pub const hv_register_name_HV_ARM64_REGISTER_CONTEXTIDR_EL1: hv_register_name = 262157;
4313pub const hv_register_name_HV_ARM64_REGISTER_CONTEXTIDR_EL2: hv_register_name = 262195;
4314pub const hv_register_name_HV_ARM64_REGISTER_CONTEXTIDR_ELX: hv_register_name = 262262;
4315pub const hv_register_name_HV_ARM64_REGISTER_CPACR_EL1: hv_register_name = 262148;
4316pub const hv_register_name_HV_ARM64_REGISTER_CPTR_EL2: hv_register_name = 262196;
4317pub const hv_register_name_HV_ARM64_REGISTER_CPACR_ELX: hv_register_name = 262263;
4318pub const hv_register_name_HV_ARM64_REGISTER_CSSELR_EL1: hv_register_name = 262197;
4319pub const hv_register_name_HV_ARM64_REGISTER_CTR_EL0: hv_register_name = 262198;
4320pub const hv_register_name_HV_ARM64_REGISTER_DACR32_EL2: hv_register_name = 262199;
4321pub const hv_register_name_HV_ARM64_REGISTER_DCZID_EL0: hv_register_name = 262200;
4322pub const hv_register_name_HV_ARM64_REGISTER_ESR_EL1: hv_register_name = 262152;
4323pub const hv_register_name_HV_ARM64_REGISTER_ESR_EL2: hv_register_name = 262201;
4324pub const hv_register_name_HV_ARM64_REGISTER_ESR_ELX: hv_register_name = 262264;
4325pub const hv_register_name_HV_ARM64_REGISTER_FAR_EL1: hv_register_name = 262153;
4326pub const hv_register_name_HV_ARM64_REGISTER_FAR_EL2: hv_register_name = 262202;
4327pub const hv_register_name_HV_ARM64_REGISTER_FAR_ELX: hv_register_name = 262265;
4328pub const hv_register_name_HV_ARM64_REGISTER_FPEXC32_EL2: hv_register_name = 262203;
4329pub const hv_register_name_HV_ARM64_REGISTER_GCR_EL1: hv_register_name = 262204;
4330pub const hv_register_name_HV_ARM64_REGISTER_GMID_EL1: hv_register_name = 262205;
4331pub const hv_register_name_HV_ARM64_REGISTER_HACR_EL2: hv_register_name = 262206;
4332pub const hv_register_name_HV_ARM64_REGISTER_HAFGRTR_EL2: hv_register_name = 262207;
4333pub const hv_register_name_HV_ARM64_REGISTER_HCR_EL2: hv_register_name = 262208;
4334pub const hv_register_name_HV_ARM64_REGISTER_HCRX_EL2: hv_register_name = 262209;
4335pub const hv_register_name_HV_ARM64_REGISTER_HDFGRTR_EL2: hv_register_name = 262210;
4336pub const hv_register_name_HV_ARM64_REGISTER_HDFGWTR_EL2: hv_register_name = 262211;
4337pub const hv_register_name_HV_ARM64_REGISTER_HFGITR_EL2: hv_register_name = 262212;
4338pub const hv_register_name_HV_ARM64_REGISTER_HFGRTR_EL2: hv_register_name = 262213;
4339pub const hv_register_name_HV_ARM64_REGISTER_HFGWTR_EL2: hv_register_name = 262214;
4340pub const hv_register_name_HV_ARM64_REGISTER_HPFAR_EL2: hv_register_name = 262215;
4341pub const hv_register_name_HV_ARM64_REGISTER_HSTR_EL2: hv_register_name = 262216;
4342pub const hv_register_name_HV_ARM64_REGISTER_IFSR32_EL2: hv_register_name = 262217;
4343pub const hv_register_name_HV_ARM64_REGISTER_ISR_EL1: hv_register_name = 262218;
4344pub const hv_register_name_HV_ARM64_REGISTER_LORC_EL1: hv_register_name = 262219;
4345pub const hv_register_name_HV_ARM64_REGISTER_LOREA_EL1: hv_register_name = 262220;
4346pub const hv_register_name_HV_ARM64_REGISTER_LORID_EL1: hv_register_name = 262221;
4347pub const hv_register_name_HV_ARM64_REGISTER_LORN_EL1: hv_register_name = 262222;
4348pub const hv_register_name_HV_ARM64_REGISTER_LORSA_EL1: hv_register_name = 262223;
4349pub const hv_register_name_HV_ARM64_REGISTER_MAIR_EL1: hv_register_name = 262155;
4350pub const hv_register_name_HV_ARM64_REGISTER_MAIR_EL2: hv_register_name = 262224;
4351pub const hv_register_name_HV_ARM64_REGISTER_MAIR_ELX: hv_register_name = 262266;
4352pub const hv_register_name_HV_ARM64_REGISTER_MIDR_EL1: hv_register_name = 262225;
4353pub const hv_register_name_HV_ARM64_REGISTER_MPIDR_EL1: hv_register_name = 262145;
4354pub const hv_register_name_HV_ARM64_REGISTER_MVFR0_EL1: hv_register_name = 262226;
4355pub const hv_register_name_HV_ARM64_REGISTER_MVFR1_EL1: hv_register_name = 262227;
4356pub const hv_register_name_HV_ARM64_REGISTER_MVFR2_EL1: hv_register_name = 262228;
4357pub const hv_register_name_HV_ARM64_REGISTER_PAR_EL1: hv_register_name = 262154;
4358pub const hv_register_name_HV_ARM64_REGISTER_REVIDR_EL1: hv_register_name = 262229;
4359pub const hv_register_name_HV_ARM64_REGISTER_RGSR_EL1: hv_register_name = 262230;
4360pub const hv_register_name_HV_ARM64_REGISTER_RNDR: hv_register_name = 262231;
4361pub const hv_register_name_HV_ARM64_REGISTER_RNDRRS: hv_register_name = 262232;
4362pub const hv_register_name_HV_ARM64_REGISTER_SCTLR_EL1: hv_register_name = 262146;
4363pub const hv_register_name_HV_ARM64_REGISTER_SCTLR_EL2: hv_register_name = 262233;
4364pub const hv_register_name_HV_ARM64_REGISTER_SCTLR_ELX: hv_register_name = 262267;
4365pub const hv_register_name_HV_ARM64_REGISTER_SCXTNUM_EL0: hv_register_name = 262234;
4366pub const hv_register_name_HV_ARM64_REGISTER_SCXTNUM_EL1: hv_register_name = 262235;
4367pub const hv_register_name_HV_ARM64_REGISTER_SCXTNUM_EL2: hv_register_name = 262236;
4368pub const hv_register_name_HV_ARM64_REGISTER_SMCR_EL1: hv_register_name = 262237;
4369pub const hv_register_name_HV_ARM64_REGISTER_SMCR_EL2: hv_register_name = 262238;
4370pub const hv_register_name_HV_ARM64_REGISTER_SMIDR_EL1: hv_register_name = 262239;
4371pub const hv_register_name_HV_ARM64_REGISTER_SMPRI_EL1: hv_register_name = 262240;
4372pub const hv_register_name_HV_ARM64_REGISTER_SMPRIMAP_EL2: hv_register_name = 262241;
4373pub const hv_register_name_HV_ARM64_REGISTER_TCR_EL1: hv_register_name = 262151;
4374pub const hv_register_name_HV_ARM64_REGISTER_TCR_EL2: hv_register_name = 262242;
4375pub const hv_register_name_HV_ARM64_REGISTER_TCR_ELX: hv_register_name = 262268;
4376pub const hv_register_name_HV_ARM64_REGISTER_TFSRE0_EL1: hv_register_name = 262243;
4377pub const hv_register_name_HV_ARM64_REGISTER_TFSR_EL1: hv_register_name = 262244;
4378pub const hv_register_name_HV_ARM64_REGISTER_TFSR_EL2: hv_register_name = 262245;
4379pub const hv_register_name_HV_ARM64_REGISTER_TPIDR2_EL0: hv_register_name = 262246;
4380pub const hv_register_name_HV_ARM64_REGISTER_TPIDR_EL0: hv_register_name = 262161;
4381pub const hv_register_name_HV_ARM64_REGISTER_TPIDR_EL1: hv_register_name = 262158;
4382pub const hv_register_name_HV_ARM64_REGISTER_TPIDR_EL2: hv_register_name = 262247;
4383pub const hv_register_name_HV_ARM64_REGISTER_TPIDRRO_EL0: hv_register_name = 262160;
4384pub const hv_register_name_HV_ARM64_REGISTER_TTBR0_EL1: hv_register_name = 262149;
4385pub const hv_register_name_HV_ARM64_REGISTER_TTBR0_EL2: hv_register_name = 262248;
4386pub const hv_register_name_HV_ARM64_REGISTER_TTBR0_ELX: hv_register_name = 262269;
4387pub const hv_register_name_HV_ARM64_REGISTER_TTBR1_EL1: hv_register_name = 262150;
4388pub const hv_register_name_HV_ARM64_REGISTER_TTBR1_EL2: hv_register_name = 262270;
4389pub const hv_register_name_HV_ARM64_REGISTER_TTBR1_ELX: hv_register_name = 262271;
4390pub const hv_register_name_HV_ARM64_REGISTER_VBAR_EL1: hv_register_name = 262156;
4391pub const hv_register_name_HV_ARM64_REGISTER_VBAR_EL2: hv_register_name = 262249;
4392pub const hv_register_name_HV_ARM64_REGISTER_VBAR_ELX: hv_register_name = 262272;
4393pub const hv_register_name_HV_ARM64_REGISTER_VMPIDR_EL2: hv_register_name = 262250;
4394pub const hv_register_name_HV_ARM64_REGISTER_VNCR_EL2: hv_register_name = 262251;
4395pub const hv_register_name_HV_ARM64_REGISTER_VPIDR_EL2: hv_register_name = 262252;
4396pub const hv_register_name_HV_ARM64_REGISTER_VSTCR_EL2: hv_register_name = 262253;
4397pub const hv_register_name_HV_ARM64_REGISTER_VSTTBR_EL2: hv_register_name = 262254;
4398pub const hv_register_name_HV_ARM64_REGISTER_VTCR_EL2: hv_register_name = 262255;
4399pub const hv_register_name_HV_ARM64_REGISTER_VTTBR_EL2: hv_register_name = 262256;
4400pub const hv_register_name_HV_ARM64_REGISTER_ZCR_EL1: hv_register_name = 262257;
4401pub const hv_register_name_HV_ARM64_REGISTER_ZCR_EL2: hv_register_name = 262258;
4402pub const hv_register_name_HV_ARM64_REGISTER_ZCR_ELX: hv_register_name = 262273;
4403pub const hv_register_name_HV_ARM64_REGISTER_DBGAUTHSTATUS_EL1: hv_register_name = 327744;
4404pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR0_EL1: hv_register_name = 327680;
4405pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR1_EL1: hv_register_name = 327681;
4406pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR2_EL1: hv_register_name = 327682;
4407pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR3_EL1: hv_register_name = 327683;
4408pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR4_EL1: hv_register_name = 327684;
4409pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR5_EL1: hv_register_name = 327685;
4410pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR6_EL1: hv_register_name = 327686;
4411pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR7_EL1: hv_register_name = 327687;
4412pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR8_EL1: hv_register_name = 327688;
4413pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR9_EL1: hv_register_name = 327689;
4414pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR10_EL1: hv_register_name = 327690;
4415pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR11_EL1: hv_register_name = 327691;
4416pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR12_EL1: hv_register_name = 327692;
4417pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR13_EL1: hv_register_name = 327693;
4418pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR14_EL1: hv_register_name = 327694;
4419pub const hv_register_name_HV_ARM64_REGISTER_DBGBCR15_EL1: hv_register_name = 327695;
4420pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR0_EL1: hv_register_name = 327712;
4421pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR1_EL1: hv_register_name = 327713;
4422pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR2_EL1: hv_register_name = 327714;
4423pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR3_EL1: hv_register_name = 327715;
4424pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR4_EL1: hv_register_name = 327716;
4425pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR5_EL1: hv_register_name = 327717;
4426pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR6_EL1: hv_register_name = 327718;
4427pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR7_EL1: hv_register_name = 327719;
4428pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR8_EL1: hv_register_name = 327720;
4429pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR9_EL1: hv_register_name = 327721;
4430pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR10_EL1: hv_register_name = 327722;
4431pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR11_EL1: hv_register_name = 327723;
4432pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR12_EL1: hv_register_name = 327724;
4433pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR13_EL1: hv_register_name = 327725;
4434pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR14_EL1: hv_register_name = 327726;
4435pub const hv_register_name_HV_ARM64_REGISTER_DBGBVR15_EL1: hv_register_name = 327727;
4436pub const hv_register_name_HV_ARM64_REGISTER_DBGCLAIMCLR_EL1: hv_register_name = 327745;
4437pub const hv_register_name_HV_ARM64_REGISTER_DBGCLAIMSET_EL1: hv_register_name = 327746;
4438pub const hv_register_name_HV_ARM64_REGISTER_DBGDTRRX_EL0: hv_register_name = 327747;
4439pub const hv_register_name_HV_ARM64_REGISTER_DBGDTRTX_EL0: hv_register_name = 327748;
4440pub const hv_register_name_HV_ARM64_REGISTER_DBGPRCR_EL1: hv_register_name = 327749;
4441pub const hv_register_name_HV_ARM64_REGISTER_DBGVCR32_EL2: hv_register_name = 327750;
4442pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR0_EL1: hv_register_name = 327696;
4443pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR1_EL1: hv_register_name = 327697;
4444pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR2_EL1: hv_register_name = 327698;
4445pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR3_EL1: hv_register_name = 327699;
4446pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR4_EL1: hv_register_name = 327700;
4447pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR5_EL1: hv_register_name = 327701;
4448pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR6_EL1: hv_register_name = 327702;
4449pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR7_EL1: hv_register_name = 327703;
4450pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR8_EL1: hv_register_name = 327704;
4451pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR9_EL1: hv_register_name = 327705;
4452pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR10_EL1: hv_register_name = 327706;
4453pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR11_EL1: hv_register_name = 327707;
4454pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR12_EL1: hv_register_name = 327708;
4455pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR13_EL1: hv_register_name = 327709;
4456pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR14_EL1: hv_register_name = 327710;
4457pub const hv_register_name_HV_ARM64_REGISTER_DBGWCR15_EL1: hv_register_name = 327711;
4458pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR0_EL1: hv_register_name = 327728;
4459pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR1_EL1: hv_register_name = 327729;
4460pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR2_EL1: hv_register_name = 327730;
4461pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR3_EL1: hv_register_name = 327731;
4462pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR4_EL1: hv_register_name = 327732;
4463pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR5_EL1: hv_register_name = 327733;
4464pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR6_EL1: hv_register_name = 327734;
4465pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR7_EL1: hv_register_name = 327735;
4466pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR8_EL1: hv_register_name = 327736;
4467pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR9_EL1: hv_register_name = 327737;
4468pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR10_EL1: hv_register_name = 327738;
4469pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR11_EL1: hv_register_name = 327739;
4470pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR12_EL1: hv_register_name = 327740;
4471pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR13_EL1: hv_register_name = 327741;
4472pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR14_EL1: hv_register_name = 327742;
4473pub const hv_register_name_HV_ARM64_REGISTER_DBGWVR15_EL1: hv_register_name = 327743;
4474pub const hv_register_name_HV_ARM64_REGISTER_DLR_EL0: hv_register_name = 327751;
4475pub const hv_register_name_HV_ARM64_REGISTER_DSPSR_EL0: hv_register_name = 327752;
4476pub const hv_register_name_HV_ARM64_REGISTER_MDCCINT_EL1: hv_register_name = 327753;
4477pub const hv_register_name_HV_ARM64_REGISTER_MDCCSR_EL0: hv_register_name = 327754;
4478pub const hv_register_name_HV_ARM64_REGISTER_MDCR_EL2: hv_register_name = 327755;
4479pub const hv_register_name_HV_ARM64_REGISTER_MDRAR_EL1: hv_register_name = 327756;
4480pub const hv_register_name_HV_ARM64_REGISTER_MDSCR_EL1: hv_register_name = 327757;
4481pub const hv_register_name_HV_ARM64_REGISTER_OSDLR_EL1: hv_register_name = 327758;
4482pub const hv_register_name_HV_ARM64_REGISTER_OSDTRRX_EL1: hv_register_name = 327759;
4483pub const hv_register_name_HV_ARM64_REGISTER_OSDTRTX_EL1: hv_register_name = 327760;
4484pub const hv_register_name_HV_ARM64_REGISTER_OSECCR_EL1: hv_register_name = 327761;
4485pub const hv_register_name_HV_ARM64_REGISTER_OSLAR_EL1: hv_register_name = 327762;
4486pub const hv_register_name_HV_ARM64_REGISTER_OSLSR_EL1: hv_register_name = 327763;
4487pub const hv_register_name_HV_ARM64_REGISTER_SDER32_EL2: hv_register_name = 327764;
4488pub const hv_register_name_HV_ARM64_REGISTER_TRFCR_EL1: hv_register_name = 327765;
4489pub const hv_register_name_HV_ARM64_REGISTER_TRFCR_EL2: hv_register_name = 327766;
4490pub const hv_register_name_HV_ARM64_REGISTER_TRFCR_ELX: hv_register_name = 327767;
4491pub const hv_register_name_HV_ARM64_REGISTER_PMCCFILTR_EL0: hv_register_name = 335872;
4492pub const hv_register_name_HV_ARM64_REGISTER_PMCCNTR_EL0: hv_register_name = 335873;
4493pub const hv_register_name_HV_ARM64_REGISTER_PMCEID0_EL0: hv_register_name = 335874;
4494pub const hv_register_name_HV_ARM64_REGISTER_PMCEID1_EL0: hv_register_name = 335875;
4495pub const hv_register_name_HV_ARM64_REGISTER_PMCNTENCLR_EL0: hv_register_name = 335876;
4496pub const hv_register_name_HV_ARM64_REGISTER_PMCNTENSET_EL0: hv_register_name = 335877;
4497pub const hv_register_name_HV_ARM64_REGISTER_PMCR_EL0: hv_register_name = 335878;
4498pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR0_EL0: hv_register_name = 335879;
4499pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR1_EL0: hv_register_name = 335880;
4500pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR2_EL0: hv_register_name = 335881;
4501pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR3_EL0: hv_register_name = 335882;
4502pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR4_EL0: hv_register_name = 335883;
4503pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR5_EL0: hv_register_name = 335884;
4504pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR6_EL0: hv_register_name = 335885;
4505pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR7_EL0: hv_register_name = 335886;
4506pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR8_EL0: hv_register_name = 335887;
4507pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR9_EL0: hv_register_name = 335888;
4508pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR10_EL0: hv_register_name = 335889;
4509pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR11_EL0: hv_register_name = 335890;
4510pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR12_EL0: hv_register_name = 335891;
4511pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR13_EL0: hv_register_name = 335892;
4512pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR14_EL0: hv_register_name = 335893;
4513pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR15_EL0: hv_register_name = 335894;
4514pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR16_EL0: hv_register_name = 335895;
4515pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR17_EL0: hv_register_name = 335896;
4516pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR18_EL0: hv_register_name = 335897;
4517pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR19_EL0: hv_register_name = 335898;
4518pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR20_EL0: hv_register_name = 335899;
4519pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR21_EL0: hv_register_name = 335900;
4520pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR22_EL0: hv_register_name = 335901;
4521pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR23_EL0: hv_register_name = 335902;
4522pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR24_EL0: hv_register_name = 335903;
4523pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR25_EL0: hv_register_name = 335904;
4524pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR26_EL0: hv_register_name = 335905;
4525pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR27_EL0: hv_register_name = 335906;
4526pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR28_EL0: hv_register_name = 335907;
4527pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR29_EL0: hv_register_name = 335908;
4528pub const hv_register_name_HV_ARM64_REGISTER_PMEVCNTR30_EL0: hv_register_name = 335909;
4529pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER0_EL0: hv_register_name = 335910;
4530pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER1_EL0: hv_register_name = 335911;
4531pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER2_EL0: hv_register_name = 335912;
4532pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER3_EL0: hv_register_name = 335913;
4533pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER4_EL0: hv_register_name = 335914;
4534pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER5_EL0: hv_register_name = 335915;
4535pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER6_EL0: hv_register_name = 335916;
4536pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER7_EL0: hv_register_name = 335917;
4537pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER8_EL0: hv_register_name = 335918;
4538pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER9_EL0: hv_register_name = 335919;
4539pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER10_EL0: hv_register_name = 335920;
4540pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER11_EL0: hv_register_name = 335921;
4541pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER12_EL0: hv_register_name = 335922;
4542pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER13_EL0: hv_register_name = 335923;
4543pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER14_EL0: hv_register_name = 335924;
4544pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER15_EL0: hv_register_name = 335925;
4545pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER16_EL0: hv_register_name = 335926;
4546pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER17_EL0: hv_register_name = 335927;
4547pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER18_EL0: hv_register_name = 335928;
4548pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER19_EL0: hv_register_name = 335929;
4549pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER20_EL0: hv_register_name = 335930;
4550pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER21_EL0: hv_register_name = 335931;
4551pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER22_EL0: hv_register_name = 335932;
4552pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER23_EL0: hv_register_name = 335933;
4553pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER24_EL0: hv_register_name = 335934;
4554pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER25_EL0: hv_register_name = 335935;
4555pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER26_EL0: hv_register_name = 335936;
4556pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER27_EL0: hv_register_name = 335937;
4557pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER28_EL0: hv_register_name = 335938;
4558pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER29_EL0: hv_register_name = 335939;
4559pub const hv_register_name_HV_ARM64_REGISTER_PMEVTYPER30_EL0: hv_register_name = 335940;
4560pub const hv_register_name_HV_ARM64_REGISTER_PMINTENCLR_EL1: hv_register_name = 335941;
4561pub const hv_register_name_HV_ARM64_REGISTER_PMINTENSET_EL1: hv_register_name = 335942;
4562pub const hv_register_name_HV_ARM64_REGISTER_PMMIR_EL1: hv_register_name = 335943;
4563pub const hv_register_name_HV_ARM64_REGISTER_PMOVSCLR_EL0: hv_register_name = 335944;
4564pub const hv_register_name_HV_ARM64_REGISTER_PMOVSSET_EL0: hv_register_name = 335945;
4565pub const hv_register_name_HV_ARM64_REGISTER_PMSELR_EL0: hv_register_name = 335946;
4566pub const hv_register_name_HV_ARM64_REGISTER_PMSWINC_EL0: hv_register_name = 335947;
4567pub const hv_register_name_HV_ARM64_REGISTER_PMUSERENR_EL0: hv_register_name = 335948;
4568pub const hv_register_name_HV_ARM64_REGISTER_PMXEVCNTR_EL0: hv_register_name = 335949;
4569pub const hv_register_name_HV_ARM64_REGISTER_PMXEVTYPER_EL0: hv_register_name = 335950;
4570pub const hv_register_name_HV_ARM64_REGISTER_AMEVCNTR00_EL0: hv_register_name = 339968;
4571pub const hv_register_name_HV_ARM64_REGISTER_AMEVCNTR01_EL0: hv_register_name = 339969;
4572pub const hv_register_name_HV_ARM64_REGISTER_AMEVCNTR02_EL0: hv_register_name = 339970;
4573pub const hv_register_name_HV_ARM64_REGISTER_AMEVCNTR03_EL0: hv_register_name = 339971;
4574pub const hv_register_name_HV_ARM64_REGISTER_PMBIDR_EL1: hv_register_name = 344064;
4575pub const hv_register_name_HV_ARM64_REGISTER_PMBLIMITR_EL1: hv_register_name = 344065;
4576pub const hv_register_name_HV_ARM64_REGISTER_PMBPTR_EL1: hv_register_name = 344066;
4577pub const hv_register_name_HV_ARM64_REGISTER_PMBSR_EL1: hv_register_name = 344067;
4578pub const hv_register_name_HV_ARM64_REGISTER_PMSCR_EL1: hv_register_name = 344068;
4579pub const hv_register_name_HV_ARM64_REGISTER_PMSCR_EL2: hv_register_name = 344069;
4580pub const hv_register_name_HV_ARM64_REGISTER_PMSEVFR_EL1: hv_register_name = 344070;
4581pub const hv_register_name_HV_ARM64_REGISTER_PMSFCR_EL1: hv_register_name = 344071;
4582pub const hv_register_name_HV_ARM64_REGISTER_PMSICR_EL1: hv_register_name = 344072;
4583pub const hv_register_name_HV_ARM64_REGISTER_PMSIDR_EL1: hv_register_name = 344073;
4584pub const hv_register_name_HV_ARM64_REGISTER_PMSIRR_EL1: hv_register_name = 344074;
4585pub const hv_register_name_HV_ARM64_REGISTER_PMSLATFR_EL1: hv_register_name = 344075;
4586pub const hv_register_name_HV_ARM64_REGISTER_PMSNEVFR_EL1: hv_register_name = 344076;
4587pub const hv_register_name_HV_ARM64_REGISTER_DISR_EL1: hv_register_name = 352256;
4588pub const hv_register_name_HV_ARM64_REGISTER_ERRIDR_EL1: hv_register_name = 352257;
4589pub const hv_register_name_HV_ARM64_REGISTER_ERRSELR_EL1: hv_register_name = 352258;
4590pub const hv_register_name_HV_ARM64_REGISTER_ERXADDR_EL1: hv_register_name = 352259;
4591pub const hv_register_name_HV_ARM64_REGISTER_ERXCTLR_EL1: hv_register_name = 352260;
4592pub const hv_register_name_HV_ARM64_REGISTER_ERRXFR_EL1: hv_register_name = 352261;
4593pub const hv_register_name_HV_ARM64_REGISTER_ERXMISC0_EL1: hv_register_name = 352262;
4594pub const hv_register_name_HV_ARM64_REGISTER_ERXMISC1_EL1: hv_register_name = 352263;
4595pub const hv_register_name_HV_ARM64_REGISTER_ERXMISC2_EL1: hv_register_name = 352264;
4596pub const hv_register_name_HV_ARM64_REGISTER_ERXMISC3_EL1: hv_register_name = 352265;
4597pub const hv_register_name_HV_ARM64_REGISTER_ERXPFGCDN_EL1: hv_register_name = 352266;
4598pub const hv_register_name_HV_ARM64_REGISTER_ERXPFGCTL_EL1: hv_register_name = 352267;
4599pub const hv_register_name_HV_ARM64_REGISTER_ERXPFGF_EL1: hv_register_name = 352268;
4600pub const hv_register_name_HV_ARM64_REGISTER_ERXSTATUS_EL1: hv_register_name = 352269;
4601pub const hv_register_name_HV_ARM64_REGISTER_VDISR_EL2: hv_register_name = 352270;
4602pub const hv_register_name_HV_ARM64_REGISTER_VSESR_EL2: hv_register_name = 352271;
4603pub const hv_register_name_HV_ARM64_REGISTER_CNTFRQ_EL0: hv_register_name = 360448;
4604pub const hv_register_name_HV_ARM64_REGISTER_CNTHCTL_EL2: hv_register_name = 360449;
4605pub const hv_register_name_HV_ARM64_REGISTER_CNTHP_CTL_EL2: hv_register_name = 360450;
4606pub const hv_register_name_HV_ARM64_REGISTER_CNTHP_CVAL_EL2: hv_register_name = 360451;
4607pub const hv_register_name_HV_ARM64_REGISTER_CNTHP_TVAL_EL2: hv_register_name = 360452;
4608pub const hv_register_name_HV_ARM64_REGISTER_CNTHV_CTL_EL2: hv_register_name = 360453;
4609pub const hv_register_name_HV_ARM64_REGISTER_CNTHV_CVAL_EL2: hv_register_name = 360454;
4610pub const hv_register_name_HV_ARM64_REGISTER_CNTHV_TVAL_EL2: hv_register_name = 360455;
4611pub const hv_register_name_HV_ARM64_REGISTER_CNTKCTL_EL1: hv_register_name = 360456;
4612pub const hv_register_name_HV_ARM64_REGISTER_CNTKCTL_ELX: hv_register_name = 360467;
4613pub const hv_register_name_HV_ARM64_REGISTER_CNTP_CTL_EL0: hv_register_name = 360457;
4614pub const hv_register_name_HV_ARM64_REGISTER_CNTP_CTL_ELX: hv_register_name = 360468;
4615pub const hv_register_name_HV_ARM64_REGISTER_CNTP_CVAL_EL0: hv_register_name = 360458;
4616pub const hv_register_name_HV_ARM64_REGISTER_CNTP_CVAL_ELX: hv_register_name = 360469;
4617pub const hv_register_name_HV_ARM64_REGISTER_CNTP_TVAL_EL0: hv_register_name = 360459;
4618pub const hv_register_name_HV_ARM64_REGISTER_CNTP_TVAL_ELX: hv_register_name = 360470;
4619pub const hv_register_name_HV_ARM64_REGISTER_CNTPCT_EL0: hv_register_name = 360460;
4620pub const hv_register_name_HV_ARM64_REGISTER_CNTPOFF_EL2: hv_register_name = 360461;
4621pub const hv_register_name_HV_ARM64_REGISTER_CNTV_CTL_EL0: hv_register_name = 360462;
4622pub const hv_register_name_HV_ARM64_REGISTER_CNTV_CTL_ELX: hv_register_name = 360471;
4623pub const hv_register_name_HV_ARM64_REGISTER_CNTV_CVAL_EL0: hv_register_name = 360463;
4624pub const hv_register_name_HV_ARM64_REGISTER_CNTV_CVAL_ELX: hv_register_name = 360472;
4625pub const hv_register_name_HV_ARM64_REGISTER_CNTV_TVAL_EL0: hv_register_name = 360464;
4626pub const hv_register_name_HV_ARM64_REGISTER_CNTV_TVAL_ELX: hv_register_name = 360473;
4627pub const hv_register_name_HV_ARM64_REGISTER_CNTVCT_EL0: hv_register_name = 360465;
4628pub const hv_register_name_HV_ARM64_REGISTER_CNTVOFF_EL2: hv_register_name = 360466;
4629pub const hv_register_name_HV_ARM64_REGISTER_ICC_AP1R0_EL1: hv_register_name = 393216;
4630pub const hv_register_name_HV_ARM64_REGISTER_ICC_AP1R1_EL1: hv_register_name = 393217;
4631pub const hv_register_name_HV_ARM64_REGISTER_ICC_AP1R2_EL1: hv_register_name = 393218;
4632pub const hv_register_name_HV_ARM64_REGISTER_ICC_AP1R3_EL1: hv_register_name = 393219;
4633pub const hv_register_name_HV_ARM64_REGISTER_ICC_ASGI1R_EL1: hv_register_name = 393220;
4634pub const hv_register_name_HV_ARM64_REGISTER_ICC_BPR1_EL1: hv_register_name = 393221;
4635pub const hv_register_name_HV_ARM64_REGISTER_ICC_CTLR_EL1: hv_register_name = 393222;
4636pub const hv_register_name_HV_ARM64_REGISTER_ICC_DIR_EL1: hv_register_name = 393223;
4637pub const hv_register_name_HV_ARM64_REGISTER_ICC_EOIR1_EL1: hv_register_name = 393224;
4638pub const hv_register_name_HV_ARM64_REGISTER_ICC_HPPIR1_EL1: hv_register_name = 393225;
4639pub const hv_register_name_HV_ARM64_REGISTER_ICC_IAR1_EL1: hv_register_name = 393226;
4640pub const hv_register_name_HV_ARM64_REGISTER_ICC_IGRPEN1_EL1: hv_register_name = 393227;
4641pub const hv_register_name_HV_ARM64_REGISTER_ICC_PMR_EL1: hv_register_name = 393228;
4642pub const hv_register_name_HV_ARM64_REGISTER_ICC_RPR_EL1: hv_register_name = 393229;
4643pub const hv_register_name_HV_ARM64_REGISTER_ICC_SGI1R_EL1: hv_register_name = 393230;
4644pub const hv_register_name_HV_ARM64_REGISTER_ICC_SRE_EL1: hv_register_name = 393231;
4645pub const hv_register_name_HV_ARM64_REGISTER_ICC_SRE_EL2: hv_register_name = 393232;
4646pub const hv_register_name_HV_ARM64_REGISTER_ICH_AP1R0_EL2: hv_register_name = 397312;
4647pub const hv_register_name_HV_ARM64_REGISTER_ICH_AP1R1_EL2: hv_register_name = 397313;
4648pub const hv_register_name_HV_ARM64_REGISTER_ICH_AP1R2_EL2: hv_register_name = 397314;
4649pub const hv_register_name_HV_ARM64_REGISTER_ICH_AP1R3_EL2: hv_register_name = 397315;
4650pub const hv_register_name_HV_ARM64_REGISTER_ICH_EISR_EL2: hv_register_name = 397316;
4651pub const hv_register_name_HV_ARM64_REGISTER_ICH_ELRSR_EL2: hv_register_name = 397317;
4652pub const hv_register_name_HV_ARM64_REGISTER_ICH_HCR_EL2: hv_register_name = 397318;
4653pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR0_EL2: hv_register_name = 397319;
4654pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR1_EL2: hv_register_name = 397320;
4655pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR2_EL2: hv_register_name = 397321;
4656pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR3_EL2: hv_register_name = 397322;
4657pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR4_EL2: hv_register_name = 397323;
4658pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR5_EL2: hv_register_name = 397324;
4659pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR6_EL2: hv_register_name = 397325;
4660pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR7_EL2: hv_register_name = 397326;
4661pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR8_EL2: hv_register_name = 397327;
4662pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR9_EL2: hv_register_name = 397328;
4663pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR10_EL2: hv_register_name = 397329;
4664pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR11_EL2: hv_register_name = 397330;
4665pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR12_EL2: hv_register_name = 397331;
4666pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR13_EL2: hv_register_name = 397332;
4667pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR14_EL2: hv_register_name = 397333;
4668pub const hv_register_name_HV_ARM64_REGISTER_ICH_LR15_EL2: hv_register_name = 397334;
4669pub const hv_register_name_HV_ARM64_REGISTER_ICH_MISR_EL2: hv_register_name = 397335;
4670pub const hv_register_name_HV_ARM64_REGISTER_ICH_VMCR_EL2: hv_register_name = 397336;
4671pub const hv_register_name_HV_ARM64_REGISTER_ICH_VTR_EL2: hv_register_name = 397337;
4672pub const hv_register_name_HV_ARM64_REGISTER_GICR_BASE_GPA: hv_register_name = 405504;
4673pub const hv_register_name_HV_ARM64_REGISTER_INTERFACE_VERSION: hv_register_name = 589830;
4674pub const hv_register_name_HV_ARM64_REGISTER_PARTITION_INFO_PAGE: hv_register_name = 589845;
4675pub const hv_register_name_HV_ARM64_REGISTER_SYNTHETIC_ESR_EL1: hv_register_name = 263169;
4676pub const hv_register_name_HV_ARM64_REGISTER_SYNTHETIC_VBAR_EL1: hv_register_name = 263168;
4677pub const hv_register_name_HV_ARM64_REGISTER_TLBI_CONTROL: hv_register_name = 589846;
4678pub const hv_register_name_HV_ARM64_REGISTER_GLOBAL_INTERRUPT_STATE_CHUNK_SIZE: hv_register_name =
4679 458752;
4680pub const hv_register_name_HV_ARM64_REGISTER_MPAM0_EL1: hv_register_name = 462848;
4681pub const hv_register_name_HV_ARM64_REGISTER_MPAM1_EL1: hv_register_name = 462849;
4682pub const hv_register_name_HV_ARM64_REGISTER_MPAM2_EL2: hv_register_name = 462850;
4683pub const hv_register_name_HV_ARM64_REGISTER_MPAMHCR_EL2: hv_register_name = 462851;
4684pub const hv_register_name_HV_ARM64_REGISTER_MPAMIDR_EL1: hv_register_name = 462852;
4685pub const hv_register_name_HV_ARM64_REGISTER_MPAMSM_EL1: hv_register_name = 462853;
4686pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPM0_EL2: hv_register_name = 462854;
4687pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPM1_EL2: hv_register_name = 462855;
4688pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPM2_EL2: hv_register_name = 462856;
4689pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPM3_EL2: hv_register_name = 462857;
4690pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPM4_EL2: hv_register_name = 462858;
4691pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPM5_EL2: hv_register_name = 462859;
4692pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPM6_EL2: hv_register_name = 462860;
4693pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPM7_EL2: hv_register_name = 462861;
4694pub const hv_register_name_HV_ARM64_REGISTER_MPAMVPMV_EL2: hv_register_name = 462862;
4695pub type hv_register_name = ::std::os::raw::c_uint;
4696#[repr(C)]
4697#[derive(Copy, Clone)]
4698pub union hv_explicit_suspend_register {
4699 pub as_uint64: __u64,
4700 pub __bindgen_anon_1: hv_explicit_suspend_register__bindgen_ty_1,
4701}
4702#[repr(C, packed)]
4703#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
4704pub struct hv_explicit_suspend_register__bindgen_ty_1 {
4705 pub _bitfield_align_1: [u8; 0],
4706 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
4707}
4708#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4709const _: () = {
4710 ["Size of hv_explicit_suspend_register__bindgen_ty_1"]
4711 [::std::mem::size_of::<hv_explicit_suspend_register__bindgen_ty_1>() - 8usize];
4712 ["Alignment of hv_explicit_suspend_register__bindgen_ty_1"]
4713 [::std::mem::align_of::<hv_explicit_suspend_register__bindgen_ty_1>() - 1usize];
4714};
4715impl hv_explicit_suspend_register__bindgen_ty_1 {
4716 #[inline]
4717 pub fn suspended(&self) -> __u64 {
4718 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
4719 }
4720 #[inline]
4721 pub fn set_suspended(&mut self, val: __u64) {
4722 unsafe {
4723 let val: u64 = ::std::mem::transmute(val);
4724 self._bitfield_1.set(0usize, 1u8, val as u64)
4725 }
4726 }
4727 #[inline]
4728 pub unsafe fn suspended_raw(this: *const Self) -> __u64 {
4729 unsafe {
4730 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4731 ::std::ptr::addr_of!((*this)._bitfield_1),
4732 0usize,
4733 1u8,
4734 ) as u64)
4735 }
4736 }
4737 #[inline]
4738 pub unsafe fn set_suspended_raw(this: *mut Self, val: __u64) {
4739 unsafe {
4740 let val: u64 = ::std::mem::transmute(val);
4741 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4742 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4743 0usize,
4744 1u8,
4745 val as u64,
4746 )
4747 }
4748 }
4749 #[inline]
4750 pub fn reserved(&self) -> __u64 {
4751 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 63u8) as u64) }
4752 }
4753 #[inline]
4754 pub fn set_reserved(&mut self, val: __u64) {
4755 unsafe {
4756 let val: u64 = ::std::mem::transmute(val);
4757 self._bitfield_1.set(1usize, 63u8, val as u64)
4758 }
4759 }
4760 #[inline]
4761 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
4762 unsafe {
4763 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4764 ::std::ptr::addr_of!((*this)._bitfield_1),
4765 1usize,
4766 63u8,
4767 ) as u64)
4768 }
4769 }
4770 #[inline]
4771 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
4772 unsafe {
4773 let val: u64 = ::std::mem::transmute(val);
4774 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4775 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4776 1usize,
4777 63u8,
4778 val as u64,
4779 )
4780 }
4781 }
4782 #[inline]
4783 pub fn new_bitfield_1(
4784 suspended: __u64,
4785 reserved: __u64,
4786 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
4787 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
4788 __bindgen_bitfield_unit.set(0usize, 1u8, {
4789 let suspended: u64 = unsafe { ::std::mem::transmute(suspended) };
4790 suspended as u64
4791 });
4792 __bindgen_bitfield_unit.set(1usize, 63u8, {
4793 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
4794 reserved as u64
4795 });
4796 __bindgen_bitfield_unit
4797 }
4798}
4799#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4800const _: () = {
4801 ["Size of hv_explicit_suspend_register"]
4802 [::std::mem::size_of::<hv_explicit_suspend_register>() - 8usize];
4803 ["Alignment of hv_explicit_suspend_register"]
4804 [::std::mem::align_of::<hv_explicit_suspend_register>() - 8usize];
4805 ["Offset of field: hv_explicit_suspend_register::as_uint64"]
4806 [::std::mem::offset_of!(hv_explicit_suspend_register, as_uint64) - 0usize];
4807};
4808impl Default for hv_explicit_suspend_register {
4809 fn default() -> Self {
4810 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4811 unsafe {
4812 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4813 s.assume_init()
4814 }
4815 }
4816}
4817#[repr(C)]
4818#[derive(Copy, Clone)]
4819pub union hv_intercept_suspend_register {
4820 pub as_uint64: __u64,
4821 pub __bindgen_anon_1: hv_intercept_suspend_register__bindgen_ty_1,
4822}
4823#[repr(C, packed)]
4824#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
4825pub struct hv_intercept_suspend_register__bindgen_ty_1 {
4826 pub _bitfield_align_1: [u8; 0],
4827 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
4828}
4829#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4830const _: () = {
4831 ["Size of hv_intercept_suspend_register__bindgen_ty_1"]
4832 [::std::mem::size_of::<hv_intercept_suspend_register__bindgen_ty_1>() - 8usize];
4833 ["Alignment of hv_intercept_suspend_register__bindgen_ty_1"]
4834 [::std::mem::align_of::<hv_intercept_suspend_register__bindgen_ty_1>() - 1usize];
4835};
4836impl hv_intercept_suspend_register__bindgen_ty_1 {
4837 #[inline]
4838 pub fn suspended(&self) -> __u64 {
4839 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
4840 }
4841 #[inline]
4842 pub fn set_suspended(&mut self, val: __u64) {
4843 unsafe {
4844 let val: u64 = ::std::mem::transmute(val);
4845 self._bitfield_1.set(0usize, 1u8, val as u64)
4846 }
4847 }
4848 #[inline]
4849 pub unsafe fn suspended_raw(this: *const Self) -> __u64 {
4850 unsafe {
4851 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4852 ::std::ptr::addr_of!((*this)._bitfield_1),
4853 0usize,
4854 1u8,
4855 ) as u64)
4856 }
4857 }
4858 #[inline]
4859 pub unsafe fn set_suspended_raw(this: *mut Self, val: __u64) {
4860 unsafe {
4861 let val: u64 = ::std::mem::transmute(val);
4862 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4863 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4864 0usize,
4865 1u8,
4866 val as u64,
4867 )
4868 }
4869 }
4870 #[inline]
4871 pub fn reserved(&self) -> __u64 {
4872 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 63u8) as u64) }
4873 }
4874 #[inline]
4875 pub fn set_reserved(&mut self, val: __u64) {
4876 unsafe {
4877 let val: u64 = ::std::mem::transmute(val);
4878 self._bitfield_1.set(1usize, 63u8, val as u64)
4879 }
4880 }
4881 #[inline]
4882 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
4883 unsafe {
4884 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4885 ::std::ptr::addr_of!((*this)._bitfield_1),
4886 1usize,
4887 63u8,
4888 ) as u64)
4889 }
4890 }
4891 #[inline]
4892 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
4893 unsafe {
4894 let val: u64 = ::std::mem::transmute(val);
4895 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4896 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4897 1usize,
4898 63u8,
4899 val as u64,
4900 )
4901 }
4902 }
4903 #[inline]
4904 pub fn new_bitfield_1(
4905 suspended: __u64,
4906 reserved: __u64,
4907 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
4908 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
4909 __bindgen_bitfield_unit.set(0usize, 1u8, {
4910 let suspended: u64 = unsafe { ::std::mem::transmute(suspended) };
4911 suspended as u64
4912 });
4913 __bindgen_bitfield_unit.set(1usize, 63u8, {
4914 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
4915 reserved as u64
4916 });
4917 __bindgen_bitfield_unit
4918 }
4919}
4920#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4921const _: () = {
4922 ["Size of hv_intercept_suspend_register"]
4923 [::std::mem::size_of::<hv_intercept_suspend_register>() - 8usize];
4924 ["Alignment of hv_intercept_suspend_register"]
4925 [::std::mem::align_of::<hv_intercept_suspend_register>() - 8usize];
4926 ["Offset of field: hv_intercept_suspend_register::as_uint64"]
4927 [::std::mem::offset_of!(hv_intercept_suspend_register, as_uint64) - 0usize];
4928};
4929impl Default for hv_intercept_suspend_register {
4930 fn default() -> Self {
4931 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4932 unsafe {
4933 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4934 s.assume_init()
4935 }
4936 }
4937}
4938#[repr(C)]
4939#[derive(Copy, Clone)]
4940pub union hv_internal_activity_register {
4941 pub as_uint64: __u64,
4942 pub __bindgen_anon_1: hv_internal_activity_register__bindgen_ty_1,
4943}
4944#[repr(C, packed)]
4945#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
4946pub struct hv_internal_activity_register__bindgen_ty_1 {
4947 pub _bitfield_align_1: [u8; 0],
4948 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
4949}
4950#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4951const _: () = {
4952 ["Size of hv_internal_activity_register__bindgen_ty_1"]
4953 [::std::mem::size_of::<hv_internal_activity_register__bindgen_ty_1>() - 8usize];
4954 ["Alignment of hv_internal_activity_register__bindgen_ty_1"]
4955 [::std::mem::align_of::<hv_internal_activity_register__bindgen_ty_1>() - 1usize];
4956};
4957impl hv_internal_activity_register__bindgen_ty_1 {
4958 #[inline]
4959 pub fn startup_suspend(&self) -> __u64 {
4960 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
4961 }
4962 #[inline]
4963 pub fn set_startup_suspend(&mut self, val: __u64) {
4964 unsafe {
4965 let val: u64 = ::std::mem::transmute(val);
4966 self._bitfield_1.set(0usize, 1u8, val as u64)
4967 }
4968 }
4969 #[inline]
4970 pub unsafe fn startup_suspend_raw(this: *const Self) -> __u64 {
4971 unsafe {
4972 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4973 ::std::ptr::addr_of!((*this)._bitfield_1),
4974 0usize,
4975 1u8,
4976 ) as u64)
4977 }
4978 }
4979 #[inline]
4980 pub unsafe fn set_startup_suspend_raw(this: *mut Self, val: __u64) {
4981 unsafe {
4982 let val: u64 = ::std::mem::transmute(val);
4983 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4984 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
4985 0usize,
4986 1u8,
4987 val as u64,
4988 )
4989 }
4990 }
4991 #[inline]
4992 pub fn halt_suspend(&self) -> __u64 {
4993 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
4994 }
4995 #[inline]
4996 pub fn set_halt_suspend(&mut self, val: __u64) {
4997 unsafe {
4998 let val: u64 = ::std::mem::transmute(val);
4999 self._bitfield_1.set(1usize, 1u8, val as u64)
5000 }
5001 }
5002 #[inline]
5003 pub unsafe fn halt_suspend_raw(this: *const Self) -> __u64 {
5004 unsafe {
5005 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5006 ::std::ptr::addr_of!((*this)._bitfield_1),
5007 1usize,
5008 1u8,
5009 ) as u64)
5010 }
5011 }
5012 #[inline]
5013 pub unsafe fn set_halt_suspend_raw(this: *mut Self, val: __u64) {
5014 unsafe {
5015 let val: u64 = ::std::mem::transmute(val);
5016 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5017 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5018 1usize,
5019 1u8,
5020 val as u64,
5021 )
5022 }
5023 }
5024 #[inline]
5025 pub fn idle_suspend(&self) -> __u64 {
5026 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
5027 }
5028 #[inline]
5029 pub fn set_idle_suspend(&mut self, val: __u64) {
5030 unsafe {
5031 let val: u64 = ::std::mem::transmute(val);
5032 self._bitfield_1.set(2usize, 1u8, val as u64)
5033 }
5034 }
5035 #[inline]
5036 pub unsafe fn idle_suspend_raw(this: *const Self) -> __u64 {
5037 unsafe {
5038 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5039 ::std::ptr::addr_of!((*this)._bitfield_1),
5040 2usize,
5041 1u8,
5042 ) as u64)
5043 }
5044 }
5045 #[inline]
5046 pub unsafe fn set_idle_suspend_raw(this: *mut Self, val: __u64) {
5047 unsafe {
5048 let val: u64 = ::std::mem::transmute(val);
5049 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5050 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5051 2usize,
5052 1u8,
5053 val as u64,
5054 )
5055 }
5056 }
5057 #[inline]
5058 pub fn rsvd_z(&self) -> __u64 {
5059 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 61u8) as u64) }
5060 }
5061 #[inline]
5062 pub fn set_rsvd_z(&mut self, val: __u64) {
5063 unsafe {
5064 let val: u64 = ::std::mem::transmute(val);
5065 self._bitfield_1.set(3usize, 61u8, val as u64)
5066 }
5067 }
5068 #[inline]
5069 pub unsafe fn rsvd_z_raw(this: *const Self) -> __u64 {
5070 unsafe {
5071 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5072 ::std::ptr::addr_of!((*this)._bitfield_1),
5073 3usize,
5074 61u8,
5075 ) as u64)
5076 }
5077 }
5078 #[inline]
5079 pub unsafe fn set_rsvd_z_raw(this: *mut Self, val: __u64) {
5080 unsafe {
5081 let val: u64 = ::std::mem::transmute(val);
5082 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5083 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5084 3usize,
5085 61u8,
5086 val as u64,
5087 )
5088 }
5089 }
5090 #[inline]
5091 pub fn new_bitfield_1(
5092 startup_suspend: __u64,
5093 halt_suspend: __u64,
5094 idle_suspend: __u64,
5095 rsvd_z: __u64,
5096 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
5097 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
5098 __bindgen_bitfield_unit.set(0usize, 1u8, {
5099 let startup_suspend: u64 = unsafe { ::std::mem::transmute(startup_suspend) };
5100 startup_suspend as u64
5101 });
5102 __bindgen_bitfield_unit.set(1usize, 1u8, {
5103 let halt_suspend: u64 = unsafe { ::std::mem::transmute(halt_suspend) };
5104 halt_suspend as u64
5105 });
5106 __bindgen_bitfield_unit.set(2usize, 1u8, {
5107 let idle_suspend: u64 = unsafe { ::std::mem::transmute(idle_suspend) };
5108 idle_suspend as u64
5109 });
5110 __bindgen_bitfield_unit.set(3usize, 61u8, {
5111 let rsvd_z: u64 = unsafe { ::std::mem::transmute(rsvd_z) };
5112 rsvd_z as u64
5113 });
5114 __bindgen_bitfield_unit
5115 }
5116}
5117#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5118const _: () = {
5119 ["Size of hv_internal_activity_register"]
5120 [::std::mem::size_of::<hv_internal_activity_register>() - 8usize];
5121 ["Alignment of hv_internal_activity_register"]
5122 [::std::mem::align_of::<hv_internal_activity_register>() - 8usize];
5123 ["Offset of field: hv_internal_activity_register::as_uint64"]
5124 [::std::mem::offset_of!(hv_internal_activity_register, as_uint64) - 0usize];
5125};
5126impl Default for hv_internal_activity_register {
5127 fn default() -> Self {
5128 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5129 unsafe {
5130 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5131 s.assume_init()
5132 }
5133 }
5134}
5135#[repr(C)]
5136#[derive(Copy, Clone)]
5137pub union hv_x64_interrupt_state_register {
5138 pub as_uint64: __u64,
5139 pub __bindgen_anon_1: hv_x64_interrupt_state_register__bindgen_ty_1,
5140}
5141#[repr(C, packed)]
5142#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
5143pub struct hv_x64_interrupt_state_register__bindgen_ty_1 {
5144 pub _bitfield_align_1: [u8; 0],
5145 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
5146}
5147#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5148const _: () = {
5149 ["Size of hv_x64_interrupt_state_register__bindgen_ty_1"]
5150 [::std::mem::size_of::<hv_x64_interrupt_state_register__bindgen_ty_1>() - 8usize];
5151 ["Alignment of hv_x64_interrupt_state_register__bindgen_ty_1"]
5152 [::std::mem::align_of::<hv_x64_interrupt_state_register__bindgen_ty_1>() - 1usize];
5153};
5154impl hv_x64_interrupt_state_register__bindgen_ty_1 {
5155 #[inline]
5156 pub fn interrupt_shadow(&self) -> __u64 {
5157 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
5158 }
5159 #[inline]
5160 pub fn set_interrupt_shadow(&mut self, val: __u64) {
5161 unsafe {
5162 let val: u64 = ::std::mem::transmute(val);
5163 self._bitfield_1.set(0usize, 1u8, val as u64)
5164 }
5165 }
5166 #[inline]
5167 pub unsafe fn interrupt_shadow_raw(this: *const Self) -> __u64 {
5168 unsafe {
5169 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5170 ::std::ptr::addr_of!((*this)._bitfield_1),
5171 0usize,
5172 1u8,
5173 ) as u64)
5174 }
5175 }
5176 #[inline]
5177 pub unsafe fn set_interrupt_shadow_raw(this: *mut Self, val: __u64) {
5178 unsafe {
5179 let val: u64 = ::std::mem::transmute(val);
5180 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5181 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5182 0usize,
5183 1u8,
5184 val as u64,
5185 )
5186 }
5187 }
5188 #[inline]
5189 pub fn nmi_masked(&self) -> __u64 {
5190 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
5191 }
5192 #[inline]
5193 pub fn set_nmi_masked(&mut self, val: __u64) {
5194 unsafe {
5195 let val: u64 = ::std::mem::transmute(val);
5196 self._bitfield_1.set(1usize, 1u8, val as u64)
5197 }
5198 }
5199 #[inline]
5200 pub unsafe fn nmi_masked_raw(this: *const Self) -> __u64 {
5201 unsafe {
5202 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5203 ::std::ptr::addr_of!((*this)._bitfield_1),
5204 1usize,
5205 1u8,
5206 ) as u64)
5207 }
5208 }
5209 #[inline]
5210 pub unsafe fn set_nmi_masked_raw(this: *mut Self, val: __u64) {
5211 unsafe {
5212 let val: u64 = ::std::mem::transmute(val);
5213 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5214 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5215 1usize,
5216 1u8,
5217 val as u64,
5218 )
5219 }
5220 }
5221 #[inline]
5222 pub fn reserved(&self) -> __u64 {
5223 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 62u8) as u64) }
5224 }
5225 #[inline]
5226 pub fn set_reserved(&mut self, val: __u64) {
5227 unsafe {
5228 let val: u64 = ::std::mem::transmute(val);
5229 self._bitfield_1.set(2usize, 62u8, val as u64)
5230 }
5231 }
5232 #[inline]
5233 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
5234 unsafe {
5235 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5236 ::std::ptr::addr_of!((*this)._bitfield_1),
5237 2usize,
5238 62u8,
5239 ) as u64)
5240 }
5241 }
5242 #[inline]
5243 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
5244 unsafe {
5245 let val: u64 = ::std::mem::transmute(val);
5246 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5247 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5248 2usize,
5249 62u8,
5250 val as u64,
5251 )
5252 }
5253 }
5254 #[inline]
5255 pub fn new_bitfield_1(
5256 interrupt_shadow: __u64,
5257 nmi_masked: __u64,
5258 reserved: __u64,
5259 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
5260 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
5261 __bindgen_bitfield_unit.set(0usize, 1u8, {
5262 let interrupt_shadow: u64 = unsafe { ::std::mem::transmute(interrupt_shadow) };
5263 interrupt_shadow as u64
5264 });
5265 __bindgen_bitfield_unit.set(1usize, 1u8, {
5266 let nmi_masked: u64 = unsafe { ::std::mem::transmute(nmi_masked) };
5267 nmi_masked as u64
5268 });
5269 __bindgen_bitfield_unit.set(2usize, 62u8, {
5270 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
5271 reserved as u64
5272 });
5273 __bindgen_bitfield_unit
5274 }
5275}
5276#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5277const _: () = {
5278 ["Size of hv_x64_interrupt_state_register"]
5279 [::std::mem::size_of::<hv_x64_interrupt_state_register>() - 8usize];
5280 ["Alignment of hv_x64_interrupt_state_register"]
5281 [::std::mem::align_of::<hv_x64_interrupt_state_register>() - 8usize];
5282 ["Offset of field: hv_x64_interrupt_state_register::as_uint64"]
5283 [::std::mem::offset_of!(hv_x64_interrupt_state_register, as_uint64) - 0usize];
5284};
5285impl Default for hv_x64_interrupt_state_register {
5286 fn default() -> Self {
5287 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5288 unsafe {
5289 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5290 s.assume_init()
5291 }
5292 }
5293}
5294#[repr(C)]
5295#[derive(Copy, Clone)]
5296pub union hv_arm64_pending_synthetic_exception_event {
5297 pub as_uint64: [__u64; 2usize],
5298 pub __bindgen_anon_1: hv_arm64_pending_synthetic_exception_event__bindgen_ty_1,
5299}
5300#[repr(C, packed)]
5301#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
5302pub struct hv_arm64_pending_synthetic_exception_event__bindgen_ty_1 {
5303 pub _bitfield_align_1: [u8; 0],
5304 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
5305 pub exception_type: __u32,
5306 pub context: __u64,
5307}
5308#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5309const _: () = {
5310 ["Size of hv_arm64_pending_synthetic_exception_event__bindgen_ty_1"][::std::mem::size_of::<
5311 hv_arm64_pending_synthetic_exception_event__bindgen_ty_1,
5312 >() - 13usize];
5313 ["Alignment of hv_arm64_pending_synthetic_exception_event__bindgen_ty_1"][::std::mem::align_of::<
5314 hv_arm64_pending_synthetic_exception_event__bindgen_ty_1,
5315 >() - 1usize];
5316 ["Offset of field: hv_arm64_pending_synthetic_exception_event__bindgen_ty_1::exception_type"][::std::mem::offset_of!(
5317 hv_arm64_pending_synthetic_exception_event__bindgen_ty_1,
5318 exception_type
5319 )
5320 - 1usize];
5321 ["Offset of field: hv_arm64_pending_synthetic_exception_event__bindgen_ty_1::context"][::std::mem::offset_of!(
5322 hv_arm64_pending_synthetic_exception_event__bindgen_ty_1,
5323 context
5324 )
5325 - 5usize];
5326};
5327impl hv_arm64_pending_synthetic_exception_event__bindgen_ty_1 {
5328 #[inline]
5329 pub fn event_pending(&self) -> __u8 {
5330 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
5331 }
5332 #[inline]
5333 pub fn set_event_pending(&mut self, val: __u8) {
5334 unsafe {
5335 let val: u8 = ::std::mem::transmute(val);
5336 self._bitfield_1.set(0usize, 1u8, val as u64)
5337 }
5338 }
5339 #[inline]
5340 pub unsafe fn event_pending_raw(this: *const Self) -> __u8 {
5341 unsafe {
5342 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
5343 ::std::ptr::addr_of!((*this)._bitfield_1),
5344 0usize,
5345 1u8,
5346 ) as u8)
5347 }
5348 }
5349 #[inline]
5350 pub unsafe fn set_event_pending_raw(this: *mut Self, val: __u8) {
5351 unsafe {
5352 let val: u8 = ::std::mem::transmute(val);
5353 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
5354 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5355 0usize,
5356 1u8,
5357 val as u64,
5358 )
5359 }
5360 }
5361 #[inline]
5362 pub fn event_type(&self) -> __u8 {
5363 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u8) }
5364 }
5365 #[inline]
5366 pub fn set_event_type(&mut self, val: __u8) {
5367 unsafe {
5368 let val: u8 = ::std::mem::transmute(val);
5369 self._bitfield_1.set(1usize, 3u8, val as u64)
5370 }
5371 }
5372 #[inline]
5373 pub unsafe fn event_type_raw(this: *const Self) -> __u8 {
5374 unsafe {
5375 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
5376 ::std::ptr::addr_of!((*this)._bitfield_1),
5377 1usize,
5378 3u8,
5379 ) as u8)
5380 }
5381 }
5382 #[inline]
5383 pub unsafe fn set_event_type_raw(this: *mut Self, val: __u8) {
5384 unsafe {
5385 let val: u8 = ::std::mem::transmute(val);
5386 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
5387 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5388 1usize,
5389 3u8,
5390 val as u64,
5391 )
5392 }
5393 }
5394 #[inline]
5395 pub fn reserved(&self) -> __u8 {
5396 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
5397 }
5398 #[inline]
5399 pub fn set_reserved(&mut self, val: __u8) {
5400 unsafe {
5401 let val: u8 = ::std::mem::transmute(val);
5402 self._bitfield_1.set(4usize, 4u8, val as u64)
5403 }
5404 }
5405 #[inline]
5406 pub unsafe fn reserved_raw(this: *const Self) -> __u8 {
5407 unsafe {
5408 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
5409 ::std::ptr::addr_of!((*this)._bitfield_1),
5410 4usize,
5411 4u8,
5412 ) as u8)
5413 }
5414 }
5415 #[inline]
5416 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u8) {
5417 unsafe {
5418 let val: u8 = ::std::mem::transmute(val);
5419 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
5420 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5421 4usize,
5422 4u8,
5423 val as u64,
5424 )
5425 }
5426 }
5427 #[inline]
5428 pub fn new_bitfield_1(
5429 event_pending: __u8,
5430 event_type: __u8,
5431 reserved: __u8,
5432 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
5433 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
5434 __bindgen_bitfield_unit.set(0usize, 1u8, {
5435 let event_pending: u8 = unsafe { ::std::mem::transmute(event_pending) };
5436 event_pending as u64
5437 });
5438 __bindgen_bitfield_unit.set(1usize, 3u8, {
5439 let event_type: u8 = unsafe { ::std::mem::transmute(event_type) };
5440 event_type as u64
5441 });
5442 __bindgen_bitfield_unit.set(4usize, 4u8, {
5443 let reserved: u8 = unsafe { ::std::mem::transmute(reserved) };
5444 reserved as u64
5445 });
5446 __bindgen_bitfield_unit
5447 }
5448}
5449#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5450const _: () = {
5451 ["Size of hv_arm64_pending_synthetic_exception_event"]
5452 [::std::mem::size_of::<hv_arm64_pending_synthetic_exception_event>() - 16usize];
5453 ["Alignment of hv_arm64_pending_synthetic_exception_event"]
5454 [::std::mem::align_of::<hv_arm64_pending_synthetic_exception_event>() - 8usize];
5455 ["Offset of field: hv_arm64_pending_synthetic_exception_event::as_uint64"]
5456 [::std::mem::offset_of!(hv_arm64_pending_synthetic_exception_event, as_uint64) - 0usize];
5457};
5458impl Default for hv_arm64_pending_synthetic_exception_event {
5459 fn default() -> Self {
5460 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5461 unsafe {
5462 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5463 s.assume_init()
5464 }
5465 }
5466}
5467#[repr(C)]
5468#[derive(Copy, Clone)]
5469pub union hv_arm64_interrupt_state_register {
5470 pub as_uint64: __u64,
5471 pub __bindgen_anon_1: hv_arm64_interrupt_state_register__bindgen_ty_1,
5472}
5473#[repr(C, packed)]
5474#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
5475pub struct hv_arm64_interrupt_state_register__bindgen_ty_1 {
5476 pub _bitfield_align_1: [u8; 0],
5477 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
5478}
5479#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5480const _: () = {
5481 ["Size of hv_arm64_interrupt_state_register__bindgen_ty_1"]
5482 [::std::mem::size_of::<hv_arm64_interrupt_state_register__bindgen_ty_1>() - 8usize];
5483 ["Alignment of hv_arm64_interrupt_state_register__bindgen_ty_1"]
5484 [::std::mem::align_of::<hv_arm64_interrupt_state_register__bindgen_ty_1>() - 1usize];
5485};
5486impl hv_arm64_interrupt_state_register__bindgen_ty_1 {
5487 #[inline]
5488 pub fn interrupt_shadow(&self) -> __u64 {
5489 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
5490 }
5491 #[inline]
5492 pub fn set_interrupt_shadow(&mut self, val: __u64) {
5493 unsafe {
5494 let val: u64 = ::std::mem::transmute(val);
5495 self._bitfield_1.set(0usize, 1u8, val as u64)
5496 }
5497 }
5498 #[inline]
5499 pub unsafe fn interrupt_shadow_raw(this: *const Self) -> __u64 {
5500 unsafe {
5501 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5502 ::std::ptr::addr_of!((*this)._bitfield_1),
5503 0usize,
5504 1u8,
5505 ) as u64)
5506 }
5507 }
5508 #[inline]
5509 pub unsafe fn set_interrupt_shadow_raw(this: *mut Self, val: __u64) {
5510 unsafe {
5511 let val: u64 = ::std::mem::transmute(val);
5512 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5513 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5514 0usize,
5515 1u8,
5516 val as u64,
5517 )
5518 }
5519 }
5520 #[inline]
5521 pub fn reserved(&self) -> __u64 {
5522 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 63u8) as u64) }
5523 }
5524 #[inline]
5525 pub fn set_reserved(&mut self, val: __u64) {
5526 unsafe {
5527 let val: u64 = ::std::mem::transmute(val);
5528 self._bitfield_1.set(1usize, 63u8, val as u64)
5529 }
5530 }
5531 #[inline]
5532 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
5533 unsafe {
5534 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5535 ::std::ptr::addr_of!((*this)._bitfield_1),
5536 1usize,
5537 63u8,
5538 ) as u64)
5539 }
5540 }
5541 #[inline]
5542 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
5543 unsafe {
5544 let val: u64 = ::std::mem::transmute(val);
5545 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5546 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5547 1usize,
5548 63u8,
5549 val as u64,
5550 )
5551 }
5552 }
5553 #[inline]
5554 pub fn new_bitfield_1(
5555 interrupt_shadow: __u64,
5556 reserved: __u64,
5557 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
5558 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
5559 __bindgen_bitfield_unit.set(0usize, 1u8, {
5560 let interrupt_shadow: u64 = unsafe { ::std::mem::transmute(interrupt_shadow) };
5561 interrupt_shadow as u64
5562 });
5563 __bindgen_bitfield_unit.set(1usize, 63u8, {
5564 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
5565 reserved as u64
5566 });
5567 __bindgen_bitfield_unit
5568 }
5569}
5570#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5571const _: () = {
5572 ["Size of hv_arm64_interrupt_state_register"]
5573 [::std::mem::size_of::<hv_arm64_interrupt_state_register>() - 8usize];
5574 ["Alignment of hv_arm64_interrupt_state_register"]
5575 [::std::mem::align_of::<hv_arm64_interrupt_state_register>() - 8usize];
5576 ["Offset of field: hv_arm64_interrupt_state_register::as_uint64"]
5577 [::std::mem::offset_of!(hv_arm64_interrupt_state_register, as_uint64) - 0usize];
5578};
5579impl Default for hv_arm64_interrupt_state_register {
5580 fn default() -> Self {
5581 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5582 unsafe {
5583 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5584 s.assume_init()
5585 }
5586 }
5587}
5588pub const hv_arm64_pending_interruption_type_HV_ARM64_PENDING_INTERRUPT:
5589 hv_arm64_pending_interruption_type = 0;
5590pub const hv_arm64_pending_interruption_type_HV_ARM64_PENDING_EXCEPTION:
5591 hv_arm64_pending_interruption_type = 1;
5592pub type hv_arm64_pending_interruption_type = ::std::os::raw::c_uint;
5593#[repr(C)]
5594#[derive(Copy, Clone)]
5595pub union hv_arm64_pending_interruption_register {
5596 pub as_uint64: __u64,
5597 pub __bindgen_anon_1: hv_arm64_pending_interruption_register__bindgen_ty_1,
5598}
5599#[repr(C, packed)]
5600#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
5601pub struct hv_arm64_pending_interruption_register__bindgen_ty_1 {
5602 pub _bitfield_align_1: [u8; 0],
5603 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
5604}
5605#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5606const _: () = {
5607 ["Size of hv_arm64_pending_interruption_register__bindgen_ty_1"]
5608 [::std::mem::size_of::<hv_arm64_pending_interruption_register__bindgen_ty_1>() - 8usize];
5609 ["Alignment of hv_arm64_pending_interruption_register__bindgen_ty_1"]
5610 [::std::mem::align_of::<hv_arm64_pending_interruption_register__bindgen_ty_1>() - 1usize];
5611};
5612impl hv_arm64_pending_interruption_register__bindgen_ty_1 {
5613 #[inline]
5614 pub fn interruption_pending(&self) -> __u64 {
5615 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
5616 }
5617 #[inline]
5618 pub fn set_interruption_pending(&mut self, val: __u64) {
5619 unsafe {
5620 let val: u64 = ::std::mem::transmute(val);
5621 self._bitfield_1.set(0usize, 1u8, val as u64)
5622 }
5623 }
5624 #[inline]
5625 pub unsafe fn interruption_pending_raw(this: *const Self) -> __u64 {
5626 unsafe {
5627 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5628 ::std::ptr::addr_of!((*this)._bitfield_1),
5629 0usize,
5630 1u8,
5631 ) as u64)
5632 }
5633 }
5634 #[inline]
5635 pub unsafe fn set_interruption_pending_raw(this: *mut Self, val: __u64) {
5636 unsafe {
5637 let val: u64 = ::std::mem::transmute(val);
5638 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5639 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5640 0usize,
5641 1u8,
5642 val as u64,
5643 )
5644 }
5645 }
5646 #[inline]
5647 pub fn interruption_type(&self) -> __u64 {
5648 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
5649 }
5650 #[inline]
5651 pub fn set_interruption_type(&mut self, val: __u64) {
5652 unsafe {
5653 let val: u64 = ::std::mem::transmute(val);
5654 self._bitfield_1.set(1usize, 1u8, val as u64)
5655 }
5656 }
5657 #[inline]
5658 pub unsafe fn interruption_type_raw(this: *const Self) -> __u64 {
5659 unsafe {
5660 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5661 ::std::ptr::addr_of!((*this)._bitfield_1),
5662 1usize,
5663 1u8,
5664 ) as u64)
5665 }
5666 }
5667 #[inline]
5668 pub unsafe fn set_interruption_type_raw(this: *mut Self, val: __u64) {
5669 unsafe {
5670 let val: u64 = ::std::mem::transmute(val);
5671 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5672 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5673 1usize,
5674 1u8,
5675 val as u64,
5676 )
5677 }
5678 }
5679 #[inline]
5680 pub fn reserved(&self) -> __u64 {
5681 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u64) }
5682 }
5683 #[inline]
5684 pub fn set_reserved(&mut self, val: __u64) {
5685 unsafe {
5686 let val: u64 = ::std::mem::transmute(val);
5687 self._bitfield_1.set(2usize, 30u8, val as u64)
5688 }
5689 }
5690 #[inline]
5691 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
5692 unsafe {
5693 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5694 ::std::ptr::addr_of!((*this)._bitfield_1),
5695 2usize,
5696 30u8,
5697 ) as u64)
5698 }
5699 }
5700 #[inline]
5701 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
5702 unsafe {
5703 let val: u64 = ::std::mem::transmute(val);
5704 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5705 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5706 2usize,
5707 30u8,
5708 val as u64,
5709 )
5710 }
5711 }
5712 #[inline]
5713 pub fn error_code(&self) -> __u64 {
5714 unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 32u8) as u64) }
5715 }
5716 #[inline]
5717 pub fn set_error_code(&mut self, val: __u64) {
5718 unsafe {
5719 let val: u64 = ::std::mem::transmute(val);
5720 self._bitfield_1.set(32usize, 32u8, val as u64)
5721 }
5722 }
5723 #[inline]
5724 pub unsafe fn error_code_raw(this: *const Self) -> __u64 {
5725 unsafe {
5726 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
5727 ::std::ptr::addr_of!((*this)._bitfield_1),
5728 32usize,
5729 32u8,
5730 ) as u64)
5731 }
5732 }
5733 #[inline]
5734 pub unsafe fn set_error_code_raw(this: *mut Self, val: __u64) {
5735 unsafe {
5736 let val: u64 = ::std::mem::transmute(val);
5737 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
5738 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
5739 32usize,
5740 32u8,
5741 val as u64,
5742 )
5743 }
5744 }
5745 #[inline]
5746 pub fn new_bitfield_1(
5747 interruption_pending: __u64,
5748 interruption_type: __u64,
5749 reserved: __u64,
5750 error_code: __u64,
5751 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
5752 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
5753 __bindgen_bitfield_unit.set(0usize, 1u8, {
5754 let interruption_pending: u64 = unsafe { ::std::mem::transmute(interruption_pending) };
5755 interruption_pending as u64
5756 });
5757 __bindgen_bitfield_unit.set(1usize, 1u8, {
5758 let interruption_type: u64 = unsafe { ::std::mem::transmute(interruption_type) };
5759 interruption_type as u64
5760 });
5761 __bindgen_bitfield_unit.set(2usize, 30u8, {
5762 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
5763 reserved as u64
5764 });
5765 __bindgen_bitfield_unit.set(32usize, 32u8, {
5766 let error_code: u64 = unsafe { ::std::mem::transmute(error_code) };
5767 error_code as u64
5768 });
5769 __bindgen_bitfield_unit
5770 }
5771}
5772#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5773const _: () = {
5774 ["Size of hv_arm64_pending_interruption_register"]
5775 [::std::mem::size_of::<hv_arm64_pending_interruption_register>() - 8usize];
5776 ["Alignment of hv_arm64_pending_interruption_register"]
5777 [::std::mem::align_of::<hv_arm64_pending_interruption_register>() - 8usize];
5778 ["Offset of field: hv_arm64_pending_interruption_register::as_uint64"]
5779 [::std::mem::offset_of!(hv_arm64_pending_interruption_register, as_uint64) - 0usize];
5780};
5781impl Default for hv_arm64_pending_interruption_register {
5782 fn default() -> Self {
5783 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5784 unsafe {
5785 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5786 s.assume_init()
5787 }
5788 }
5789}
5790#[repr(C)]
5791#[derive(Copy, Clone)]
5792pub union hv_register_value {
5793 pub reg128: hv_u128,
5794 pub reg64: __u64,
5795 pub reg32: __u32,
5796 pub reg16: __u16,
5797 pub reg8: __u8,
5798 pub explicit_suspend: hv_explicit_suspend_register,
5799 pub intercept_suspend: hv_intercept_suspend_register,
5800 pub internal_activity: hv_internal_activity_register,
5801 pub pending_interruption: hv_arm64_pending_interruption_register,
5802 pub interrupt_state: hv_arm64_interrupt_state_register,
5803 pub pending_synthetic_exception_event: hv_arm64_pending_synthetic_exception_event,
5804}
5805#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5806const _: () = {
5807 ["Size of hv_register_value"][::std::mem::size_of::<hv_register_value>() - 16usize];
5808 ["Alignment of hv_register_value"][::std::mem::align_of::<hv_register_value>() - 8usize];
5809 ["Offset of field: hv_register_value::reg128"]
5810 [::std::mem::offset_of!(hv_register_value, reg128) - 0usize];
5811 ["Offset of field: hv_register_value::reg64"]
5812 [::std::mem::offset_of!(hv_register_value, reg64) - 0usize];
5813 ["Offset of field: hv_register_value::reg32"]
5814 [::std::mem::offset_of!(hv_register_value, reg32) - 0usize];
5815 ["Offset of field: hv_register_value::reg16"]
5816 [::std::mem::offset_of!(hv_register_value, reg16) - 0usize];
5817 ["Offset of field: hv_register_value::reg8"]
5818 [::std::mem::offset_of!(hv_register_value, reg8) - 0usize];
5819 ["Offset of field: hv_register_value::explicit_suspend"]
5820 [::std::mem::offset_of!(hv_register_value, explicit_suspend) - 0usize];
5821 ["Offset of field: hv_register_value::intercept_suspend"]
5822 [::std::mem::offset_of!(hv_register_value, intercept_suspend) - 0usize];
5823 ["Offset of field: hv_register_value::internal_activity"]
5824 [::std::mem::offset_of!(hv_register_value, internal_activity) - 0usize];
5825 ["Offset of field: hv_register_value::pending_interruption"]
5826 [::std::mem::offset_of!(hv_register_value, pending_interruption) - 0usize];
5827 ["Offset of field: hv_register_value::interrupt_state"]
5828 [::std::mem::offset_of!(hv_register_value, interrupt_state) - 0usize];
5829 ["Offset of field: hv_register_value::pending_synthetic_exception_event"]
5830 [::std::mem::offset_of!(hv_register_value, pending_synthetic_exception_event) - 0usize];
5831};
5832impl Default for hv_register_value {
5833 fn default() -> Self {
5834 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5835 unsafe {
5836 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5837 s.assume_init()
5838 }
5839 }
5840}
5841#[repr(C, packed)]
5842#[derive(Copy, Clone)]
5843pub struct hv_register_assoc {
5844 pub name: __u32,
5845 pub reserved1: __u32,
5846 pub reserved2: __u64,
5847 pub value: hv_register_value,
5848}
5849#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5850const _: () = {
5851 ["Size of hv_register_assoc"][::std::mem::size_of::<hv_register_assoc>() - 32usize];
5852 ["Alignment of hv_register_assoc"][::std::mem::align_of::<hv_register_assoc>() - 1usize];
5853 ["Offset of field: hv_register_assoc::name"]
5854 [::std::mem::offset_of!(hv_register_assoc, name) - 0usize];
5855 ["Offset of field: hv_register_assoc::reserved1"]
5856 [::std::mem::offset_of!(hv_register_assoc, reserved1) - 4usize];
5857 ["Offset of field: hv_register_assoc::reserved2"]
5858 [::std::mem::offset_of!(hv_register_assoc, reserved2) - 8usize];
5859 ["Offset of field: hv_register_assoc::value"]
5860 [::std::mem::offset_of!(hv_register_assoc, value) - 16usize];
5861};
5862impl Default for hv_register_assoc {
5863 fn default() -> Self {
5864 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5865 unsafe {
5866 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5867 s.assume_init()
5868 }
5869 }
5870}
5871#[repr(C, packed)]
5872pub struct hv_input_get_vp_registers {
5873 pub partition_id: __u64,
5874 pub vp_index: __u32,
5875 pub input_vtl: hv_input_vtl,
5876 pub rsvd_z8: __u8,
5877 pub rsvd_z16: __u16,
5878 pub names: __IncompleteArrayField<__u32>,
5879}
5880#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5881const _: () = {
5882 ["Size of hv_input_get_vp_registers"]
5883 [::std::mem::size_of::<hv_input_get_vp_registers>() - 16usize];
5884 ["Alignment of hv_input_get_vp_registers"]
5885 [::std::mem::align_of::<hv_input_get_vp_registers>() - 1usize];
5886 ["Offset of field: hv_input_get_vp_registers::partition_id"]
5887 [::std::mem::offset_of!(hv_input_get_vp_registers, partition_id) - 0usize];
5888 ["Offset of field: hv_input_get_vp_registers::vp_index"]
5889 [::std::mem::offset_of!(hv_input_get_vp_registers, vp_index) - 8usize];
5890 ["Offset of field: hv_input_get_vp_registers::input_vtl"]
5891 [::std::mem::offset_of!(hv_input_get_vp_registers, input_vtl) - 12usize];
5892 ["Offset of field: hv_input_get_vp_registers::rsvd_z8"]
5893 [::std::mem::offset_of!(hv_input_get_vp_registers, rsvd_z8) - 13usize];
5894 ["Offset of field: hv_input_get_vp_registers::rsvd_z16"]
5895 [::std::mem::offset_of!(hv_input_get_vp_registers, rsvd_z16) - 14usize];
5896 ["Offset of field: hv_input_get_vp_registers::names"]
5897 [::std::mem::offset_of!(hv_input_get_vp_registers, names) - 16usize];
5898};
5899impl Default for hv_input_get_vp_registers {
5900 fn default() -> Self {
5901 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5902 unsafe {
5903 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5904 s.assume_init()
5905 }
5906 }
5907}
5908#[repr(C, packed)]
5909pub struct hv_input_set_vp_registers {
5910 pub partition_id: __u64,
5911 pub vp_index: __u32,
5912 pub input_vtl: hv_input_vtl,
5913 pub rsvd_z8: __u8,
5914 pub rsvd_z16: __u16,
5915 pub elements: __IncompleteArrayField<hv_register_assoc>,
5916}
5917#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5918const _: () = {
5919 ["Size of hv_input_set_vp_registers"]
5920 [::std::mem::size_of::<hv_input_set_vp_registers>() - 16usize];
5921 ["Alignment of hv_input_set_vp_registers"]
5922 [::std::mem::align_of::<hv_input_set_vp_registers>() - 1usize];
5923 ["Offset of field: hv_input_set_vp_registers::partition_id"]
5924 [::std::mem::offset_of!(hv_input_set_vp_registers, partition_id) - 0usize];
5925 ["Offset of field: hv_input_set_vp_registers::vp_index"]
5926 [::std::mem::offset_of!(hv_input_set_vp_registers, vp_index) - 8usize];
5927 ["Offset of field: hv_input_set_vp_registers::input_vtl"]
5928 [::std::mem::offset_of!(hv_input_set_vp_registers, input_vtl) - 12usize];
5929 ["Offset of field: hv_input_set_vp_registers::rsvd_z8"]
5930 [::std::mem::offset_of!(hv_input_set_vp_registers, rsvd_z8) - 13usize];
5931 ["Offset of field: hv_input_set_vp_registers::rsvd_z16"]
5932 [::std::mem::offset_of!(hv_input_set_vp_registers, rsvd_z16) - 14usize];
5933 ["Offset of field: hv_input_set_vp_registers::elements"]
5934 [::std::mem::offset_of!(hv_input_set_vp_registers, elements) - 16usize];
5935};
5936impl Default for hv_input_set_vp_registers {
5937 fn default() -> Self {
5938 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5939 unsafe {
5940 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5941 s.assume_init()
5942 }
5943 }
5944}
5945pub const hv_intercept_type_HV_INTERCEPT_TYPE_EXCEPTION: hv_intercept_type = 3;
5946pub const hv_intercept_type_HV_INTERCEPT_TYPE_RESERVED0: hv_intercept_type = 4;
5947pub const hv_intercept_type_HV_INTERCEPT_TYPE_MMIO: hv_intercept_type = 5;
5948pub const hv_intercept_type_HV_INTERCEPT_TYPE_HYPERCALL: hv_intercept_type = 8;
5949pub const hv_intercept_type_HV_INTERCEPT_TYPE_MAX: hv_intercept_type = 9;
5950pub const hv_intercept_type_HV_INTERCEPT_TYPE_INVALID: hv_intercept_type = 4294967295;
5951pub type hv_intercept_type = ::std::os::raw::c_uint;
5952#[repr(C)]
5953#[derive(Copy, Clone)]
5954pub union hv_intercept_parameters {
5955 pub as_uint64: __u64,
5956}
5957#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5958const _: () = {
5959 ["Size of hv_intercept_parameters"][::std::mem::size_of::<hv_intercept_parameters>() - 8usize];
5960 ["Alignment of hv_intercept_parameters"]
5961 [::std::mem::align_of::<hv_intercept_parameters>() - 8usize];
5962 ["Offset of field: hv_intercept_parameters::as_uint64"]
5963 [::std::mem::offset_of!(hv_intercept_parameters, as_uint64) - 0usize];
5964};
5965impl Default for hv_intercept_parameters {
5966 fn default() -> Self {
5967 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5968 unsafe {
5969 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5970 s.assume_init()
5971 }
5972 }
5973}
5974#[repr(C, packed)]
5975#[derive(Copy, Clone)]
5976pub struct hv_input_install_intercept {
5977 pub partition_id: __u64,
5978 pub access_type: __u32,
5979 pub intercept_type: __u32,
5980 pub intercept_parameter: hv_intercept_parameters,
5981}
5982#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5983const _: () = {
5984 ["Size of hv_input_install_intercept"]
5985 [::std::mem::size_of::<hv_input_install_intercept>() - 24usize];
5986 ["Alignment of hv_input_install_intercept"]
5987 [::std::mem::align_of::<hv_input_install_intercept>() - 1usize];
5988 ["Offset of field: hv_input_install_intercept::partition_id"]
5989 [::std::mem::offset_of!(hv_input_install_intercept, partition_id) - 0usize];
5990 ["Offset of field: hv_input_install_intercept::access_type"]
5991 [::std::mem::offset_of!(hv_input_install_intercept, access_type) - 8usize];
5992 ["Offset of field: hv_input_install_intercept::intercept_type"]
5993 [::std::mem::offset_of!(hv_input_install_intercept, intercept_type) - 12usize];
5994 ["Offset of field: hv_input_install_intercept::intercept_parameter"]
5995 [::std::mem::offset_of!(hv_input_install_intercept, intercept_parameter) - 16usize];
5996};
5997impl Default for hv_input_install_intercept {
5998 fn default() -> Self {
5999 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6000 unsafe {
6001 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6002 s.assume_init()
6003 }
6004 }
6005}
6006#[repr(C)]
6007#[derive(Copy, Clone)]
6008pub union hv_x64_register_sev_ghcb {
6009 pub as_uint64: __u64,
6010 pub __bindgen_anon_1: hv_x64_register_sev_ghcb__bindgen_ty_1,
6011}
6012#[repr(C, packed)]
6013#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
6014pub struct hv_x64_register_sev_ghcb__bindgen_ty_1 {
6015 pub _bitfield_align_1: [u8; 0],
6016 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
6017}
6018#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6019const _: () = {
6020 ["Size of hv_x64_register_sev_ghcb__bindgen_ty_1"]
6021 [::std::mem::size_of::<hv_x64_register_sev_ghcb__bindgen_ty_1>() - 8usize];
6022 ["Alignment of hv_x64_register_sev_ghcb__bindgen_ty_1"]
6023 [::std::mem::align_of::<hv_x64_register_sev_ghcb__bindgen_ty_1>() - 1usize];
6024};
6025impl hv_x64_register_sev_ghcb__bindgen_ty_1 {
6026 #[inline]
6027 pub fn enabled(&self) -> __u64 {
6028 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
6029 }
6030 #[inline]
6031 pub fn set_enabled(&mut self, val: __u64) {
6032 unsafe {
6033 let val: u64 = ::std::mem::transmute(val);
6034 self._bitfield_1.set(0usize, 1u8, val as u64)
6035 }
6036 }
6037 #[inline]
6038 pub unsafe fn enabled_raw(this: *const Self) -> __u64 {
6039 unsafe {
6040 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6041 ::std::ptr::addr_of!((*this)._bitfield_1),
6042 0usize,
6043 1u8,
6044 ) as u64)
6045 }
6046 }
6047 #[inline]
6048 pub unsafe fn set_enabled_raw(this: *mut Self, val: __u64) {
6049 unsafe {
6050 let val: u64 = ::std::mem::transmute(val);
6051 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6052 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6053 0usize,
6054 1u8,
6055 val as u64,
6056 )
6057 }
6058 }
6059 #[inline]
6060 pub fn reservedz(&self) -> __u64 {
6061 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u64) }
6062 }
6063 #[inline]
6064 pub fn set_reservedz(&mut self, val: __u64) {
6065 unsafe {
6066 let val: u64 = ::std::mem::transmute(val);
6067 self._bitfield_1.set(1usize, 11u8, val as u64)
6068 }
6069 }
6070 #[inline]
6071 pub unsafe fn reservedz_raw(this: *const Self) -> __u64 {
6072 unsafe {
6073 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6074 ::std::ptr::addr_of!((*this)._bitfield_1),
6075 1usize,
6076 11u8,
6077 ) as u64)
6078 }
6079 }
6080 #[inline]
6081 pub unsafe fn set_reservedz_raw(this: *mut Self, val: __u64) {
6082 unsafe {
6083 let val: u64 = ::std::mem::transmute(val);
6084 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6085 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6086 1usize,
6087 11u8,
6088 val as u64,
6089 )
6090 }
6091 }
6092 #[inline]
6093 pub fn page_number(&self) -> __u64 {
6094 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 52u8) as u64) }
6095 }
6096 #[inline]
6097 pub fn set_page_number(&mut self, val: __u64) {
6098 unsafe {
6099 let val: u64 = ::std::mem::transmute(val);
6100 self._bitfield_1.set(12usize, 52u8, val as u64)
6101 }
6102 }
6103 #[inline]
6104 pub unsafe fn page_number_raw(this: *const Self) -> __u64 {
6105 unsafe {
6106 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6107 ::std::ptr::addr_of!((*this)._bitfield_1),
6108 12usize,
6109 52u8,
6110 ) as u64)
6111 }
6112 }
6113 #[inline]
6114 pub unsafe fn set_page_number_raw(this: *mut Self, val: __u64) {
6115 unsafe {
6116 let val: u64 = ::std::mem::transmute(val);
6117 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6118 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6119 12usize,
6120 52u8,
6121 val as u64,
6122 )
6123 }
6124 }
6125 #[inline]
6126 pub fn new_bitfield_1(
6127 enabled: __u64,
6128 reservedz: __u64,
6129 page_number: __u64,
6130 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
6131 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
6132 __bindgen_bitfield_unit.set(0usize, 1u8, {
6133 let enabled: u64 = unsafe { ::std::mem::transmute(enabled) };
6134 enabled as u64
6135 });
6136 __bindgen_bitfield_unit.set(1usize, 11u8, {
6137 let reservedz: u64 = unsafe { ::std::mem::transmute(reservedz) };
6138 reservedz as u64
6139 });
6140 __bindgen_bitfield_unit.set(12usize, 52u8, {
6141 let page_number: u64 = unsafe { ::std::mem::transmute(page_number) };
6142 page_number as u64
6143 });
6144 __bindgen_bitfield_unit
6145 }
6146}
6147#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6148const _: () = {
6149 ["Size of hv_x64_register_sev_ghcb"]
6150 [::std::mem::size_of::<hv_x64_register_sev_ghcb>() - 8usize];
6151 ["Alignment of hv_x64_register_sev_ghcb"]
6152 [::std::mem::align_of::<hv_x64_register_sev_ghcb>() - 8usize];
6153 ["Offset of field: hv_x64_register_sev_ghcb::as_uint64"]
6154 [::std::mem::offset_of!(hv_x64_register_sev_ghcb, as_uint64) - 0usize];
6155};
6156impl Default for hv_x64_register_sev_ghcb {
6157 fn default() -> Self {
6158 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6159 unsafe {
6160 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6161 s.assume_init()
6162 }
6163 }
6164}
6165#[repr(C)]
6166#[derive(Copy, Clone)]
6167pub union hv_x64_register_sev_hv_doorbell {
6168 pub as_uint64: __u64,
6169 pub __bindgen_anon_1: hv_x64_register_sev_hv_doorbell__bindgen_ty_1,
6170}
6171#[repr(C, packed)]
6172#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
6173pub struct hv_x64_register_sev_hv_doorbell__bindgen_ty_1 {
6174 pub _bitfield_align_1: [u8; 0],
6175 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
6176}
6177#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6178const _: () = {
6179 ["Size of hv_x64_register_sev_hv_doorbell__bindgen_ty_1"]
6180 [::std::mem::size_of::<hv_x64_register_sev_hv_doorbell__bindgen_ty_1>() - 8usize];
6181 ["Alignment of hv_x64_register_sev_hv_doorbell__bindgen_ty_1"]
6182 [::std::mem::align_of::<hv_x64_register_sev_hv_doorbell__bindgen_ty_1>() - 1usize];
6183};
6184impl hv_x64_register_sev_hv_doorbell__bindgen_ty_1 {
6185 #[inline]
6186 pub fn enabled(&self) -> __u64 {
6187 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
6188 }
6189 #[inline]
6190 pub fn set_enabled(&mut self, val: __u64) {
6191 unsafe {
6192 let val: u64 = ::std::mem::transmute(val);
6193 self._bitfield_1.set(0usize, 1u8, val as u64)
6194 }
6195 }
6196 #[inline]
6197 pub unsafe fn enabled_raw(this: *const Self) -> __u64 {
6198 unsafe {
6199 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6200 ::std::ptr::addr_of!((*this)._bitfield_1),
6201 0usize,
6202 1u8,
6203 ) as u64)
6204 }
6205 }
6206 #[inline]
6207 pub unsafe fn set_enabled_raw(this: *mut Self, val: __u64) {
6208 unsafe {
6209 let val: u64 = ::std::mem::transmute(val);
6210 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6211 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6212 0usize,
6213 1u8,
6214 val as u64,
6215 )
6216 }
6217 }
6218 #[inline]
6219 pub fn reservedz(&self) -> __u64 {
6220 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u64) }
6221 }
6222 #[inline]
6223 pub fn set_reservedz(&mut self, val: __u64) {
6224 unsafe {
6225 let val: u64 = ::std::mem::transmute(val);
6226 self._bitfield_1.set(1usize, 11u8, val as u64)
6227 }
6228 }
6229 #[inline]
6230 pub unsafe fn reservedz_raw(this: *const Self) -> __u64 {
6231 unsafe {
6232 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6233 ::std::ptr::addr_of!((*this)._bitfield_1),
6234 1usize,
6235 11u8,
6236 ) as u64)
6237 }
6238 }
6239 #[inline]
6240 pub unsafe fn set_reservedz_raw(this: *mut Self, val: __u64) {
6241 unsafe {
6242 let val: u64 = ::std::mem::transmute(val);
6243 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6244 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6245 1usize,
6246 11u8,
6247 val as u64,
6248 )
6249 }
6250 }
6251 #[inline]
6252 pub fn page_number(&self) -> __u64 {
6253 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 52u8) as u64) }
6254 }
6255 #[inline]
6256 pub fn set_page_number(&mut self, val: __u64) {
6257 unsafe {
6258 let val: u64 = ::std::mem::transmute(val);
6259 self._bitfield_1.set(12usize, 52u8, val as u64)
6260 }
6261 }
6262 #[inline]
6263 pub unsafe fn page_number_raw(this: *const Self) -> __u64 {
6264 unsafe {
6265 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6266 ::std::ptr::addr_of!((*this)._bitfield_1),
6267 12usize,
6268 52u8,
6269 ) as u64)
6270 }
6271 }
6272 #[inline]
6273 pub unsafe fn set_page_number_raw(this: *mut Self, val: __u64) {
6274 unsafe {
6275 let val: u64 = ::std::mem::transmute(val);
6276 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6277 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6278 12usize,
6279 52u8,
6280 val as u64,
6281 )
6282 }
6283 }
6284 #[inline]
6285 pub fn new_bitfield_1(
6286 enabled: __u64,
6287 reservedz: __u64,
6288 page_number: __u64,
6289 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
6290 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
6291 __bindgen_bitfield_unit.set(0usize, 1u8, {
6292 let enabled: u64 = unsafe { ::std::mem::transmute(enabled) };
6293 enabled as u64
6294 });
6295 __bindgen_bitfield_unit.set(1usize, 11u8, {
6296 let reservedz: u64 = unsafe { ::std::mem::transmute(reservedz) };
6297 reservedz as u64
6298 });
6299 __bindgen_bitfield_unit.set(12usize, 52u8, {
6300 let page_number: u64 = unsafe { ::std::mem::transmute(page_number) };
6301 page_number as u64
6302 });
6303 __bindgen_bitfield_unit
6304 }
6305}
6306#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6307const _: () = {
6308 ["Size of hv_x64_register_sev_hv_doorbell"]
6309 [::std::mem::size_of::<hv_x64_register_sev_hv_doorbell>() - 8usize];
6310 ["Alignment of hv_x64_register_sev_hv_doorbell"]
6311 [::std::mem::align_of::<hv_x64_register_sev_hv_doorbell>() - 8usize];
6312 ["Offset of field: hv_x64_register_sev_hv_doorbell::as_uint64"]
6313 [::std::mem::offset_of!(hv_x64_register_sev_hv_doorbell, as_uint64) - 0usize];
6314};
6315impl Default for hv_x64_register_sev_hv_doorbell {
6316 fn default() -> Self {
6317 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6318 unsafe {
6319 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6320 s.assume_init()
6321 }
6322 }
6323}
6324pub const hv_generic_set_format_HV_GENERIC_SET_SPARSE_4K: hv_generic_set_format = 0;
6325pub const hv_generic_set_format_HV_GENERIC_SET_ALL: hv_generic_set_format = 1;
6326pub type hv_generic_set_format = ::std::os::raw::c_uint;
6327pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PRIVILEGE_FLAGS:
6328 hv_partition_property_code = 65536;
6329pub const hv_partition_property_code_HV_PARTITION_PROPERTY_SYNTHETIC_PROC_FEATURES:
6330 hv_partition_property_code = 65537;
6331pub const hv_partition_property_code_HV_PARTITION_PROPERTY_SUSPEND: hv_partition_property_code =
6332 131072;
6333pub const hv_partition_property_code_HV_PARTITION_PROPERTY_CPU_RESERVE: hv_partition_property_code =
6334 131073;
6335pub const hv_partition_property_code_HV_PARTITION_PROPERTY_CPU_CAP: hv_partition_property_code =
6336 131074;
6337pub const hv_partition_property_code_HV_PARTITION_PROPERTY_CPU_WEIGHT: hv_partition_property_code =
6338 131075;
6339pub const hv_partition_property_code_HV_PARTITION_PROPERTY_CPU_GROUP_ID:
6340 hv_partition_property_code = 131076;
6341pub const hv_partition_property_code_HV_PARTITION_PROPERTY_TIME_FREEZE: hv_partition_property_code =
6342 196611;
6343pub const hv_partition_property_code_HV_PARTITION_PROPERTY_REFERENCE_TIME:
6344 hv_partition_property_code = 196613;
6345pub const hv_partition_property_code_HV_PARTITION_PROPERTY_DEBUG_CHANNEL_ID:
6346 hv_partition_property_code = 262144;
6347pub const hv_partition_property_code_HV_PARTITION_PROPERTY_VIRTUAL_TLB_PAGE_COUNT:
6348 hv_partition_property_code = 327680;
6349pub const hv_partition_property_code_HV_PARTITION_PROPERTY_VSM_CONFIG: hv_partition_property_code =
6350 327681;
6351pub const hv_partition_property_code_HV_PARTITION_PROPERTY_ZERO_MEMORY_ON_RESET:
6352 hv_partition_property_code = 327682;
6353pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSORS_PER_SOCKET:
6354 hv_partition_property_code = 327683;
6355pub const hv_partition_property_code_HV_PARTITION_PROPERTY_NESTED_TLB_SIZE:
6356 hv_partition_property_code = 327684;
6357pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GPA_PAGE_ACCESS_TRACKING:
6358 hv_partition_property_code = 327685;
6359pub const hv_partition_property_code_HV_PARTITION_PROPERTY_VSM_PERMISSIONS_DIRTY_SINCE_LAST_QUERY : hv_partition_property_code = 327686 ;
6360pub const hv_partition_property_code_HV_PARTITION_PROPERTY_SGX_LAUNCH_CONTROL_CONFIG:
6361 hv_partition_property_code = 327687;
6362pub const hv_partition_property_code_HV_PARTITION_PROPERTY_DEFAULT_SGX_LAUNCH_CONTROL0:
6363 hv_partition_property_code = 327688;
6364pub const hv_partition_property_code_HV_PARTITION_PROPERTY_DEFAULT_SGX_LAUNCH_CONTROL1:
6365 hv_partition_property_code = 327689;
6366pub const hv_partition_property_code_HV_PARTITION_PROPERTY_DEFAULT_SGX_LAUNCH_CONTROL2:
6367 hv_partition_property_code = 327690;
6368pub const hv_partition_property_code_HV_PARTITION_PROPERTY_DEFAULT_SGX_LAUNCH_CONTROL3:
6369 hv_partition_property_code = 327691;
6370pub const hv_partition_property_code_HV_PARTITION_PROPERTY_ISOLATION_STATE:
6371 hv_partition_property_code = 327692;
6372pub const hv_partition_property_code_HV_PARTITION_PROPERTY_ISOLATION_CONTROL:
6373 hv_partition_property_code = 327693;
6374pub const hv_partition_property_code_HV_PARTITION_PROPERTY_ALLOCATION_ID:
6375 hv_partition_property_code = 327694;
6376pub const hv_partition_property_code_HV_PARTITION_PROPERTY_MONITORING_ID:
6377 hv_partition_property_code = 327695;
6378pub const hv_partition_property_code_HV_PARTITION_PROPERTY_IMPLEMENTED_PHYSICAL_ADDRESS_BITS:
6379 hv_partition_property_code = 327696;
6380pub const hv_partition_property_code_HV_PARTITION_PROPERTY_NON_ARCHITECTURAL_CORE_SHARING:
6381 hv_partition_property_code = 327697;
6382pub const hv_partition_property_code_HV_PARTITION_PROPERTY_HYPERCALL_DOORBELL_PAGE:
6383 hv_partition_property_code = 327698;
6384pub const hv_partition_property_code_HV_PARTITION_PROPERTY_ISOLATION_POLICY:
6385 hv_partition_property_code = 327700;
6386pub const hv_partition_property_code_HV_PARTITION_PROPERTY_UNIMPLEMENTED_MSR_ACTION:
6387 hv_partition_property_code = 327703;
6388pub const hv_partition_property_code_HV_PARTITION_PROPERTY_SEV_VMGEXIT_OFFLOADS:
6389 hv_partition_property_code = 327714;
6390pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PARTITION_DIAG_BUFFER_CONFIG:
6391 hv_partition_property_code = 327718;
6392pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GICD_BASE_ADDRESS:
6393 hv_partition_property_code = 327720;
6394pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GITS_TRANSLATER_BASE_ADDRESS:
6395 hv_partition_property_code = 327721;
6396pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GIC_LPI_INT_ID_BITS:
6397 hv_partition_property_code = 327722;
6398pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GIC_PPI_OVERFLOW_INTERRUPT_FROM_CNTV:
6399 hv_partition_property_code = 327723;
6400pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GIC_PPI_OVERFLOW_INTERRUPT_FROM_CNTP:
6401 hv_partition_property_code = 327724;
6402pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GIC_PPI_PERFORMANCE_MONITORS_INTERRUPT : hv_partition_property_code = 327725 ;
6403pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GIC_PPI_PMBIRQ:
6404 hv_partition_property_code = 327726;
6405pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSOR_VENDOR:
6406 hv_partition_property_code = 393216;
6407pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSOR_FEATURES_DEPRECATED:
6408 hv_partition_property_code = 393217;
6409pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSOR_XSAVE_FEATURES:
6410 hv_partition_property_code = 393218;
6411pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSOR_CL_FLUSH_SIZE:
6412 hv_partition_property_code = 393219;
6413pub const hv_partition_property_code_HV_PARTITION_PROPERTY_ENLIGHTENMENT_MODIFICATIONS:
6414 hv_partition_property_code = 393220;
6415pub const hv_partition_property_code_HV_PARTITION_PROPERTY_COMPATIBILITY_VERSION:
6416 hv_partition_property_code = 393221;
6417pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PHYSICAL_ADDRESS_WIDTH:
6418 hv_partition_property_code = 393222;
6419pub const hv_partition_property_code_HV_PARTITION_PROPERTY_XSAVE_STATES:
6420 hv_partition_property_code = 393223;
6421pub const hv_partition_property_code_HV_PARTITION_PROPERTY_MAX_XSAVE_DATA_SIZE:
6422 hv_partition_property_code = 393224;
6423pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSOR_CLOCK_FREQUENCY:
6424 hv_partition_property_code = 393225;
6425pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSOR_FEATURES0:
6426 hv_partition_property_code = 393226;
6427pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSOR_FEATURES1:
6428 hv_partition_property_code = 393227;
6429pub const hv_partition_property_code_HV_PARTITION_PROPERTY_GUEST_OS_ID: hv_partition_property_code =
6430 458752;
6431pub const hv_partition_property_code_HV_PARTITION_PROPERTY_PROCESSOR_VIRTUALIZATION_FEATURES:
6432 hv_partition_property_code = 524288;
6433pub const hv_partition_property_code_HV_PARTITION_PROPERTY_VMM_CAPABILITIES:
6434 hv_partition_property_code = 589831;
6435pub type hv_partition_property_code = ::std::os::raw::c_uint;
6436#[repr(C)]
6437#[derive(Copy, Clone)]
6438pub union hv_pfn_range {
6439 pub as_uint64: __u64,
6440 pub __bindgen_anon_1: hv_pfn_range__bindgen_ty_1,
6441}
6442#[repr(C, packed)]
6443#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
6444pub struct hv_pfn_range__bindgen_ty_1 {
6445 pub _bitfield_align_1: [u8; 0],
6446 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
6447}
6448#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6449const _: () = {
6450 ["Size of hv_pfn_range__bindgen_ty_1"]
6451 [::std::mem::size_of::<hv_pfn_range__bindgen_ty_1>() - 8usize];
6452 ["Alignment of hv_pfn_range__bindgen_ty_1"]
6453 [::std::mem::align_of::<hv_pfn_range__bindgen_ty_1>() - 1usize];
6454};
6455impl hv_pfn_range__bindgen_ty_1 {
6456 #[inline]
6457 pub fn base_pfn(&self) -> __u64 {
6458 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 40u8) as u64) }
6459 }
6460 #[inline]
6461 pub fn set_base_pfn(&mut self, val: __u64) {
6462 unsafe {
6463 let val: u64 = ::std::mem::transmute(val);
6464 self._bitfield_1.set(0usize, 40u8, val as u64)
6465 }
6466 }
6467 #[inline]
6468 pub unsafe fn base_pfn_raw(this: *const Self) -> __u64 {
6469 unsafe {
6470 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6471 ::std::ptr::addr_of!((*this)._bitfield_1),
6472 0usize,
6473 40u8,
6474 ) as u64)
6475 }
6476 }
6477 #[inline]
6478 pub unsafe fn set_base_pfn_raw(this: *mut Self, val: __u64) {
6479 unsafe {
6480 let val: u64 = ::std::mem::transmute(val);
6481 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6482 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6483 0usize,
6484 40u8,
6485 val as u64,
6486 )
6487 }
6488 }
6489 #[inline]
6490 pub fn add_pfns(&self) -> __u64 {
6491 unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 24u8) as u64) }
6492 }
6493 #[inline]
6494 pub fn set_add_pfns(&mut self, val: __u64) {
6495 unsafe {
6496 let val: u64 = ::std::mem::transmute(val);
6497 self._bitfield_1.set(40usize, 24u8, val as u64)
6498 }
6499 }
6500 #[inline]
6501 pub unsafe fn add_pfns_raw(this: *const Self) -> __u64 {
6502 unsafe {
6503 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6504 ::std::ptr::addr_of!((*this)._bitfield_1),
6505 40usize,
6506 24u8,
6507 ) as u64)
6508 }
6509 }
6510 #[inline]
6511 pub unsafe fn set_add_pfns_raw(this: *mut Self, val: __u64) {
6512 unsafe {
6513 let val: u64 = ::std::mem::transmute(val);
6514 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6515 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6516 40usize,
6517 24u8,
6518 val as u64,
6519 )
6520 }
6521 }
6522 #[inline]
6523 pub fn new_bitfield_1(base_pfn: __u64, add_pfns: __u64) -> __BindgenBitfieldUnit<[u8; 8usize]> {
6524 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
6525 __bindgen_bitfield_unit.set(0usize, 40u8, {
6526 let base_pfn: u64 = unsafe { ::std::mem::transmute(base_pfn) };
6527 base_pfn as u64
6528 });
6529 __bindgen_bitfield_unit.set(40usize, 24u8, {
6530 let add_pfns: u64 = unsafe { ::std::mem::transmute(add_pfns) };
6531 add_pfns as u64
6532 });
6533 __bindgen_bitfield_unit
6534 }
6535}
6536#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6537const _: () = {
6538 ["Size of hv_pfn_range"][::std::mem::size_of::<hv_pfn_range>() - 8usize];
6539 ["Alignment of hv_pfn_range"][::std::mem::align_of::<hv_pfn_range>() - 8usize];
6540 ["Offset of field: hv_pfn_range::as_uint64"]
6541 [::std::mem::offset_of!(hv_pfn_range, as_uint64) - 0usize];
6542};
6543impl Default for hv_pfn_range {
6544 fn default() -> Self {
6545 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6546 unsafe {
6547 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6548 s.assume_init()
6549 }
6550 }
6551}
6552#[repr(C)]
6553#[derive(Copy, Clone)]
6554pub union hv_snp_guest_policy {
6555 pub __bindgen_anon_1: hv_snp_guest_policy__bindgen_ty_1,
6556 pub as_uint64: __u64,
6557}
6558#[repr(C, packed)]
6559#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
6560pub struct hv_snp_guest_policy__bindgen_ty_1 {
6561 pub _bitfield_align_1: [u8; 0],
6562 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
6563}
6564#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6565const _: () = {
6566 ["Size of hv_snp_guest_policy__bindgen_ty_1"]
6567 [::std::mem::size_of::<hv_snp_guest_policy__bindgen_ty_1>() - 8usize];
6568 ["Alignment of hv_snp_guest_policy__bindgen_ty_1"]
6569 [::std::mem::align_of::<hv_snp_guest_policy__bindgen_ty_1>() - 1usize];
6570};
6571impl hv_snp_guest_policy__bindgen_ty_1 {
6572 #[inline]
6573 pub fn minor_version(&self) -> __u64 {
6574 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u64) }
6575 }
6576 #[inline]
6577 pub fn set_minor_version(&mut self, val: __u64) {
6578 unsafe {
6579 let val: u64 = ::std::mem::transmute(val);
6580 self._bitfield_1.set(0usize, 8u8, val as u64)
6581 }
6582 }
6583 #[inline]
6584 pub unsafe fn minor_version_raw(this: *const Self) -> __u64 {
6585 unsafe {
6586 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6587 ::std::ptr::addr_of!((*this)._bitfield_1),
6588 0usize,
6589 8u8,
6590 ) as u64)
6591 }
6592 }
6593 #[inline]
6594 pub unsafe fn set_minor_version_raw(this: *mut Self, val: __u64) {
6595 unsafe {
6596 let val: u64 = ::std::mem::transmute(val);
6597 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6598 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6599 0usize,
6600 8u8,
6601 val as u64,
6602 )
6603 }
6604 }
6605 #[inline]
6606 pub fn major_version(&self) -> __u64 {
6607 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u64) }
6608 }
6609 #[inline]
6610 pub fn set_major_version(&mut self, val: __u64) {
6611 unsafe {
6612 let val: u64 = ::std::mem::transmute(val);
6613 self._bitfield_1.set(8usize, 8u8, val as u64)
6614 }
6615 }
6616 #[inline]
6617 pub unsafe fn major_version_raw(this: *const Self) -> __u64 {
6618 unsafe {
6619 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6620 ::std::ptr::addr_of!((*this)._bitfield_1),
6621 8usize,
6622 8u8,
6623 ) as u64)
6624 }
6625 }
6626 #[inline]
6627 pub unsafe fn set_major_version_raw(this: *mut Self, val: __u64) {
6628 unsafe {
6629 let val: u64 = ::std::mem::transmute(val);
6630 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6631 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6632 8usize,
6633 8u8,
6634 val as u64,
6635 )
6636 }
6637 }
6638 #[inline]
6639 pub fn smt_allowed(&self) -> __u64 {
6640 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u64) }
6641 }
6642 #[inline]
6643 pub fn set_smt_allowed(&mut self, val: __u64) {
6644 unsafe {
6645 let val: u64 = ::std::mem::transmute(val);
6646 self._bitfield_1.set(16usize, 1u8, val as u64)
6647 }
6648 }
6649 #[inline]
6650 pub unsafe fn smt_allowed_raw(this: *const Self) -> __u64 {
6651 unsafe {
6652 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6653 ::std::ptr::addr_of!((*this)._bitfield_1),
6654 16usize,
6655 1u8,
6656 ) as u64)
6657 }
6658 }
6659 #[inline]
6660 pub unsafe fn set_smt_allowed_raw(this: *mut Self, val: __u64) {
6661 unsafe {
6662 let val: u64 = ::std::mem::transmute(val);
6663 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6664 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6665 16usize,
6666 1u8,
6667 val as u64,
6668 )
6669 }
6670 }
6671 #[inline]
6672 pub fn vmpls_required(&self) -> __u64 {
6673 unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u64) }
6674 }
6675 #[inline]
6676 pub fn set_vmpls_required(&mut self, val: __u64) {
6677 unsafe {
6678 let val: u64 = ::std::mem::transmute(val);
6679 self._bitfield_1.set(17usize, 1u8, val as u64)
6680 }
6681 }
6682 #[inline]
6683 pub unsafe fn vmpls_required_raw(this: *const Self) -> __u64 {
6684 unsafe {
6685 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6686 ::std::ptr::addr_of!((*this)._bitfield_1),
6687 17usize,
6688 1u8,
6689 ) as u64)
6690 }
6691 }
6692 #[inline]
6693 pub unsafe fn set_vmpls_required_raw(this: *mut Self, val: __u64) {
6694 unsafe {
6695 let val: u64 = ::std::mem::transmute(val);
6696 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6697 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6698 17usize,
6699 1u8,
6700 val as u64,
6701 )
6702 }
6703 }
6704 #[inline]
6705 pub fn migration_agent_allowed(&self) -> __u64 {
6706 unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u64) }
6707 }
6708 #[inline]
6709 pub fn set_migration_agent_allowed(&mut self, val: __u64) {
6710 unsafe {
6711 let val: u64 = ::std::mem::transmute(val);
6712 self._bitfield_1.set(18usize, 1u8, val as u64)
6713 }
6714 }
6715 #[inline]
6716 pub unsafe fn migration_agent_allowed_raw(this: *const Self) -> __u64 {
6717 unsafe {
6718 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6719 ::std::ptr::addr_of!((*this)._bitfield_1),
6720 18usize,
6721 1u8,
6722 ) as u64)
6723 }
6724 }
6725 #[inline]
6726 pub unsafe fn set_migration_agent_allowed_raw(this: *mut Self, val: __u64) {
6727 unsafe {
6728 let val: u64 = ::std::mem::transmute(val);
6729 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6730 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6731 18usize,
6732 1u8,
6733 val as u64,
6734 )
6735 }
6736 }
6737 #[inline]
6738 pub fn debug_allowed(&self) -> __u64 {
6739 unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u64) }
6740 }
6741 #[inline]
6742 pub fn set_debug_allowed(&mut self, val: __u64) {
6743 unsafe {
6744 let val: u64 = ::std::mem::transmute(val);
6745 self._bitfield_1.set(19usize, 1u8, val as u64)
6746 }
6747 }
6748 #[inline]
6749 pub unsafe fn debug_allowed_raw(this: *const Self) -> __u64 {
6750 unsafe {
6751 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6752 ::std::ptr::addr_of!((*this)._bitfield_1),
6753 19usize,
6754 1u8,
6755 ) as u64)
6756 }
6757 }
6758 #[inline]
6759 pub unsafe fn set_debug_allowed_raw(this: *mut Self, val: __u64) {
6760 unsafe {
6761 let val: u64 = ::std::mem::transmute(val);
6762 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6763 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6764 19usize,
6765 1u8,
6766 val as u64,
6767 )
6768 }
6769 }
6770 #[inline]
6771 pub fn reserved(&self) -> __u64 {
6772 unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 44u8) as u64) }
6773 }
6774 #[inline]
6775 pub fn set_reserved(&mut self, val: __u64) {
6776 unsafe {
6777 let val: u64 = ::std::mem::transmute(val);
6778 self._bitfield_1.set(20usize, 44u8, val as u64)
6779 }
6780 }
6781 #[inline]
6782 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
6783 unsafe {
6784 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
6785 ::std::ptr::addr_of!((*this)._bitfield_1),
6786 20usize,
6787 44u8,
6788 ) as u64)
6789 }
6790 }
6791 #[inline]
6792 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
6793 unsafe {
6794 let val: u64 = ::std::mem::transmute(val);
6795 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
6796 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
6797 20usize,
6798 44u8,
6799 val as u64,
6800 )
6801 }
6802 }
6803 #[inline]
6804 pub fn new_bitfield_1(
6805 minor_version: __u64,
6806 major_version: __u64,
6807 smt_allowed: __u64,
6808 vmpls_required: __u64,
6809 migration_agent_allowed: __u64,
6810 debug_allowed: __u64,
6811 reserved: __u64,
6812 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
6813 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
6814 __bindgen_bitfield_unit.set(0usize, 8u8, {
6815 let minor_version: u64 = unsafe { ::std::mem::transmute(minor_version) };
6816 minor_version as u64
6817 });
6818 __bindgen_bitfield_unit.set(8usize, 8u8, {
6819 let major_version: u64 = unsafe { ::std::mem::transmute(major_version) };
6820 major_version as u64
6821 });
6822 __bindgen_bitfield_unit.set(16usize, 1u8, {
6823 let smt_allowed: u64 = unsafe { ::std::mem::transmute(smt_allowed) };
6824 smt_allowed as u64
6825 });
6826 __bindgen_bitfield_unit.set(17usize, 1u8, {
6827 let vmpls_required: u64 = unsafe { ::std::mem::transmute(vmpls_required) };
6828 vmpls_required as u64
6829 });
6830 __bindgen_bitfield_unit.set(18usize, 1u8, {
6831 let migration_agent_allowed: u64 =
6832 unsafe { ::std::mem::transmute(migration_agent_allowed) };
6833 migration_agent_allowed as u64
6834 });
6835 __bindgen_bitfield_unit.set(19usize, 1u8, {
6836 let debug_allowed: u64 = unsafe { ::std::mem::transmute(debug_allowed) };
6837 debug_allowed as u64
6838 });
6839 __bindgen_bitfield_unit.set(20usize, 44u8, {
6840 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
6841 reserved as u64
6842 });
6843 __bindgen_bitfield_unit
6844 }
6845}
6846#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6847const _: () = {
6848 ["Size of hv_snp_guest_policy"][::std::mem::size_of::<hv_snp_guest_policy>() - 8usize];
6849 ["Alignment of hv_snp_guest_policy"][::std::mem::align_of::<hv_snp_guest_policy>() - 8usize];
6850 ["Offset of field: hv_snp_guest_policy::as_uint64"]
6851 [::std::mem::offset_of!(hv_snp_guest_policy, as_uint64) - 0usize];
6852};
6853impl Default for hv_snp_guest_policy {
6854 fn default() -> Self {
6855 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6856 unsafe {
6857 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6858 s.assume_init()
6859 }
6860 }
6861}
6862#[repr(C, packed)]
6863#[derive(Copy, Clone)]
6864pub struct hv_snp_id_block {
6865 pub launch_digest: [__u8; 48usize],
6866 pub family_id: [__u8; 16usize],
6867 pub image_id: [__u8; 16usize],
6868 pub version: __u32,
6869 pub guest_svn: __u32,
6870 pub policy: hv_snp_guest_policy,
6871}
6872#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6873const _: () = {
6874 ["Size of hv_snp_id_block"][::std::mem::size_of::<hv_snp_id_block>() - 96usize];
6875 ["Alignment of hv_snp_id_block"][::std::mem::align_of::<hv_snp_id_block>() - 1usize];
6876 ["Offset of field: hv_snp_id_block::launch_digest"]
6877 [::std::mem::offset_of!(hv_snp_id_block, launch_digest) - 0usize];
6878 ["Offset of field: hv_snp_id_block::family_id"]
6879 [::std::mem::offset_of!(hv_snp_id_block, family_id) - 48usize];
6880 ["Offset of field: hv_snp_id_block::image_id"]
6881 [::std::mem::offset_of!(hv_snp_id_block, image_id) - 64usize];
6882 ["Offset of field: hv_snp_id_block::version"]
6883 [::std::mem::offset_of!(hv_snp_id_block, version) - 80usize];
6884 ["Offset of field: hv_snp_id_block::guest_svn"]
6885 [::std::mem::offset_of!(hv_snp_id_block, guest_svn) - 84usize];
6886 ["Offset of field: hv_snp_id_block::policy"]
6887 [::std::mem::offset_of!(hv_snp_id_block, policy) - 88usize];
6888};
6889impl Default for hv_snp_id_block {
6890 fn default() -> Self {
6891 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6892 unsafe {
6893 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6894 s.assume_init()
6895 }
6896 }
6897}
6898#[repr(C, packed)]
6899#[derive(Debug, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
6900pub struct hv_snp_id_auth_info {
6901 pub id_key_algorithm: __u32,
6902 pub auth_key_algorithm: __u32,
6903 pub reserved0: [__u8; 56usize],
6904 pub id_block_signature: [__u8; 512usize],
6905 pub id_key: [__u8; 1028usize],
6906 pub reserved1: [__u8; 60usize],
6907 pub id_key_signature: [__u8; 512usize],
6908 pub author_key: [__u8; 1028usize],
6909}
6910#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6911const _: () = {
6912 ["Size of hv_snp_id_auth_info"][::std::mem::size_of::<hv_snp_id_auth_info>() - 3204usize];
6913 ["Alignment of hv_snp_id_auth_info"][::std::mem::align_of::<hv_snp_id_auth_info>() - 1usize];
6914 ["Offset of field: hv_snp_id_auth_info::id_key_algorithm"]
6915 [::std::mem::offset_of!(hv_snp_id_auth_info, id_key_algorithm) - 0usize];
6916 ["Offset of field: hv_snp_id_auth_info::auth_key_algorithm"]
6917 [::std::mem::offset_of!(hv_snp_id_auth_info, auth_key_algorithm) - 4usize];
6918 ["Offset of field: hv_snp_id_auth_info::reserved0"]
6919 [::std::mem::offset_of!(hv_snp_id_auth_info, reserved0) - 8usize];
6920 ["Offset of field: hv_snp_id_auth_info::id_block_signature"]
6921 [::std::mem::offset_of!(hv_snp_id_auth_info, id_block_signature) - 64usize];
6922 ["Offset of field: hv_snp_id_auth_info::id_key"]
6923 [::std::mem::offset_of!(hv_snp_id_auth_info, id_key) - 576usize];
6924 ["Offset of field: hv_snp_id_auth_info::reserved1"]
6925 [::std::mem::offset_of!(hv_snp_id_auth_info, reserved1) - 1604usize];
6926 ["Offset of field: hv_snp_id_auth_info::id_key_signature"]
6927 [::std::mem::offset_of!(hv_snp_id_auth_info, id_key_signature) - 1664usize];
6928 ["Offset of field: hv_snp_id_auth_info::author_key"]
6929 [::std::mem::offset_of!(hv_snp_id_auth_info, author_key) - 2176usize];
6930};
6931impl Default for hv_snp_id_auth_info {
6932 fn default() -> Self {
6933 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6934 unsafe {
6935 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6936 s.assume_init()
6937 }
6938 }
6939}
6940#[repr(C, packed)]
6941#[derive(Copy, Clone)]
6942pub struct hv_psp_launch_finish_data {
6943 pub id_block: hv_snp_id_block,
6944 pub id_auth_info: hv_snp_id_auth_info,
6945 pub host_data: [__u8; 32usize],
6946 pub id_block_enabled: __u8,
6947 pub author_key_enabled: __u8,
6948}
6949#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6950const _: () = {
6951 ["Size of hv_psp_launch_finish_data"]
6952 [::std::mem::size_of::<hv_psp_launch_finish_data>() - 3334usize];
6953 ["Alignment of hv_psp_launch_finish_data"]
6954 [::std::mem::align_of::<hv_psp_launch_finish_data>() - 1usize];
6955 ["Offset of field: hv_psp_launch_finish_data::id_block"]
6956 [::std::mem::offset_of!(hv_psp_launch_finish_data, id_block) - 0usize];
6957 ["Offset of field: hv_psp_launch_finish_data::id_auth_info"]
6958 [::std::mem::offset_of!(hv_psp_launch_finish_data, id_auth_info) - 96usize];
6959 ["Offset of field: hv_psp_launch_finish_data::host_data"]
6960 [::std::mem::offset_of!(hv_psp_launch_finish_data, host_data) - 3300usize];
6961 ["Offset of field: hv_psp_launch_finish_data::id_block_enabled"]
6962 [::std::mem::offset_of!(hv_psp_launch_finish_data, id_block_enabled) - 3332usize];
6963 ["Offset of field: hv_psp_launch_finish_data::author_key_enabled"]
6964 [::std::mem::offset_of!(hv_psp_launch_finish_data, author_key_enabled) - 3333usize];
6965};
6966impl Default for hv_psp_launch_finish_data {
6967 fn default() -> Self {
6968 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6969 unsafe {
6970 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6971 s.assume_init()
6972 }
6973 }
6974}
6975#[repr(C, packed)]
6976#[derive(Copy, Clone)]
6977pub union hv_partition_complete_isolated_import_data {
6978 pub reserved: __u64,
6979 pub psp_parameters: hv_psp_launch_finish_data,
6980}
6981#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6982const _: () = {
6983 ["Size of hv_partition_complete_isolated_import_data"]
6984 [::std::mem::size_of::<hv_partition_complete_isolated_import_data>() - 3334usize];
6985 ["Alignment of hv_partition_complete_isolated_import_data"]
6986 [::std::mem::align_of::<hv_partition_complete_isolated_import_data>() - 1usize];
6987 ["Offset of field: hv_partition_complete_isolated_import_data::reserved"]
6988 [::std::mem::offset_of!(hv_partition_complete_isolated_import_data, reserved) - 0usize];
6989 ["Offset of field: hv_partition_complete_isolated_import_data::psp_parameters"][::std::mem::offset_of!(
6990 hv_partition_complete_isolated_import_data,
6991 psp_parameters
6992 ) - 0usize];
6993};
6994impl Default for hv_partition_complete_isolated_import_data {
6995 fn default() -> Self {
6996 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6997 unsafe {
6998 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6999 s.assume_init()
7000 }
7001 }
7002}
7003#[repr(C, packed)]
7004#[derive(Copy, Clone)]
7005pub struct hv_input_complete_isolated_import {
7006 pub partition_id: __u64,
7007 pub import_data: hv_partition_complete_isolated_import_data,
7008}
7009#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7010const _: () = {
7011 ["Size of hv_input_complete_isolated_import"]
7012 [::std::mem::size_of::<hv_input_complete_isolated_import>() - 3342usize];
7013 ["Alignment of hv_input_complete_isolated_import"]
7014 [::std::mem::align_of::<hv_input_complete_isolated_import>() - 1usize];
7015 ["Offset of field: hv_input_complete_isolated_import::partition_id"]
7016 [::std::mem::offset_of!(hv_input_complete_isolated_import, partition_id) - 0usize];
7017 ["Offset of field: hv_input_complete_isolated_import::import_data"]
7018 [::std::mem::offset_of!(hv_input_complete_isolated_import, import_data) - 8usize];
7019};
7020impl Default for hv_input_complete_isolated_import {
7021 fn default() -> Self {
7022 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7023 unsafe {
7024 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7025 s.assume_init()
7026 }
7027 }
7028}
7029#[repr(C, packed)]
7030#[derive(Copy, Clone)]
7031pub struct hv_partition_property_vmm_capabilities {
7032 pub bank_count: __u16,
7033 pub reserved: [__u16; 3usize],
7034 pub __bindgen_anon_1: hv_partition_property_vmm_capabilities__bindgen_ty_1,
7035}
7036#[repr(C)]
7037#[derive(Copy, Clone)]
7038pub union hv_partition_property_vmm_capabilities__bindgen_ty_1 {
7039 pub as_uint64: [__u64; 1usize],
7040 pub __bindgen_anon_1: hv_partition_property_vmm_capabilities__bindgen_ty_1__bindgen_ty_1,
7041}
7042#[repr(C, packed)]
7043#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
7044pub struct hv_partition_property_vmm_capabilities__bindgen_ty_1__bindgen_ty_1 {
7045 pub _bitfield_align_1: [u8; 0],
7046 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
7047}
7048#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7049const _: () = {
7050 ["Size of hv_partition_property_vmm_capabilities__bindgen_ty_1__bindgen_ty_1"]
7051 [::std::mem::size_of::<hv_partition_property_vmm_capabilities__bindgen_ty_1__bindgen_ty_1>(
7052 ) - 8usize];
7053 ["Alignment of hv_partition_property_vmm_capabilities__bindgen_ty_1__bindgen_ty_1"]
7054 [::std::mem::align_of::<hv_partition_property_vmm_capabilities__bindgen_ty_1__bindgen_ty_1>(
7055 ) - 1usize];
7056};
7057impl hv_partition_property_vmm_capabilities__bindgen_ty_1__bindgen_ty_1 {
7058 #[inline]
7059 pub fn map_gpa_preserve_adjustable(&self) -> __u64 {
7060 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
7061 }
7062 #[inline]
7063 pub fn set_map_gpa_preserve_adjustable(&mut self, val: __u64) {
7064 unsafe {
7065 let val: u64 = ::std::mem::transmute(val);
7066 self._bitfield_1.set(0usize, 1u8, val as u64)
7067 }
7068 }
7069 #[inline]
7070 pub unsafe fn map_gpa_preserve_adjustable_raw(this: *const Self) -> __u64 {
7071 unsafe {
7072 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7073 ::std::ptr::addr_of!((*this)._bitfield_1),
7074 0usize,
7075 1u8,
7076 ) as u64)
7077 }
7078 }
7079 #[inline]
7080 pub unsafe fn set_map_gpa_preserve_adjustable_raw(this: *mut Self, val: __u64) {
7081 unsafe {
7082 let val: u64 = ::std::mem::transmute(val);
7083 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7084 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7085 0usize,
7086 1u8,
7087 val as u64,
7088 )
7089 }
7090 }
7091 #[inline]
7092 pub fn vmm_can_provide_overlay_gpfn(&self) -> __u64 {
7093 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
7094 }
7095 #[inline]
7096 pub fn set_vmm_can_provide_overlay_gpfn(&mut self, val: __u64) {
7097 unsafe {
7098 let val: u64 = ::std::mem::transmute(val);
7099 self._bitfield_1.set(1usize, 1u8, val as u64)
7100 }
7101 }
7102 #[inline]
7103 pub unsafe fn vmm_can_provide_overlay_gpfn_raw(this: *const Self) -> __u64 {
7104 unsafe {
7105 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7106 ::std::ptr::addr_of!((*this)._bitfield_1),
7107 1usize,
7108 1u8,
7109 ) as u64)
7110 }
7111 }
7112 #[inline]
7113 pub unsafe fn set_vmm_can_provide_overlay_gpfn_raw(this: *mut Self, val: __u64) {
7114 unsafe {
7115 let val: u64 = ::std::mem::transmute(val);
7116 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7117 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7118 1usize,
7119 1u8,
7120 val as u64,
7121 )
7122 }
7123 }
7124 #[inline]
7125 pub fn vp_affinity_property(&self) -> __u64 {
7126 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
7127 }
7128 #[inline]
7129 pub fn set_vp_affinity_property(&mut self, val: __u64) {
7130 unsafe {
7131 let val: u64 = ::std::mem::transmute(val);
7132 self._bitfield_1.set(2usize, 1u8, val as u64)
7133 }
7134 }
7135 #[inline]
7136 pub unsafe fn vp_affinity_property_raw(this: *const Self) -> __u64 {
7137 unsafe {
7138 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7139 ::std::ptr::addr_of!((*this)._bitfield_1),
7140 2usize,
7141 1u8,
7142 ) as u64)
7143 }
7144 }
7145 #[inline]
7146 pub unsafe fn set_vp_affinity_property_raw(this: *mut Self, val: __u64) {
7147 unsafe {
7148 let val: u64 = ::std::mem::transmute(val);
7149 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7150 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7151 2usize,
7152 1u8,
7153 val as u64,
7154 )
7155 }
7156 }
7157 #[inline]
7158 pub fn vmm_can_provide_gic_overlay_locations(&self) -> __u64 {
7159 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) }
7160 }
7161 #[inline]
7162 pub fn set_vmm_can_provide_gic_overlay_locations(&mut self, val: __u64) {
7163 unsafe {
7164 let val: u64 = ::std::mem::transmute(val);
7165 self._bitfield_1.set(3usize, 1u8, val as u64)
7166 }
7167 }
7168 #[inline]
7169 pub unsafe fn vmm_can_provide_gic_overlay_locations_raw(this: *const Self) -> __u64 {
7170 unsafe {
7171 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7172 ::std::ptr::addr_of!((*this)._bitfield_1),
7173 3usize,
7174 1u8,
7175 ) as u64)
7176 }
7177 }
7178 #[inline]
7179 pub unsafe fn set_vmm_can_provide_gic_overlay_locations_raw(this: *mut Self, val: __u64) {
7180 unsafe {
7181 let val: u64 = ::std::mem::transmute(val);
7182 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7183 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7184 3usize,
7185 1u8,
7186 val as u64,
7187 )
7188 }
7189 }
7190 #[inline]
7191 pub fn assignable_synthetic_proc_features(&self) -> __u64 {
7192 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u64) }
7193 }
7194 #[inline]
7195 pub fn set_assignable_synthetic_proc_features(&mut self, val: __u64) {
7196 unsafe {
7197 let val: u64 = ::std::mem::transmute(val);
7198 self._bitfield_1.set(4usize, 1u8, val as u64)
7199 }
7200 }
7201 #[inline]
7202 pub unsafe fn assignable_synthetic_proc_features_raw(this: *const Self) -> __u64 {
7203 unsafe {
7204 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7205 ::std::ptr::addr_of!((*this)._bitfield_1),
7206 4usize,
7207 1u8,
7208 ) as u64)
7209 }
7210 }
7211 #[inline]
7212 pub unsafe fn set_assignable_synthetic_proc_features_raw(this: *mut Self, val: __u64) {
7213 unsafe {
7214 let val: u64 = ::std::mem::transmute(val);
7215 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7216 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7217 4usize,
7218 1u8,
7219 val as u64,
7220 )
7221 }
7222 }
7223 #[inline]
7224 pub fn reserved0(&self) -> __u64 {
7225 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 59u8) as u64) }
7226 }
7227 #[inline]
7228 pub fn set_reserved0(&mut self, val: __u64) {
7229 unsafe {
7230 let val: u64 = ::std::mem::transmute(val);
7231 self._bitfield_1.set(5usize, 59u8, val as u64)
7232 }
7233 }
7234 #[inline]
7235 pub unsafe fn reserved0_raw(this: *const Self) -> __u64 {
7236 unsafe {
7237 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7238 ::std::ptr::addr_of!((*this)._bitfield_1),
7239 5usize,
7240 59u8,
7241 ) as u64)
7242 }
7243 }
7244 #[inline]
7245 pub unsafe fn set_reserved0_raw(this: *mut Self, val: __u64) {
7246 unsafe {
7247 let val: u64 = ::std::mem::transmute(val);
7248 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7249 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7250 5usize,
7251 59u8,
7252 val as u64,
7253 )
7254 }
7255 }
7256 #[inline]
7257 pub fn new_bitfield_1(
7258 map_gpa_preserve_adjustable: __u64,
7259 vmm_can_provide_overlay_gpfn: __u64,
7260 vp_affinity_property: __u64,
7261 vmm_can_provide_gic_overlay_locations: __u64,
7262 assignable_synthetic_proc_features: __u64,
7263 reserved0: __u64,
7264 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
7265 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
7266 __bindgen_bitfield_unit.set(0usize, 1u8, {
7267 let map_gpa_preserve_adjustable: u64 =
7268 unsafe { ::std::mem::transmute(map_gpa_preserve_adjustable) };
7269 map_gpa_preserve_adjustable as u64
7270 });
7271 __bindgen_bitfield_unit.set(1usize, 1u8, {
7272 let vmm_can_provide_overlay_gpfn: u64 =
7273 unsafe { ::std::mem::transmute(vmm_can_provide_overlay_gpfn) };
7274 vmm_can_provide_overlay_gpfn as u64
7275 });
7276 __bindgen_bitfield_unit.set(2usize, 1u8, {
7277 let vp_affinity_property: u64 = unsafe { ::std::mem::transmute(vp_affinity_property) };
7278 vp_affinity_property as u64
7279 });
7280 __bindgen_bitfield_unit.set(3usize, 1u8, {
7281 let vmm_can_provide_gic_overlay_locations: u64 =
7282 unsafe { ::std::mem::transmute(vmm_can_provide_gic_overlay_locations) };
7283 vmm_can_provide_gic_overlay_locations as u64
7284 });
7285 __bindgen_bitfield_unit.set(4usize, 1u8, {
7286 let assignable_synthetic_proc_features: u64 =
7287 unsafe { ::std::mem::transmute(assignable_synthetic_proc_features) };
7288 assignable_synthetic_proc_features as u64
7289 });
7290 __bindgen_bitfield_unit.set(5usize, 59u8, {
7291 let reserved0: u64 = unsafe { ::std::mem::transmute(reserved0) };
7292 reserved0 as u64
7293 });
7294 __bindgen_bitfield_unit
7295 }
7296}
7297#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7298const _: () = {
7299 ["Size of hv_partition_property_vmm_capabilities__bindgen_ty_1"]
7300 [::std::mem::size_of::<hv_partition_property_vmm_capabilities__bindgen_ty_1>() - 8usize];
7301 ["Alignment of hv_partition_property_vmm_capabilities__bindgen_ty_1"]
7302 [::std::mem::align_of::<hv_partition_property_vmm_capabilities__bindgen_ty_1>() - 8usize];
7303 ["Offset of field: hv_partition_property_vmm_capabilities__bindgen_ty_1::as_uint64"][::std::mem::offset_of!(
7304 hv_partition_property_vmm_capabilities__bindgen_ty_1,
7305 as_uint64
7306 )
7307 - 0usize];
7308};
7309impl Default for hv_partition_property_vmm_capabilities__bindgen_ty_1 {
7310 fn default() -> Self {
7311 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7312 unsafe {
7313 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7314 s.assume_init()
7315 }
7316 }
7317}
7318#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7319const _: () = {
7320 ["Size of hv_partition_property_vmm_capabilities"]
7321 [::std::mem::size_of::<hv_partition_property_vmm_capabilities>() - 16usize];
7322 ["Alignment of hv_partition_property_vmm_capabilities"]
7323 [::std::mem::align_of::<hv_partition_property_vmm_capabilities>() - 1usize];
7324 ["Offset of field: hv_partition_property_vmm_capabilities::bank_count"]
7325 [::std::mem::offset_of!(hv_partition_property_vmm_capabilities, bank_count) - 0usize];
7326 ["Offset of field: hv_partition_property_vmm_capabilities::reserved"]
7327 [::std::mem::offset_of!(hv_partition_property_vmm_capabilities, reserved) - 2usize];
7328};
7329impl Default for hv_partition_property_vmm_capabilities {
7330 fn default() -> Self {
7331 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7332 unsafe {
7333 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7334 s.assume_init()
7335 }
7336 }
7337}
7338#[repr(C, packed)]
7339#[derive(Copy, Clone)]
7340pub union hv_vp_register_page_interrupt_vectors {
7341 pub as_uint64: __u64,
7342 pub __bindgen_anon_1: hv_vp_register_page_interrupt_vectors__bindgen_ty_1,
7343}
7344#[repr(C, packed)]
7345#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
7346pub struct hv_vp_register_page_interrupt_vectors__bindgen_ty_1 {
7347 pub vector_count: __u8,
7348 pub vector: [__u8; 7usize],
7349}
7350#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7351const _: () = {
7352 ["Size of hv_vp_register_page_interrupt_vectors__bindgen_ty_1"]
7353 [::std::mem::size_of::<hv_vp_register_page_interrupt_vectors__bindgen_ty_1>() - 8usize];
7354 ["Alignment of hv_vp_register_page_interrupt_vectors__bindgen_ty_1"]
7355 [::std::mem::align_of::<hv_vp_register_page_interrupt_vectors__bindgen_ty_1>() - 1usize];
7356 ["Offset of field: hv_vp_register_page_interrupt_vectors__bindgen_ty_1::vector_count"][::std::mem::offset_of!(
7357 hv_vp_register_page_interrupt_vectors__bindgen_ty_1,
7358 vector_count
7359 )
7360 - 0usize];
7361 ["Offset of field: hv_vp_register_page_interrupt_vectors__bindgen_ty_1::vector"][::std::mem::offset_of!(
7362 hv_vp_register_page_interrupt_vectors__bindgen_ty_1,
7363 vector
7364 ) - 1usize];
7365};
7366#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7367const _: () = {
7368 ["Size of hv_vp_register_page_interrupt_vectors"]
7369 [::std::mem::size_of::<hv_vp_register_page_interrupt_vectors>() - 8usize];
7370 ["Alignment of hv_vp_register_page_interrupt_vectors"]
7371 [::std::mem::align_of::<hv_vp_register_page_interrupt_vectors>() - 1usize];
7372 ["Offset of field: hv_vp_register_page_interrupt_vectors::as_uint64"]
7373 [::std::mem::offset_of!(hv_vp_register_page_interrupt_vectors, as_uint64) - 0usize];
7374};
7375impl Default for hv_vp_register_page_interrupt_vectors {
7376 fn default() -> Self {
7377 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7378 unsafe {
7379 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7380 s.assume_init()
7381 }
7382 }
7383}
7384#[repr(C, packed)]
7385#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
7386pub struct hv_vp_register_page {
7387 pub version: __u16,
7388 pub isvalid: __u8,
7389 pub rsvdz: __u8,
7390 pub dirty: __u32,
7391}
7392#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7393const _: () = {
7394 ["Size of hv_vp_register_page"][::std::mem::size_of::<hv_vp_register_page>() - 8usize];
7395 ["Alignment of hv_vp_register_page"][::std::mem::align_of::<hv_vp_register_page>() - 1usize];
7396 ["Offset of field: hv_vp_register_page::version"]
7397 [::std::mem::offset_of!(hv_vp_register_page, version) - 0usize];
7398 ["Offset of field: hv_vp_register_page::isvalid"]
7399 [::std::mem::offset_of!(hv_vp_register_page, isvalid) - 2usize];
7400 ["Offset of field: hv_vp_register_page::rsvdz"]
7401 [::std::mem::offset_of!(hv_vp_register_page, rsvdz) - 3usize];
7402 ["Offset of field: hv_vp_register_page::dirty"]
7403 [::std::mem::offset_of!(hv_vp_register_page, dirty) - 4usize];
7404};
7405#[repr(C)]
7406#[derive(Copy, Clone)]
7407pub union hv_partition_synthetic_processor_features {
7408 pub as_uint64: [__u64; 1usize],
7409 pub __bindgen_anon_1: hv_partition_synthetic_processor_features__bindgen_ty_1,
7410}
7411#[repr(C, packed)]
7412#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
7413pub struct hv_partition_synthetic_processor_features__bindgen_ty_1 {
7414 pub _bitfield_align_1: [u8; 0],
7415 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
7416}
7417#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7418const _: () = {
7419 ["Size of hv_partition_synthetic_processor_features__bindgen_ty_1"]
7420 [::std::mem::size_of::<hv_partition_synthetic_processor_features__bindgen_ty_1>() - 8usize];
7421 ["Alignment of hv_partition_synthetic_processor_features__bindgen_ty_1"][::std::mem::align_of::<
7422 hv_partition_synthetic_processor_features__bindgen_ty_1,
7423 >() - 1usize];
7424};
7425impl hv_partition_synthetic_processor_features__bindgen_ty_1 {
7426 #[inline]
7427 pub fn hypervisor_present(&self) -> __u64 {
7428 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
7429 }
7430 #[inline]
7431 pub fn set_hypervisor_present(&mut self, val: __u64) {
7432 unsafe {
7433 let val: u64 = ::std::mem::transmute(val);
7434 self._bitfield_1.set(0usize, 1u8, val as u64)
7435 }
7436 }
7437 #[inline]
7438 pub unsafe fn hypervisor_present_raw(this: *const Self) -> __u64 {
7439 unsafe {
7440 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7441 ::std::ptr::addr_of!((*this)._bitfield_1),
7442 0usize,
7443 1u8,
7444 ) as u64)
7445 }
7446 }
7447 #[inline]
7448 pub unsafe fn set_hypervisor_present_raw(this: *mut Self, val: __u64) {
7449 unsafe {
7450 let val: u64 = ::std::mem::transmute(val);
7451 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7452 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7453 0usize,
7454 1u8,
7455 val as u64,
7456 )
7457 }
7458 }
7459 #[inline]
7460 pub fn hv1(&self) -> __u64 {
7461 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
7462 }
7463 #[inline]
7464 pub fn set_hv1(&mut self, val: __u64) {
7465 unsafe {
7466 let val: u64 = ::std::mem::transmute(val);
7467 self._bitfield_1.set(1usize, 1u8, val as u64)
7468 }
7469 }
7470 #[inline]
7471 pub unsafe fn hv1_raw(this: *const Self) -> __u64 {
7472 unsafe {
7473 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7474 ::std::ptr::addr_of!((*this)._bitfield_1),
7475 1usize,
7476 1u8,
7477 ) as u64)
7478 }
7479 }
7480 #[inline]
7481 pub unsafe fn set_hv1_raw(this: *mut Self, val: __u64) {
7482 unsafe {
7483 let val: u64 = ::std::mem::transmute(val);
7484 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7485 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7486 1usize,
7487 1u8,
7488 val as u64,
7489 )
7490 }
7491 }
7492 #[inline]
7493 pub fn access_vp_run_time_reg(&self) -> __u64 {
7494 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
7495 }
7496 #[inline]
7497 pub fn set_access_vp_run_time_reg(&mut self, val: __u64) {
7498 unsafe {
7499 let val: u64 = ::std::mem::transmute(val);
7500 self._bitfield_1.set(2usize, 1u8, val as u64)
7501 }
7502 }
7503 #[inline]
7504 pub unsafe fn access_vp_run_time_reg_raw(this: *const Self) -> __u64 {
7505 unsafe {
7506 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7507 ::std::ptr::addr_of!((*this)._bitfield_1),
7508 2usize,
7509 1u8,
7510 ) as u64)
7511 }
7512 }
7513 #[inline]
7514 pub unsafe fn set_access_vp_run_time_reg_raw(this: *mut Self, val: __u64) {
7515 unsafe {
7516 let val: u64 = ::std::mem::transmute(val);
7517 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7518 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7519 2usize,
7520 1u8,
7521 val as u64,
7522 )
7523 }
7524 }
7525 #[inline]
7526 pub fn access_partition_reference_counter(&self) -> __u64 {
7527 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) }
7528 }
7529 #[inline]
7530 pub fn set_access_partition_reference_counter(&mut self, val: __u64) {
7531 unsafe {
7532 let val: u64 = ::std::mem::transmute(val);
7533 self._bitfield_1.set(3usize, 1u8, val as u64)
7534 }
7535 }
7536 #[inline]
7537 pub unsafe fn access_partition_reference_counter_raw(this: *const Self) -> __u64 {
7538 unsafe {
7539 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7540 ::std::ptr::addr_of!((*this)._bitfield_1),
7541 3usize,
7542 1u8,
7543 ) as u64)
7544 }
7545 }
7546 #[inline]
7547 pub unsafe fn set_access_partition_reference_counter_raw(this: *mut Self, val: __u64) {
7548 unsafe {
7549 let val: u64 = ::std::mem::transmute(val);
7550 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7551 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7552 3usize,
7553 1u8,
7554 val as u64,
7555 )
7556 }
7557 }
7558 #[inline]
7559 pub fn access_synic_regs(&self) -> __u64 {
7560 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u64) }
7561 }
7562 #[inline]
7563 pub fn set_access_synic_regs(&mut self, val: __u64) {
7564 unsafe {
7565 let val: u64 = ::std::mem::transmute(val);
7566 self._bitfield_1.set(4usize, 1u8, val as u64)
7567 }
7568 }
7569 #[inline]
7570 pub unsafe fn access_synic_regs_raw(this: *const Self) -> __u64 {
7571 unsafe {
7572 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7573 ::std::ptr::addr_of!((*this)._bitfield_1),
7574 4usize,
7575 1u8,
7576 ) as u64)
7577 }
7578 }
7579 #[inline]
7580 pub unsafe fn set_access_synic_regs_raw(this: *mut Self, val: __u64) {
7581 unsafe {
7582 let val: u64 = ::std::mem::transmute(val);
7583 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7584 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7585 4usize,
7586 1u8,
7587 val as u64,
7588 )
7589 }
7590 }
7591 #[inline]
7592 pub fn access_synthetic_timer_regs(&self) -> __u64 {
7593 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
7594 }
7595 #[inline]
7596 pub fn set_access_synthetic_timer_regs(&mut self, val: __u64) {
7597 unsafe {
7598 let val: u64 = ::std::mem::transmute(val);
7599 self._bitfield_1.set(5usize, 1u8, val as u64)
7600 }
7601 }
7602 #[inline]
7603 pub unsafe fn access_synthetic_timer_regs_raw(this: *const Self) -> __u64 {
7604 unsafe {
7605 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7606 ::std::ptr::addr_of!((*this)._bitfield_1),
7607 5usize,
7608 1u8,
7609 ) as u64)
7610 }
7611 }
7612 #[inline]
7613 pub unsafe fn set_access_synthetic_timer_regs_raw(this: *mut Self, val: __u64) {
7614 unsafe {
7615 let val: u64 = ::std::mem::transmute(val);
7616 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7617 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7618 5usize,
7619 1u8,
7620 val as u64,
7621 )
7622 }
7623 }
7624 #[inline]
7625 pub fn access_intr_ctrl_regs(&self) -> __u64 {
7626 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u64) }
7627 }
7628 #[inline]
7629 pub fn set_access_intr_ctrl_regs(&mut self, val: __u64) {
7630 unsafe {
7631 let val: u64 = ::std::mem::transmute(val);
7632 self._bitfield_1.set(6usize, 1u8, val as u64)
7633 }
7634 }
7635 #[inline]
7636 pub unsafe fn access_intr_ctrl_regs_raw(this: *const Self) -> __u64 {
7637 unsafe {
7638 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7639 ::std::ptr::addr_of!((*this)._bitfield_1),
7640 6usize,
7641 1u8,
7642 ) as u64)
7643 }
7644 }
7645 #[inline]
7646 pub unsafe fn set_access_intr_ctrl_regs_raw(this: *mut Self, val: __u64) {
7647 unsafe {
7648 let val: u64 = ::std::mem::transmute(val);
7649 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7650 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7651 6usize,
7652 1u8,
7653 val as u64,
7654 )
7655 }
7656 }
7657 #[inline]
7658 pub fn access_hypercall_regs(&self) -> __u64 {
7659 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u64) }
7660 }
7661 #[inline]
7662 pub fn set_access_hypercall_regs(&mut self, val: __u64) {
7663 unsafe {
7664 let val: u64 = ::std::mem::transmute(val);
7665 self._bitfield_1.set(7usize, 1u8, val as u64)
7666 }
7667 }
7668 #[inline]
7669 pub unsafe fn access_hypercall_regs_raw(this: *const Self) -> __u64 {
7670 unsafe {
7671 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7672 ::std::ptr::addr_of!((*this)._bitfield_1),
7673 7usize,
7674 1u8,
7675 ) as u64)
7676 }
7677 }
7678 #[inline]
7679 pub unsafe fn set_access_hypercall_regs_raw(this: *mut Self, val: __u64) {
7680 unsafe {
7681 let val: u64 = ::std::mem::transmute(val);
7682 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7683 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7684 7usize,
7685 1u8,
7686 val as u64,
7687 )
7688 }
7689 }
7690 #[inline]
7691 pub fn access_vp_index(&self) -> __u64 {
7692 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u64) }
7693 }
7694 #[inline]
7695 pub fn set_access_vp_index(&mut self, val: __u64) {
7696 unsafe {
7697 let val: u64 = ::std::mem::transmute(val);
7698 self._bitfield_1.set(8usize, 1u8, val as u64)
7699 }
7700 }
7701 #[inline]
7702 pub unsafe fn access_vp_index_raw(this: *const Self) -> __u64 {
7703 unsafe {
7704 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7705 ::std::ptr::addr_of!((*this)._bitfield_1),
7706 8usize,
7707 1u8,
7708 ) as u64)
7709 }
7710 }
7711 #[inline]
7712 pub unsafe fn set_access_vp_index_raw(this: *mut Self, val: __u64) {
7713 unsafe {
7714 let val: u64 = ::std::mem::transmute(val);
7715 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7716 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7717 8usize,
7718 1u8,
7719 val as u64,
7720 )
7721 }
7722 }
7723 #[inline]
7724 pub fn access_partition_reference_tsc(&self) -> __u64 {
7725 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u64) }
7726 }
7727 #[inline]
7728 pub fn set_access_partition_reference_tsc(&mut self, val: __u64) {
7729 unsafe {
7730 let val: u64 = ::std::mem::transmute(val);
7731 self._bitfield_1.set(9usize, 1u8, val as u64)
7732 }
7733 }
7734 #[inline]
7735 pub unsafe fn access_partition_reference_tsc_raw(this: *const Self) -> __u64 {
7736 unsafe {
7737 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7738 ::std::ptr::addr_of!((*this)._bitfield_1),
7739 9usize,
7740 1u8,
7741 ) as u64)
7742 }
7743 }
7744 #[inline]
7745 pub unsafe fn set_access_partition_reference_tsc_raw(this: *mut Self, val: __u64) {
7746 unsafe {
7747 let val: u64 = ::std::mem::transmute(val);
7748 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7749 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7750 9usize,
7751 1u8,
7752 val as u64,
7753 )
7754 }
7755 }
7756 #[inline]
7757 pub fn reserved_z10(&self) -> __u64 {
7758 unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u64) }
7759 }
7760 #[inline]
7761 pub fn set_reserved_z10(&mut self, val: __u64) {
7762 unsafe {
7763 let val: u64 = ::std::mem::transmute(val);
7764 self._bitfield_1.set(10usize, 1u8, val as u64)
7765 }
7766 }
7767 #[inline]
7768 pub unsafe fn reserved_z10_raw(this: *const Self) -> __u64 {
7769 unsafe {
7770 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7771 ::std::ptr::addr_of!((*this)._bitfield_1),
7772 10usize,
7773 1u8,
7774 ) as u64)
7775 }
7776 }
7777 #[inline]
7778 pub unsafe fn set_reserved_z10_raw(this: *mut Self, val: __u64) {
7779 unsafe {
7780 let val: u64 = ::std::mem::transmute(val);
7781 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7782 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7783 10usize,
7784 1u8,
7785 val as u64,
7786 )
7787 }
7788 }
7789 #[inline]
7790 pub fn access_frequency_regs(&self) -> __u64 {
7791 unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u64) }
7792 }
7793 #[inline]
7794 pub fn set_access_frequency_regs(&mut self, val: __u64) {
7795 unsafe {
7796 let val: u64 = ::std::mem::transmute(val);
7797 self._bitfield_1.set(11usize, 1u8, val as u64)
7798 }
7799 }
7800 #[inline]
7801 pub unsafe fn access_frequency_regs_raw(this: *const Self) -> __u64 {
7802 unsafe {
7803 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7804 ::std::ptr::addr_of!((*this)._bitfield_1),
7805 11usize,
7806 1u8,
7807 ) as u64)
7808 }
7809 }
7810 #[inline]
7811 pub unsafe fn set_access_frequency_regs_raw(this: *mut Self, val: __u64) {
7812 unsafe {
7813 let val: u64 = ::std::mem::transmute(val);
7814 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7815 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7816 11usize,
7817 1u8,
7818 val as u64,
7819 )
7820 }
7821 }
7822 #[inline]
7823 pub fn reserved_z12(&self) -> __u64 {
7824 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u64) }
7825 }
7826 #[inline]
7827 pub fn set_reserved_z12(&mut self, val: __u64) {
7828 unsafe {
7829 let val: u64 = ::std::mem::transmute(val);
7830 self._bitfield_1.set(12usize, 1u8, val as u64)
7831 }
7832 }
7833 #[inline]
7834 pub unsafe fn reserved_z12_raw(this: *const Self) -> __u64 {
7835 unsafe {
7836 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7837 ::std::ptr::addr_of!((*this)._bitfield_1),
7838 12usize,
7839 1u8,
7840 ) as u64)
7841 }
7842 }
7843 #[inline]
7844 pub unsafe fn set_reserved_z12_raw(this: *mut Self, val: __u64) {
7845 unsafe {
7846 let val: u64 = ::std::mem::transmute(val);
7847 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7848 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7849 12usize,
7850 1u8,
7851 val as u64,
7852 )
7853 }
7854 }
7855 #[inline]
7856 pub fn reserved_z13(&self) -> __u64 {
7857 unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u64) }
7858 }
7859 #[inline]
7860 pub fn set_reserved_z13(&mut self, val: __u64) {
7861 unsafe {
7862 let val: u64 = ::std::mem::transmute(val);
7863 self._bitfield_1.set(13usize, 1u8, val as u64)
7864 }
7865 }
7866 #[inline]
7867 pub unsafe fn reserved_z13_raw(this: *const Self) -> __u64 {
7868 unsafe {
7869 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7870 ::std::ptr::addr_of!((*this)._bitfield_1),
7871 13usize,
7872 1u8,
7873 ) as u64)
7874 }
7875 }
7876 #[inline]
7877 pub unsafe fn set_reserved_z13_raw(this: *mut Self, val: __u64) {
7878 unsafe {
7879 let val: u64 = ::std::mem::transmute(val);
7880 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7881 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7882 13usize,
7883 1u8,
7884 val as u64,
7885 )
7886 }
7887 }
7888 #[inline]
7889 pub fn reserved_z14(&self) -> __u64 {
7890 unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u64) }
7891 }
7892 #[inline]
7893 pub fn set_reserved_z14(&mut self, val: __u64) {
7894 unsafe {
7895 let val: u64 = ::std::mem::transmute(val);
7896 self._bitfield_1.set(14usize, 1u8, val as u64)
7897 }
7898 }
7899 #[inline]
7900 pub unsafe fn reserved_z14_raw(this: *const Self) -> __u64 {
7901 unsafe {
7902 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7903 ::std::ptr::addr_of!((*this)._bitfield_1),
7904 14usize,
7905 1u8,
7906 ) as u64)
7907 }
7908 }
7909 #[inline]
7910 pub unsafe fn set_reserved_z14_raw(this: *mut Self, val: __u64) {
7911 unsafe {
7912 let val: u64 = ::std::mem::transmute(val);
7913 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7914 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7915 14usize,
7916 1u8,
7917 val as u64,
7918 )
7919 }
7920 }
7921 #[inline]
7922 pub fn reserved_z15(&self) -> __u64 {
7923 unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u64) }
7924 }
7925 #[inline]
7926 pub fn set_reserved_z15(&mut self, val: __u64) {
7927 unsafe {
7928 let val: u64 = ::std::mem::transmute(val);
7929 self._bitfield_1.set(15usize, 1u8, val as u64)
7930 }
7931 }
7932 #[inline]
7933 pub unsafe fn reserved_z15_raw(this: *const Self) -> __u64 {
7934 unsafe {
7935 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7936 ::std::ptr::addr_of!((*this)._bitfield_1),
7937 15usize,
7938 1u8,
7939 ) as u64)
7940 }
7941 }
7942 #[inline]
7943 pub unsafe fn set_reserved_z15_raw(this: *mut Self, val: __u64) {
7944 unsafe {
7945 let val: u64 = ::std::mem::transmute(val);
7946 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7947 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7948 15usize,
7949 1u8,
7950 val as u64,
7951 )
7952 }
7953 }
7954 #[inline]
7955 pub fn reserved_z16(&self) -> __u64 {
7956 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u64) }
7957 }
7958 #[inline]
7959 pub fn set_reserved_z16(&mut self, val: __u64) {
7960 unsafe {
7961 let val: u64 = ::std::mem::transmute(val);
7962 self._bitfield_1.set(16usize, 1u8, val as u64)
7963 }
7964 }
7965 #[inline]
7966 pub unsafe fn reserved_z16_raw(this: *const Self) -> __u64 {
7967 unsafe {
7968 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
7969 ::std::ptr::addr_of!((*this)._bitfield_1),
7970 16usize,
7971 1u8,
7972 ) as u64)
7973 }
7974 }
7975 #[inline]
7976 pub unsafe fn set_reserved_z16_raw(this: *mut Self, val: __u64) {
7977 unsafe {
7978 let val: u64 = ::std::mem::transmute(val);
7979 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
7980 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
7981 16usize,
7982 1u8,
7983 val as u64,
7984 )
7985 }
7986 }
7987 #[inline]
7988 pub fn reserved_z17(&self) -> __u64 {
7989 unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u64) }
7990 }
7991 #[inline]
7992 pub fn set_reserved_z17(&mut self, val: __u64) {
7993 unsafe {
7994 let val: u64 = ::std::mem::transmute(val);
7995 self._bitfield_1.set(17usize, 1u8, val as u64)
7996 }
7997 }
7998 #[inline]
7999 pub unsafe fn reserved_z17_raw(this: *const Self) -> __u64 {
8000 unsafe {
8001 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8002 ::std::ptr::addr_of!((*this)._bitfield_1),
8003 17usize,
8004 1u8,
8005 ) as u64)
8006 }
8007 }
8008 #[inline]
8009 pub unsafe fn set_reserved_z17_raw(this: *mut Self, val: __u64) {
8010 unsafe {
8011 let val: u64 = ::std::mem::transmute(val);
8012 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8013 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8014 17usize,
8015 1u8,
8016 val as u64,
8017 )
8018 }
8019 }
8020 #[inline]
8021 pub fn fast_hypercall_output(&self) -> __u64 {
8022 unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u64) }
8023 }
8024 #[inline]
8025 pub fn set_fast_hypercall_output(&mut self, val: __u64) {
8026 unsafe {
8027 let val: u64 = ::std::mem::transmute(val);
8028 self._bitfield_1.set(18usize, 1u8, val as u64)
8029 }
8030 }
8031 #[inline]
8032 pub unsafe fn fast_hypercall_output_raw(this: *const Self) -> __u64 {
8033 unsafe {
8034 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8035 ::std::ptr::addr_of!((*this)._bitfield_1),
8036 18usize,
8037 1u8,
8038 ) as u64)
8039 }
8040 }
8041 #[inline]
8042 pub unsafe fn set_fast_hypercall_output_raw(this: *mut Self, val: __u64) {
8043 unsafe {
8044 let val: u64 = ::std::mem::transmute(val);
8045 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8046 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8047 18usize,
8048 1u8,
8049 val as u64,
8050 )
8051 }
8052 }
8053 #[inline]
8054 pub fn reserved_z19(&self) -> __u64 {
8055 unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u64) }
8056 }
8057 #[inline]
8058 pub fn set_reserved_z19(&mut self, val: __u64) {
8059 unsafe {
8060 let val: u64 = ::std::mem::transmute(val);
8061 self._bitfield_1.set(19usize, 1u8, val as u64)
8062 }
8063 }
8064 #[inline]
8065 pub unsafe fn reserved_z19_raw(this: *const Self) -> __u64 {
8066 unsafe {
8067 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8068 ::std::ptr::addr_of!((*this)._bitfield_1),
8069 19usize,
8070 1u8,
8071 ) as u64)
8072 }
8073 }
8074 #[inline]
8075 pub unsafe fn set_reserved_z19_raw(this: *mut Self, val: __u64) {
8076 unsafe {
8077 let val: u64 = ::std::mem::transmute(val);
8078 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8079 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8080 19usize,
8081 1u8,
8082 val as u64,
8083 )
8084 }
8085 }
8086 #[inline]
8087 pub fn start_virtual_processor(&self) -> __u64 {
8088 unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u64) }
8089 }
8090 #[inline]
8091 pub fn set_start_virtual_processor(&mut self, val: __u64) {
8092 unsafe {
8093 let val: u64 = ::std::mem::transmute(val);
8094 self._bitfield_1.set(20usize, 1u8, val as u64)
8095 }
8096 }
8097 #[inline]
8098 pub unsafe fn start_virtual_processor_raw(this: *const Self) -> __u64 {
8099 unsafe {
8100 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8101 ::std::ptr::addr_of!((*this)._bitfield_1),
8102 20usize,
8103 1u8,
8104 ) as u64)
8105 }
8106 }
8107 #[inline]
8108 pub unsafe fn set_start_virtual_processor_raw(this: *mut Self, val: __u64) {
8109 unsafe {
8110 let val: u64 = ::std::mem::transmute(val);
8111 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8112 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8113 20usize,
8114 1u8,
8115 val as u64,
8116 )
8117 }
8118 }
8119 #[inline]
8120 pub fn reserved_z21(&self) -> __u64 {
8121 unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u64) }
8122 }
8123 #[inline]
8124 pub fn set_reserved_z21(&mut self, val: __u64) {
8125 unsafe {
8126 let val: u64 = ::std::mem::transmute(val);
8127 self._bitfield_1.set(21usize, 1u8, val as u64)
8128 }
8129 }
8130 #[inline]
8131 pub unsafe fn reserved_z21_raw(this: *const Self) -> __u64 {
8132 unsafe {
8133 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8134 ::std::ptr::addr_of!((*this)._bitfield_1),
8135 21usize,
8136 1u8,
8137 ) as u64)
8138 }
8139 }
8140 #[inline]
8141 pub unsafe fn set_reserved_z21_raw(this: *mut Self, val: __u64) {
8142 unsafe {
8143 let val: u64 = ::std::mem::transmute(val);
8144 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8145 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8146 21usize,
8147 1u8,
8148 val as u64,
8149 )
8150 }
8151 }
8152 #[inline]
8153 pub fn direct_synthetic_timers(&self) -> __u64 {
8154 unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u64) }
8155 }
8156 #[inline]
8157 pub fn set_direct_synthetic_timers(&mut self, val: __u64) {
8158 unsafe {
8159 let val: u64 = ::std::mem::transmute(val);
8160 self._bitfield_1.set(22usize, 1u8, val as u64)
8161 }
8162 }
8163 #[inline]
8164 pub unsafe fn direct_synthetic_timers_raw(this: *const Self) -> __u64 {
8165 unsafe {
8166 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8167 ::std::ptr::addr_of!((*this)._bitfield_1),
8168 22usize,
8169 1u8,
8170 ) as u64)
8171 }
8172 }
8173 #[inline]
8174 pub unsafe fn set_direct_synthetic_timers_raw(this: *mut Self, val: __u64) {
8175 unsafe {
8176 let val: u64 = ::std::mem::transmute(val);
8177 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8178 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8179 22usize,
8180 1u8,
8181 val as u64,
8182 )
8183 }
8184 }
8185 #[inline]
8186 pub fn reserved_z23(&self) -> __u64 {
8187 unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u64) }
8188 }
8189 #[inline]
8190 pub fn set_reserved_z23(&mut self, val: __u64) {
8191 unsafe {
8192 let val: u64 = ::std::mem::transmute(val);
8193 self._bitfield_1.set(23usize, 1u8, val as u64)
8194 }
8195 }
8196 #[inline]
8197 pub unsafe fn reserved_z23_raw(this: *const Self) -> __u64 {
8198 unsafe {
8199 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8200 ::std::ptr::addr_of!((*this)._bitfield_1),
8201 23usize,
8202 1u8,
8203 ) as u64)
8204 }
8205 }
8206 #[inline]
8207 pub unsafe fn set_reserved_z23_raw(this: *mut Self, val: __u64) {
8208 unsafe {
8209 let val: u64 = ::std::mem::transmute(val);
8210 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8211 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8212 23usize,
8213 1u8,
8214 val as u64,
8215 )
8216 }
8217 }
8218 #[inline]
8219 pub fn extended_processor_masks(&self) -> __u64 {
8220 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 1u8) as u64) }
8221 }
8222 #[inline]
8223 pub fn set_extended_processor_masks(&mut self, val: __u64) {
8224 unsafe {
8225 let val: u64 = ::std::mem::transmute(val);
8226 self._bitfield_1.set(24usize, 1u8, val as u64)
8227 }
8228 }
8229 #[inline]
8230 pub unsafe fn extended_processor_masks_raw(this: *const Self) -> __u64 {
8231 unsafe {
8232 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8233 ::std::ptr::addr_of!((*this)._bitfield_1),
8234 24usize,
8235 1u8,
8236 ) as u64)
8237 }
8238 }
8239 #[inline]
8240 pub unsafe fn set_extended_processor_masks_raw(this: *mut Self, val: __u64) {
8241 unsafe {
8242 let val: u64 = ::std::mem::transmute(val);
8243 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8244 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8245 24usize,
8246 1u8,
8247 val as u64,
8248 )
8249 }
8250 }
8251 #[inline]
8252 pub fn tb_flush_hypercalls(&self) -> __u64 {
8253 unsafe { ::std::mem::transmute(self._bitfield_1.get(25usize, 1u8) as u64) }
8254 }
8255 #[inline]
8256 pub fn set_tb_flush_hypercalls(&mut self, val: __u64) {
8257 unsafe {
8258 let val: u64 = ::std::mem::transmute(val);
8259 self._bitfield_1.set(25usize, 1u8, val as u64)
8260 }
8261 }
8262 #[inline]
8263 pub unsafe fn tb_flush_hypercalls_raw(this: *const Self) -> __u64 {
8264 unsafe {
8265 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8266 ::std::ptr::addr_of!((*this)._bitfield_1),
8267 25usize,
8268 1u8,
8269 ) as u64)
8270 }
8271 }
8272 #[inline]
8273 pub unsafe fn set_tb_flush_hypercalls_raw(this: *mut Self, val: __u64) {
8274 unsafe {
8275 let val: u64 = ::std::mem::transmute(val);
8276 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8277 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8278 25usize,
8279 1u8,
8280 val as u64,
8281 )
8282 }
8283 }
8284 #[inline]
8285 pub fn synthetic_cluster_ipi(&self) -> __u64 {
8286 unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 1u8) as u64) }
8287 }
8288 #[inline]
8289 pub fn set_synthetic_cluster_ipi(&mut self, val: __u64) {
8290 unsafe {
8291 let val: u64 = ::std::mem::transmute(val);
8292 self._bitfield_1.set(26usize, 1u8, val as u64)
8293 }
8294 }
8295 #[inline]
8296 pub unsafe fn synthetic_cluster_ipi_raw(this: *const Self) -> __u64 {
8297 unsafe {
8298 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8299 ::std::ptr::addr_of!((*this)._bitfield_1),
8300 26usize,
8301 1u8,
8302 ) as u64)
8303 }
8304 }
8305 #[inline]
8306 pub unsafe fn set_synthetic_cluster_ipi_raw(this: *mut Self, val: __u64) {
8307 unsafe {
8308 let val: u64 = ::std::mem::transmute(val);
8309 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8310 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8311 26usize,
8312 1u8,
8313 val as u64,
8314 )
8315 }
8316 }
8317 #[inline]
8318 pub fn notify_long_spin_wait(&self) -> __u64 {
8319 unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u64) }
8320 }
8321 #[inline]
8322 pub fn set_notify_long_spin_wait(&mut self, val: __u64) {
8323 unsafe {
8324 let val: u64 = ::std::mem::transmute(val);
8325 self._bitfield_1.set(27usize, 1u8, val as u64)
8326 }
8327 }
8328 #[inline]
8329 pub unsafe fn notify_long_spin_wait_raw(this: *const Self) -> __u64 {
8330 unsafe {
8331 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8332 ::std::ptr::addr_of!((*this)._bitfield_1),
8333 27usize,
8334 1u8,
8335 ) as u64)
8336 }
8337 }
8338 #[inline]
8339 pub unsafe fn set_notify_long_spin_wait_raw(this: *mut Self, val: __u64) {
8340 unsafe {
8341 let val: u64 = ::std::mem::transmute(val);
8342 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8343 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8344 27usize,
8345 1u8,
8346 val as u64,
8347 )
8348 }
8349 }
8350 #[inline]
8351 pub fn query_numa_distance(&self) -> __u64 {
8352 unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u64) }
8353 }
8354 #[inline]
8355 pub fn set_query_numa_distance(&mut self, val: __u64) {
8356 unsafe {
8357 let val: u64 = ::std::mem::transmute(val);
8358 self._bitfield_1.set(28usize, 1u8, val as u64)
8359 }
8360 }
8361 #[inline]
8362 pub unsafe fn query_numa_distance_raw(this: *const Self) -> __u64 {
8363 unsafe {
8364 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8365 ::std::ptr::addr_of!((*this)._bitfield_1),
8366 28usize,
8367 1u8,
8368 ) as u64)
8369 }
8370 }
8371 #[inline]
8372 pub unsafe fn set_query_numa_distance_raw(this: *mut Self, val: __u64) {
8373 unsafe {
8374 let val: u64 = ::std::mem::transmute(val);
8375 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8376 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8377 28usize,
8378 1u8,
8379 val as u64,
8380 )
8381 }
8382 }
8383 #[inline]
8384 pub fn signal_events(&self) -> __u64 {
8385 unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u64) }
8386 }
8387 #[inline]
8388 pub fn set_signal_events(&mut self, val: __u64) {
8389 unsafe {
8390 let val: u64 = ::std::mem::transmute(val);
8391 self._bitfield_1.set(29usize, 1u8, val as u64)
8392 }
8393 }
8394 #[inline]
8395 pub unsafe fn signal_events_raw(this: *const Self) -> __u64 {
8396 unsafe {
8397 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8398 ::std::ptr::addr_of!((*this)._bitfield_1),
8399 29usize,
8400 1u8,
8401 ) as u64)
8402 }
8403 }
8404 #[inline]
8405 pub unsafe fn set_signal_events_raw(this: *mut Self, val: __u64) {
8406 unsafe {
8407 let val: u64 = ::std::mem::transmute(val);
8408 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8409 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8410 29usize,
8411 1u8,
8412 val as u64,
8413 )
8414 }
8415 }
8416 #[inline]
8417 pub fn retarget_device_interrupt(&self) -> __u64 {
8418 unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u64) }
8419 }
8420 #[inline]
8421 pub fn set_retarget_device_interrupt(&mut self, val: __u64) {
8422 unsafe {
8423 let val: u64 = ::std::mem::transmute(val);
8424 self._bitfield_1.set(30usize, 1u8, val as u64)
8425 }
8426 }
8427 #[inline]
8428 pub unsafe fn retarget_device_interrupt_raw(this: *const Self) -> __u64 {
8429 unsafe {
8430 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8431 ::std::ptr::addr_of!((*this)._bitfield_1),
8432 30usize,
8433 1u8,
8434 ) as u64)
8435 }
8436 }
8437 #[inline]
8438 pub unsafe fn set_retarget_device_interrupt_raw(this: *mut Self, val: __u64) {
8439 unsafe {
8440 let val: u64 = ::std::mem::transmute(val);
8441 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8442 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8443 30usize,
8444 1u8,
8445 val as u64,
8446 )
8447 }
8448 }
8449 #[inline]
8450 pub fn reserved_z31(&self) -> __u64 {
8451 unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u64) }
8452 }
8453 #[inline]
8454 pub fn set_reserved_z31(&mut self, val: __u64) {
8455 unsafe {
8456 let val: u64 = ::std::mem::transmute(val);
8457 self._bitfield_1.set(31usize, 1u8, val as u64)
8458 }
8459 }
8460 #[inline]
8461 pub unsafe fn reserved_z31_raw(this: *const Self) -> __u64 {
8462 unsafe {
8463 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8464 ::std::ptr::addr_of!((*this)._bitfield_1),
8465 31usize,
8466 1u8,
8467 ) as u64)
8468 }
8469 }
8470 #[inline]
8471 pub unsafe fn set_reserved_z31_raw(this: *mut Self, val: __u64) {
8472 unsafe {
8473 let val: u64 = ::std::mem::transmute(val);
8474 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8475 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8476 31usize,
8477 1u8,
8478 val as u64,
8479 )
8480 }
8481 }
8482 #[inline]
8483 pub fn reserved_z32(&self) -> __u64 {
8484 unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u64) }
8485 }
8486 #[inline]
8487 pub fn set_reserved_z32(&mut self, val: __u64) {
8488 unsafe {
8489 let val: u64 = ::std::mem::transmute(val);
8490 self._bitfield_1.set(32usize, 1u8, val as u64)
8491 }
8492 }
8493 #[inline]
8494 pub unsafe fn reserved_z32_raw(this: *const Self) -> __u64 {
8495 unsafe {
8496 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8497 ::std::ptr::addr_of!((*this)._bitfield_1),
8498 32usize,
8499 1u8,
8500 ) as u64)
8501 }
8502 }
8503 #[inline]
8504 pub unsafe fn set_reserved_z32_raw(this: *mut Self, val: __u64) {
8505 unsafe {
8506 let val: u64 = ::std::mem::transmute(val);
8507 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8508 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8509 32usize,
8510 1u8,
8511 val as u64,
8512 )
8513 }
8514 }
8515 #[inline]
8516 pub fn reserved_z33(&self) -> __u64 {
8517 unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u64) }
8518 }
8519 #[inline]
8520 pub fn set_reserved_z33(&mut self, val: __u64) {
8521 unsafe {
8522 let val: u64 = ::std::mem::transmute(val);
8523 self._bitfield_1.set(33usize, 1u8, val as u64)
8524 }
8525 }
8526 #[inline]
8527 pub unsafe fn reserved_z33_raw(this: *const Self) -> __u64 {
8528 unsafe {
8529 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8530 ::std::ptr::addr_of!((*this)._bitfield_1),
8531 33usize,
8532 1u8,
8533 ) as u64)
8534 }
8535 }
8536 #[inline]
8537 pub unsafe fn set_reserved_z33_raw(this: *mut Self, val: __u64) {
8538 unsafe {
8539 let val: u64 = ::std::mem::transmute(val);
8540 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8541 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8542 33usize,
8543 1u8,
8544 val as u64,
8545 )
8546 }
8547 }
8548 #[inline]
8549 pub fn reserved_z34(&self) -> __u64 {
8550 unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u64) }
8551 }
8552 #[inline]
8553 pub fn set_reserved_z34(&mut self, val: __u64) {
8554 unsafe {
8555 let val: u64 = ::std::mem::transmute(val);
8556 self._bitfield_1.set(34usize, 1u8, val as u64)
8557 }
8558 }
8559 #[inline]
8560 pub unsafe fn reserved_z34_raw(this: *const Self) -> __u64 {
8561 unsafe {
8562 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8563 ::std::ptr::addr_of!((*this)._bitfield_1),
8564 34usize,
8565 1u8,
8566 ) as u64)
8567 }
8568 }
8569 #[inline]
8570 pub unsafe fn set_reserved_z34_raw(this: *mut Self, val: __u64) {
8571 unsafe {
8572 let val: u64 = ::std::mem::transmute(val);
8573 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8574 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8575 34usize,
8576 1u8,
8577 val as u64,
8578 )
8579 }
8580 }
8581 #[inline]
8582 pub fn reserved_z35(&self) -> __u64 {
8583 unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u64) }
8584 }
8585 #[inline]
8586 pub fn set_reserved_z35(&mut self, val: __u64) {
8587 unsafe {
8588 let val: u64 = ::std::mem::transmute(val);
8589 self._bitfield_1.set(35usize, 1u8, val as u64)
8590 }
8591 }
8592 #[inline]
8593 pub unsafe fn reserved_z35_raw(this: *const Self) -> __u64 {
8594 unsafe {
8595 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8596 ::std::ptr::addr_of!((*this)._bitfield_1),
8597 35usize,
8598 1u8,
8599 ) as u64)
8600 }
8601 }
8602 #[inline]
8603 pub unsafe fn set_reserved_z35_raw(this: *mut Self, val: __u64) {
8604 unsafe {
8605 let val: u64 = ::std::mem::transmute(val);
8606 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8607 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8608 35usize,
8609 1u8,
8610 val as u64,
8611 )
8612 }
8613 }
8614 #[inline]
8615 pub fn register_intercepts_v1(&self) -> __u64 {
8616 unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u64) }
8617 }
8618 #[inline]
8619 pub fn set_register_intercepts_v1(&mut self, val: __u64) {
8620 unsafe {
8621 let val: u64 = ::std::mem::transmute(val);
8622 self._bitfield_1.set(36usize, 1u8, val as u64)
8623 }
8624 }
8625 #[inline]
8626 pub unsafe fn register_intercepts_v1_raw(this: *const Self) -> __u64 {
8627 unsafe {
8628 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8629 ::std::ptr::addr_of!((*this)._bitfield_1),
8630 36usize,
8631 1u8,
8632 ) as u64)
8633 }
8634 }
8635 #[inline]
8636 pub unsafe fn set_register_intercepts_v1_raw(this: *mut Self, val: __u64) {
8637 unsafe {
8638 let val: u64 = ::std::mem::transmute(val);
8639 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8640 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8641 36usize,
8642 1u8,
8643 val as u64,
8644 )
8645 }
8646 }
8647 #[inline]
8648 pub fn wake_vps(&self) -> __u64 {
8649 unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u64) }
8650 }
8651 #[inline]
8652 pub fn set_wake_vps(&mut self, val: __u64) {
8653 unsafe {
8654 let val: u64 = ::std::mem::transmute(val);
8655 self._bitfield_1.set(37usize, 1u8, val as u64)
8656 }
8657 }
8658 #[inline]
8659 pub unsafe fn wake_vps_raw(this: *const Self) -> __u64 {
8660 unsafe {
8661 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8662 ::std::ptr::addr_of!((*this)._bitfield_1),
8663 37usize,
8664 1u8,
8665 ) as u64)
8666 }
8667 }
8668 #[inline]
8669 pub unsafe fn set_wake_vps_raw(this: *mut Self, val: __u64) {
8670 unsafe {
8671 let val: u64 = ::std::mem::transmute(val);
8672 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8673 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8674 37usize,
8675 1u8,
8676 val as u64,
8677 )
8678 }
8679 }
8680 #[inline]
8681 pub fn access_vp_regs(&self) -> __u64 {
8682 unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u64) }
8683 }
8684 #[inline]
8685 pub fn set_access_vp_regs(&mut self, val: __u64) {
8686 unsafe {
8687 let val: u64 = ::std::mem::transmute(val);
8688 self._bitfield_1.set(38usize, 1u8, val as u64)
8689 }
8690 }
8691 #[inline]
8692 pub unsafe fn access_vp_regs_raw(this: *const Self) -> __u64 {
8693 unsafe {
8694 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8695 ::std::ptr::addr_of!((*this)._bitfield_1),
8696 38usize,
8697 1u8,
8698 ) as u64)
8699 }
8700 }
8701 #[inline]
8702 pub unsafe fn set_access_vp_regs_raw(this: *mut Self, val: __u64) {
8703 unsafe {
8704 let val: u64 = ::std::mem::transmute(val);
8705 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8706 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8707 38usize,
8708 1u8,
8709 val as u64,
8710 )
8711 }
8712 }
8713 #[inline]
8714 pub fn sync_context(&self) -> __u64 {
8715 unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u64) }
8716 }
8717 #[inline]
8718 pub fn set_sync_context(&mut self, val: __u64) {
8719 unsafe {
8720 let val: u64 = ::std::mem::transmute(val);
8721 self._bitfield_1.set(39usize, 1u8, val as u64)
8722 }
8723 }
8724 #[inline]
8725 pub unsafe fn sync_context_raw(this: *const Self) -> __u64 {
8726 unsafe {
8727 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8728 ::std::ptr::addr_of!((*this)._bitfield_1),
8729 39usize,
8730 1u8,
8731 ) as u64)
8732 }
8733 }
8734 #[inline]
8735 pub unsafe fn set_sync_context_raw(this: *mut Self, val: __u64) {
8736 unsafe {
8737 let val: u64 = ::std::mem::transmute(val);
8738 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8739 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8740 39usize,
8741 1u8,
8742 val as u64,
8743 )
8744 }
8745 }
8746 #[inline]
8747 pub fn management_vtl_synic_support(&self) -> __u64 {
8748 unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u64) }
8749 }
8750 #[inline]
8751 pub fn set_management_vtl_synic_support(&mut self, val: __u64) {
8752 unsafe {
8753 let val: u64 = ::std::mem::transmute(val);
8754 self._bitfield_1.set(40usize, 1u8, val as u64)
8755 }
8756 }
8757 #[inline]
8758 pub unsafe fn management_vtl_synic_support_raw(this: *const Self) -> __u64 {
8759 unsafe {
8760 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8761 ::std::ptr::addr_of!((*this)._bitfield_1),
8762 40usize,
8763 1u8,
8764 ) as u64)
8765 }
8766 }
8767 #[inline]
8768 pub unsafe fn set_management_vtl_synic_support_raw(this: *mut Self, val: __u64) {
8769 unsafe {
8770 let val: u64 = ::std::mem::transmute(val);
8771 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8772 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8773 40usize,
8774 1u8,
8775 val as u64,
8776 )
8777 }
8778 }
8779 #[inline]
8780 pub fn reserved_z41(&self) -> __u64 {
8781 unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u64) }
8782 }
8783 #[inline]
8784 pub fn set_reserved_z41(&mut self, val: __u64) {
8785 unsafe {
8786 let val: u64 = ::std::mem::transmute(val);
8787 self._bitfield_1.set(41usize, 1u8, val as u64)
8788 }
8789 }
8790 #[inline]
8791 pub unsafe fn reserved_z41_raw(this: *const Self) -> __u64 {
8792 unsafe {
8793 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8794 ::std::ptr::addr_of!((*this)._bitfield_1),
8795 41usize,
8796 1u8,
8797 ) as u64)
8798 }
8799 }
8800 #[inline]
8801 pub unsafe fn set_reserved_z41_raw(this: *mut Self, val: __u64) {
8802 unsafe {
8803 let val: u64 = ::std::mem::transmute(val);
8804 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8805 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8806 41usize,
8807 1u8,
8808 val as u64,
8809 )
8810 }
8811 }
8812 #[inline]
8813 pub fn intercept_system_reset(&self) -> __u64 {
8814 unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u64) }
8815 }
8816 #[inline]
8817 pub fn set_intercept_system_reset(&mut self, val: __u64) {
8818 unsafe {
8819 let val: u64 = ::std::mem::transmute(val);
8820 self._bitfield_1.set(42usize, 1u8, val as u64)
8821 }
8822 }
8823 #[inline]
8824 pub unsafe fn intercept_system_reset_raw(this: *const Self) -> __u64 {
8825 unsafe {
8826 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8827 ::std::ptr::addr_of!((*this)._bitfield_1),
8828 42usize,
8829 1u8,
8830 ) as u64)
8831 }
8832 }
8833 #[inline]
8834 pub unsafe fn set_intercept_system_reset_raw(this: *mut Self, val: __u64) {
8835 unsafe {
8836 let val: u64 = ::std::mem::transmute(val);
8837 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8838 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8839 42usize,
8840 1u8,
8841 val as u64,
8842 )
8843 }
8844 }
8845 #[inline]
8846 pub fn mmio_hypercalls(&self) -> __u64 {
8847 unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 1u8) as u64) }
8848 }
8849 #[inline]
8850 pub fn set_mmio_hypercalls(&mut self, val: __u64) {
8851 unsafe {
8852 let val: u64 = ::std::mem::transmute(val);
8853 self._bitfield_1.set(43usize, 1u8, val as u64)
8854 }
8855 }
8856 #[inline]
8857 pub unsafe fn mmio_hypercalls_raw(this: *const Self) -> __u64 {
8858 unsafe {
8859 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8860 ::std::ptr::addr_of!((*this)._bitfield_1),
8861 43usize,
8862 1u8,
8863 ) as u64)
8864 }
8865 }
8866 #[inline]
8867 pub unsafe fn set_mmio_hypercalls_raw(this: *mut Self, val: __u64) {
8868 unsafe {
8869 let val: u64 = ::std::mem::transmute(val);
8870 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8871 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8872 43usize,
8873 1u8,
8874 val as u64,
8875 )
8876 }
8877 }
8878 #[inline]
8879 pub fn reserved(&self) -> __u64 {
8880 unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 20u8) as u64) }
8881 }
8882 #[inline]
8883 pub fn set_reserved(&mut self, val: __u64) {
8884 unsafe {
8885 let val: u64 = ::std::mem::transmute(val);
8886 self._bitfield_1.set(44usize, 20u8, val as u64)
8887 }
8888 }
8889 #[inline]
8890 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
8891 unsafe {
8892 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
8893 ::std::ptr::addr_of!((*this)._bitfield_1),
8894 44usize,
8895 20u8,
8896 ) as u64)
8897 }
8898 }
8899 #[inline]
8900 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
8901 unsafe {
8902 let val: u64 = ::std::mem::transmute(val);
8903 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
8904 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
8905 44usize,
8906 20u8,
8907 val as u64,
8908 )
8909 }
8910 }
8911 #[inline]
8912 pub fn new_bitfield_1(
8913 hypervisor_present: __u64,
8914 hv1: __u64,
8915 access_vp_run_time_reg: __u64,
8916 access_partition_reference_counter: __u64,
8917 access_synic_regs: __u64,
8918 access_synthetic_timer_regs: __u64,
8919 access_intr_ctrl_regs: __u64,
8920 access_hypercall_regs: __u64,
8921 access_vp_index: __u64,
8922 access_partition_reference_tsc: __u64,
8923 reserved_z10: __u64,
8924 access_frequency_regs: __u64,
8925 reserved_z12: __u64,
8926 reserved_z13: __u64,
8927 reserved_z14: __u64,
8928 reserved_z15: __u64,
8929 reserved_z16: __u64,
8930 reserved_z17: __u64,
8931 fast_hypercall_output: __u64,
8932 reserved_z19: __u64,
8933 start_virtual_processor: __u64,
8934 reserved_z21: __u64,
8935 direct_synthetic_timers: __u64,
8936 reserved_z23: __u64,
8937 extended_processor_masks: __u64,
8938 tb_flush_hypercalls: __u64,
8939 synthetic_cluster_ipi: __u64,
8940 notify_long_spin_wait: __u64,
8941 query_numa_distance: __u64,
8942 signal_events: __u64,
8943 retarget_device_interrupt: __u64,
8944 reserved_z31: __u64,
8945 reserved_z32: __u64,
8946 reserved_z33: __u64,
8947 reserved_z34: __u64,
8948 reserved_z35: __u64,
8949 register_intercepts_v1: __u64,
8950 wake_vps: __u64,
8951 access_vp_regs: __u64,
8952 sync_context: __u64,
8953 management_vtl_synic_support: __u64,
8954 reserved_z41: __u64,
8955 intercept_system_reset: __u64,
8956 mmio_hypercalls: __u64,
8957 reserved: __u64,
8958 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
8959 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
8960 __bindgen_bitfield_unit.set(0usize, 1u8, {
8961 let hypervisor_present: u64 = unsafe { ::std::mem::transmute(hypervisor_present) };
8962 hypervisor_present as u64
8963 });
8964 __bindgen_bitfield_unit.set(1usize, 1u8, {
8965 let hv1: u64 = unsafe { ::std::mem::transmute(hv1) };
8966 hv1 as u64
8967 });
8968 __bindgen_bitfield_unit.set(2usize, 1u8, {
8969 let access_vp_run_time_reg: u64 =
8970 unsafe { ::std::mem::transmute(access_vp_run_time_reg) };
8971 access_vp_run_time_reg as u64
8972 });
8973 __bindgen_bitfield_unit.set(3usize, 1u8, {
8974 let access_partition_reference_counter: u64 =
8975 unsafe { ::std::mem::transmute(access_partition_reference_counter) };
8976 access_partition_reference_counter as u64
8977 });
8978 __bindgen_bitfield_unit.set(4usize, 1u8, {
8979 let access_synic_regs: u64 = unsafe { ::std::mem::transmute(access_synic_regs) };
8980 access_synic_regs as u64
8981 });
8982 __bindgen_bitfield_unit.set(5usize, 1u8, {
8983 let access_synthetic_timer_regs: u64 =
8984 unsafe { ::std::mem::transmute(access_synthetic_timer_regs) };
8985 access_synthetic_timer_regs as u64
8986 });
8987 __bindgen_bitfield_unit.set(6usize, 1u8, {
8988 let access_intr_ctrl_regs: u64 =
8989 unsafe { ::std::mem::transmute(access_intr_ctrl_regs) };
8990 access_intr_ctrl_regs as u64
8991 });
8992 __bindgen_bitfield_unit.set(7usize, 1u8, {
8993 let access_hypercall_regs: u64 =
8994 unsafe { ::std::mem::transmute(access_hypercall_regs) };
8995 access_hypercall_regs as u64
8996 });
8997 __bindgen_bitfield_unit.set(8usize, 1u8, {
8998 let access_vp_index: u64 = unsafe { ::std::mem::transmute(access_vp_index) };
8999 access_vp_index as u64
9000 });
9001 __bindgen_bitfield_unit.set(9usize, 1u8, {
9002 let access_partition_reference_tsc: u64 =
9003 unsafe { ::std::mem::transmute(access_partition_reference_tsc) };
9004 access_partition_reference_tsc as u64
9005 });
9006 __bindgen_bitfield_unit.set(10usize, 1u8, {
9007 let reserved_z10: u64 = unsafe { ::std::mem::transmute(reserved_z10) };
9008 reserved_z10 as u64
9009 });
9010 __bindgen_bitfield_unit.set(11usize, 1u8, {
9011 let access_frequency_regs: u64 =
9012 unsafe { ::std::mem::transmute(access_frequency_regs) };
9013 access_frequency_regs as u64
9014 });
9015 __bindgen_bitfield_unit.set(12usize, 1u8, {
9016 let reserved_z12: u64 = unsafe { ::std::mem::transmute(reserved_z12) };
9017 reserved_z12 as u64
9018 });
9019 __bindgen_bitfield_unit.set(13usize, 1u8, {
9020 let reserved_z13: u64 = unsafe { ::std::mem::transmute(reserved_z13) };
9021 reserved_z13 as u64
9022 });
9023 __bindgen_bitfield_unit.set(14usize, 1u8, {
9024 let reserved_z14: u64 = unsafe { ::std::mem::transmute(reserved_z14) };
9025 reserved_z14 as u64
9026 });
9027 __bindgen_bitfield_unit.set(15usize, 1u8, {
9028 let reserved_z15: u64 = unsafe { ::std::mem::transmute(reserved_z15) };
9029 reserved_z15 as u64
9030 });
9031 __bindgen_bitfield_unit.set(16usize, 1u8, {
9032 let reserved_z16: u64 = unsafe { ::std::mem::transmute(reserved_z16) };
9033 reserved_z16 as u64
9034 });
9035 __bindgen_bitfield_unit.set(17usize, 1u8, {
9036 let reserved_z17: u64 = unsafe { ::std::mem::transmute(reserved_z17) };
9037 reserved_z17 as u64
9038 });
9039 __bindgen_bitfield_unit.set(18usize, 1u8, {
9040 let fast_hypercall_output: u64 =
9041 unsafe { ::std::mem::transmute(fast_hypercall_output) };
9042 fast_hypercall_output as u64
9043 });
9044 __bindgen_bitfield_unit.set(19usize, 1u8, {
9045 let reserved_z19: u64 = unsafe { ::std::mem::transmute(reserved_z19) };
9046 reserved_z19 as u64
9047 });
9048 __bindgen_bitfield_unit.set(20usize, 1u8, {
9049 let start_virtual_processor: u64 =
9050 unsafe { ::std::mem::transmute(start_virtual_processor) };
9051 start_virtual_processor as u64
9052 });
9053 __bindgen_bitfield_unit.set(21usize, 1u8, {
9054 let reserved_z21: u64 = unsafe { ::std::mem::transmute(reserved_z21) };
9055 reserved_z21 as u64
9056 });
9057 __bindgen_bitfield_unit.set(22usize, 1u8, {
9058 let direct_synthetic_timers: u64 =
9059 unsafe { ::std::mem::transmute(direct_synthetic_timers) };
9060 direct_synthetic_timers as u64
9061 });
9062 __bindgen_bitfield_unit.set(23usize, 1u8, {
9063 let reserved_z23: u64 = unsafe { ::std::mem::transmute(reserved_z23) };
9064 reserved_z23 as u64
9065 });
9066 __bindgen_bitfield_unit.set(24usize, 1u8, {
9067 let extended_processor_masks: u64 =
9068 unsafe { ::std::mem::transmute(extended_processor_masks) };
9069 extended_processor_masks as u64
9070 });
9071 __bindgen_bitfield_unit.set(25usize, 1u8, {
9072 let tb_flush_hypercalls: u64 = unsafe { ::std::mem::transmute(tb_flush_hypercalls) };
9073 tb_flush_hypercalls as u64
9074 });
9075 __bindgen_bitfield_unit.set(26usize, 1u8, {
9076 let synthetic_cluster_ipi: u64 =
9077 unsafe { ::std::mem::transmute(synthetic_cluster_ipi) };
9078 synthetic_cluster_ipi as u64
9079 });
9080 __bindgen_bitfield_unit.set(27usize, 1u8, {
9081 let notify_long_spin_wait: u64 =
9082 unsafe { ::std::mem::transmute(notify_long_spin_wait) };
9083 notify_long_spin_wait as u64
9084 });
9085 __bindgen_bitfield_unit.set(28usize, 1u8, {
9086 let query_numa_distance: u64 = unsafe { ::std::mem::transmute(query_numa_distance) };
9087 query_numa_distance as u64
9088 });
9089 __bindgen_bitfield_unit.set(29usize, 1u8, {
9090 let signal_events: u64 = unsafe { ::std::mem::transmute(signal_events) };
9091 signal_events as u64
9092 });
9093 __bindgen_bitfield_unit.set(30usize, 1u8, {
9094 let retarget_device_interrupt: u64 =
9095 unsafe { ::std::mem::transmute(retarget_device_interrupt) };
9096 retarget_device_interrupt as u64
9097 });
9098 __bindgen_bitfield_unit.set(31usize, 1u8, {
9099 let reserved_z31: u64 = unsafe { ::std::mem::transmute(reserved_z31) };
9100 reserved_z31 as u64
9101 });
9102 __bindgen_bitfield_unit.set(32usize, 1u8, {
9103 let reserved_z32: u64 = unsafe { ::std::mem::transmute(reserved_z32) };
9104 reserved_z32 as u64
9105 });
9106 __bindgen_bitfield_unit.set(33usize, 1u8, {
9107 let reserved_z33: u64 = unsafe { ::std::mem::transmute(reserved_z33) };
9108 reserved_z33 as u64
9109 });
9110 __bindgen_bitfield_unit.set(34usize, 1u8, {
9111 let reserved_z34: u64 = unsafe { ::std::mem::transmute(reserved_z34) };
9112 reserved_z34 as u64
9113 });
9114 __bindgen_bitfield_unit.set(35usize, 1u8, {
9115 let reserved_z35: u64 = unsafe { ::std::mem::transmute(reserved_z35) };
9116 reserved_z35 as u64
9117 });
9118 __bindgen_bitfield_unit.set(36usize, 1u8, {
9119 let register_intercepts_v1: u64 =
9120 unsafe { ::std::mem::transmute(register_intercepts_v1) };
9121 register_intercepts_v1 as u64
9122 });
9123 __bindgen_bitfield_unit.set(37usize, 1u8, {
9124 let wake_vps: u64 = unsafe { ::std::mem::transmute(wake_vps) };
9125 wake_vps as u64
9126 });
9127 __bindgen_bitfield_unit.set(38usize, 1u8, {
9128 let access_vp_regs: u64 = unsafe { ::std::mem::transmute(access_vp_regs) };
9129 access_vp_regs as u64
9130 });
9131 __bindgen_bitfield_unit.set(39usize, 1u8, {
9132 let sync_context: u64 = unsafe { ::std::mem::transmute(sync_context) };
9133 sync_context as u64
9134 });
9135 __bindgen_bitfield_unit.set(40usize, 1u8, {
9136 let management_vtl_synic_support: u64 =
9137 unsafe { ::std::mem::transmute(management_vtl_synic_support) };
9138 management_vtl_synic_support as u64
9139 });
9140 __bindgen_bitfield_unit.set(41usize, 1u8, {
9141 let reserved_z41: u64 = unsafe { ::std::mem::transmute(reserved_z41) };
9142 reserved_z41 as u64
9143 });
9144 __bindgen_bitfield_unit.set(42usize, 1u8, {
9145 let intercept_system_reset: u64 =
9146 unsafe { ::std::mem::transmute(intercept_system_reset) };
9147 intercept_system_reset as u64
9148 });
9149 __bindgen_bitfield_unit.set(43usize, 1u8, {
9150 let mmio_hypercalls: u64 = unsafe { ::std::mem::transmute(mmio_hypercalls) };
9151 mmio_hypercalls as u64
9152 });
9153 __bindgen_bitfield_unit.set(44usize, 20u8, {
9154 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
9155 reserved as u64
9156 });
9157 __bindgen_bitfield_unit
9158 }
9159}
9160#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9161const _: () = {
9162 ["Size of hv_partition_synthetic_processor_features"]
9163 [::std::mem::size_of::<hv_partition_synthetic_processor_features>() - 8usize];
9164 ["Alignment of hv_partition_synthetic_processor_features"]
9165 [::std::mem::align_of::<hv_partition_synthetic_processor_features>() - 8usize];
9166 ["Offset of field: hv_partition_synthetic_processor_features::as_uint64"]
9167 [::std::mem::offset_of!(hv_partition_synthetic_processor_features, as_uint64) - 0usize];
9168};
9169impl Default for hv_partition_synthetic_processor_features {
9170 fn default() -> Self {
9171 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9172 unsafe {
9173 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9174 s.assume_init()
9175 }
9176 }
9177}
9178pub const hv_partition_isolation_state_HV_PARTITION_ISOLATION_INVALID:
9179 hv_partition_isolation_state = 0;
9180pub const hv_partition_isolation_state_HV_PARTITION_ISOLATION_INSECURE_CLEAN:
9181 hv_partition_isolation_state = 1;
9182pub const hv_partition_isolation_state_HV_PARTITION_ISOLATION_INSECURE_DIRTY:
9183 hv_partition_isolation_state = 2;
9184pub const hv_partition_isolation_state_HV_PARTITION_ISOLATION_SECURE: hv_partition_isolation_state =
9185 3;
9186pub const hv_partition_isolation_state_HV_PARTITION_ISOLATION_SECURE_DIRTY:
9187 hv_partition_isolation_state = 4;
9188pub const hv_partition_isolation_state_HV_PARTITION_ISOLATION_SECURE_TERMINATING:
9189 hv_partition_isolation_state = 5;
9190pub type hv_partition_isolation_state = ::std::os::raw::c_uint;
9191#[repr(C)]
9192#[derive(Copy, Clone)]
9193pub union hv_partition_isolation_properties {
9194 pub as_uint64: __u64,
9195 pub __bindgen_anon_1: hv_partition_isolation_properties__bindgen_ty_1,
9196}
9197#[repr(C, packed)]
9198#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
9199pub struct hv_partition_isolation_properties__bindgen_ty_1 {
9200 pub _bitfield_align_1: [u8; 0],
9201 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
9202}
9203#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9204const _: () = {
9205 ["Size of hv_partition_isolation_properties__bindgen_ty_1"]
9206 [::std::mem::size_of::<hv_partition_isolation_properties__bindgen_ty_1>() - 8usize];
9207 ["Alignment of hv_partition_isolation_properties__bindgen_ty_1"]
9208 [::std::mem::align_of::<hv_partition_isolation_properties__bindgen_ty_1>() - 1usize];
9209};
9210impl hv_partition_isolation_properties__bindgen_ty_1 {
9211 #[inline]
9212 pub fn isolation_type(&self) -> __u64 {
9213 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 5u8) as u64) }
9214 }
9215 #[inline]
9216 pub fn set_isolation_type(&mut self, val: __u64) {
9217 unsafe {
9218 let val: u64 = ::std::mem::transmute(val);
9219 self._bitfield_1.set(0usize, 5u8, val as u64)
9220 }
9221 }
9222 #[inline]
9223 pub unsafe fn isolation_type_raw(this: *const Self) -> __u64 {
9224 unsafe {
9225 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
9226 ::std::ptr::addr_of!((*this)._bitfield_1),
9227 0usize,
9228 5u8,
9229 ) as u64)
9230 }
9231 }
9232 #[inline]
9233 pub unsafe fn set_isolation_type_raw(this: *mut Self, val: __u64) {
9234 unsafe {
9235 let val: u64 = ::std::mem::transmute(val);
9236 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
9237 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
9238 0usize,
9239 5u8,
9240 val as u64,
9241 )
9242 }
9243 }
9244 #[inline]
9245 pub fn isolation_host_type(&self) -> __u64 {
9246 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 2u8) as u64) }
9247 }
9248 #[inline]
9249 pub fn set_isolation_host_type(&mut self, val: __u64) {
9250 unsafe {
9251 let val: u64 = ::std::mem::transmute(val);
9252 self._bitfield_1.set(5usize, 2u8, val as u64)
9253 }
9254 }
9255 #[inline]
9256 pub unsafe fn isolation_host_type_raw(this: *const Self) -> __u64 {
9257 unsafe {
9258 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
9259 ::std::ptr::addr_of!((*this)._bitfield_1),
9260 5usize,
9261 2u8,
9262 ) as u64)
9263 }
9264 }
9265 #[inline]
9266 pub unsafe fn set_isolation_host_type_raw(this: *mut Self, val: __u64) {
9267 unsafe {
9268 let val: u64 = ::std::mem::transmute(val);
9269 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
9270 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
9271 5usize,
9272 2u8,
9273 val as u64,
9274 )
9275 }
9276 }
9277 #[inline]
9278 pub fn rsvd_z(&self) -> __u64 {
9279 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 5u8) as u64) }
9280 }
9281 #[inline]
9282 pub fn set_rsvd_z(&mut self, val: __u64) {
9283 unsafe {
9284 let val: u64 = ::std::mem::transmute(val);
9285 self._bitfield_1.set(7usize, 5u8, val as u64)
9286 }
9287 }
9288 #[inline]
9289 pub unsafe fn rsvd_z_raw(this: *const Self) -> __u64 {
9290 unsafe {
9291 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
9292 ::std::ptr::addr_of!((*this)._bitfield_1),
9293 7usize,
9294 5u8,
9295 ) as u64)
9296 }
9297 }
9298 #[inline]
9299 pub unsafe fn set_rsvd_z_raw(this: *mut Self, val: __u64) {
9300 unsafe {
9301 let val: u64 = ::std::mem::transmute(val);
9302 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
9303 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
9304 7usize,
9305 5u8,
9306 val as u64,
9307 )
9308 }
9309 }
9310 #[inline]
9311 pub fn shared_gpa_boundary_page_number(&self) -> __u64 {
9312 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 52u8) as u64) }
9313 }
9314 #[inline]
9315 pub fn set_shared_gpa_boundary_page_number(&mut self, val: __u64) {
9316 unsafe {
9317 let val: u64 = ::std::mem::transmute(val);
9318 self._bitfield_1.set(12usize, 52u8, val as u64)
9319 }
9320 }
9321 #[inline]
9322 pub unsafe fn shared_gpa_boundary_page_number_raw(this: *const Self) -> __u64 {
9323 unsafe {
9324 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
9325 ::std::ptr::addr_of!((*this)._bitfield_1),
9326 12usize,
9327 52u8,
9328 ) as u64)
9329 }
9330 }
9331 #[inline]
9332 pub unsafe fn set_shared_gpa_boundary_page_number_raw(this: *mut Self, val: __u64) {
9333 unsafe {
9334 let val: u64 = ::std::mem::transmute(val);
9335 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
9336 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
9337 12usize,
9338 52u8,
9339 val as u64,
9340 )
9341 }
9342 }
9343 #[inline]
9344 pub fn new_bitfield_1(
9345 isolation_type: __u64,
9346 isolation_host_type: __u64,
9347 rsvd_z: __u64,
9348 shared_gpa_boundary_page_number: __u64,
9349 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
9350 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
9351 __bindgen_bitfield_unit.set(0usize, 5u8, {
9352 let isolation_type: u64 = unsafe { ::std::mem::transmute(isolation_type) };
9353 isolation_type as u64
9354 });
9355 __bindgen_bitfield_unit.set(5usize, 2u8, {
9356 let isolation_host_type: u64 = unsafe { ::std::mem::transmute(isolation_host_type) };
9357 isolation_host_type as u64
9358 });
9359 __bindgen_bitfield_unit.set(7usize, 5u8, {
9360 let rsvd_z: u64 = unsafe { ::std::mem::transmute(rsvd_z) };
9361 rsvd_z as u64
9362 });
9363 __bindgen_bitfield_unit.set(12usize, 52u8, {
9364 let shared_gpa_boundary_page_number: u64 =
9365 unsafe { ::std::mem::transmute(shared_gpa_boundary_page_number) };
9366 shared_gpa_boundary_page_number as u64
9367 });
9368 __bindgen_bitfield_unit
9369 }
9370}
9371#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9372const _: () = {
9373 ["Size of hv_partition_isolation_properties"]
9374 [::std::mem::size_of::<hv_partition_isolation_properties>() - 8usize];
9375 ["Alignment of hv_partition_isolation_properties"]
9376 [::std::mem::align_of::<hv_partition_isolation_properties>() - 8usize];
9377 ["Offset of field: hv_partition_isolation_properties::as_uint64"]
9378 [::std::mem::offset_of!(hv_partition_isolation_properties, as_uint64) - 0usize];
9379};
9380impl Default for hv_partition_isolation_properties {
9381 fn default() -> Self {
9382 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9383 unsafe {
9384 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9385 s.assume_init()
9386 }
9387 }
9388}
9389#[repr(C, packed)]
9390#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
9391pub struct hv_input_get_partition_property {
9392 pub partition_id: __u64,
9393 pub property_code: __u32,
9394 pub padding: __u32,
9395}
9396#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9397const _: () = {
9398 ["Size of hv_input_get_partition_property"]
9399 [::std::mem::size_of::<hv_input_get_partition_property>() - 16usize];
9400 ["Alignment of hv_input_get_partition_property"]
9401 [::std::mem::align_of::<hv_input_get_partition_property>() - 1usize];
9402 ["Offset of field: hv_input_get_partition_property::partition_id"]
9403 [::std::mem::offset_of!(hv_input_get_partition_property, partition_id) - 0usize];
9404 ["Offset of field: hv_input_get_partition_property::property_code"]
9405 [::std::mem::offset_of!(hv_input_get_partition_property, property_code) - 8usize];
9406 ["Offset of field: hv_input_get_partition_property::padding"]
9407 [::std::mem::offset_of!(hv_input_get_partition_property, padding) - 12usize];
9408};
9409#[repr(C, packed)]
9410#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
9411pub struct hv_output_get_partition_property {
9412 pub property_value: __u64,
9413}
9414#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9415const _: () = {
9416 ["Size of hv_output_get_partition_property"]
9417 [::std::mem::size_of::<hv_output_get_partition_property>() - 8usize];
9418 ["Alignment of hv_output_get_partition_property"]
9419 [::std::mem::align_of::<hv_output_get_partition_property>() - 1usize];
9420 ["Offset of field: hv_output_get_partition_property::property_value"]
9421 [::std::mem::offset_of!(hv_output_get_partition_property, property_value) - 0usize];
9422};
9423#[repr(C, packed)]
9424#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
9425pub struct hv_input_set_partition_property {
9426 pub partition_id: __u64,
9427 pub property_code: __u32,
9428 pub padding: __u32,
9429 pub property_value: __u64,
9430}
9431#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9432const _: () = {
9433 ["Size of hv_input_set_partition_property"]
9434 [::std::mem::size_of::<hv_input_set_partition_property>() - 24usize];
9435 ["Alignment of hv_input_set_partition_property"]
9436 [::std::mem::align_of::<hv_input_set_partition_property>() - 1usize];
9437 ["Offset of field: hv_input_set_partition_property::partition_id"]
9438 [::std::mem::offset_of!(hv_input_set_partition_property, partition_id) - 0usize];
9439 ["Offset of field: hv_input_set_partition_property::property_code"]
9440 [::std::mem::offset_of!(hv_input_set_partition_property, property_code) - 8usize];
9441 ["Offset of field: hv_input_set_partition_property::padding"]
9442 [::std::mem::offset_of!(hv_input_set_partition_property, padding) - 12usize];
9443 ["Offset of field: hv_input_set_partition_property::property_value"]
9444 [::std::mem::offset_of!(hv_input_set_partition_property, property_value) - 16usize];
9445};
9446#[repr(C, packed)]
9447#[derive(Copy, Clone)]
9448pub union hv_partition_property_arg {
9449 pub as_uint64: __u64,
9450 pub __bindgen_anon_1: hv_partition_property_arg__bindgen_ty_1,
9451}
9452#[repr(C)]
9453#[derive(Copy, Clone)]
9454pub struct hv_partition_property_arg__bindgen_ty_1 {
9455 pub __bindgen_anon_1: hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1,
9456 pub reserved0: __u16,
9457 pub reserved1: __u8,
9458 pub object_type: __u8,
9459}
9460#[repr(C)]
9461#[derive(Copy, Clone)]
9462pub union hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1 {
9463 pub arg: __u32,
9464 pub vp_index: __u32,
9465}
9466#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9467const _: () = {
9468 ["Size of hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1"]
9469 [::std::mem::size_of::<hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1>() - 4usize];
9470 ["Alignment of hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1"]
9471 [::std::mem::align_of::<hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1>() - 4usize];
9472 ["Offset of field: hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1::arg"][::std::mem::offset_of!(
9473 hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1,
9474 arg
9475 ) - 0usize];
9476 ["Offset of field: hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1::vp_index"][::std::mem::offset_of!(
9477 hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1,
9478 vp_index
9479 )
9480 - 0usize];
9481};
9482impl Default for hv_partition_property_arg__bindgen_ty_1__bindgen_ty_1 {
9483 fn default() -> Self {
9484 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9485 unsafe {
9486 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9487 s.assume_init()
9488 }
9489 }
9490}
9491#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9492const _: () = {
9493 ["Size of hv_partition_property_arg__bindgen_ty_1"]
9494 [::std::mem::size_of::<hv_partition_property_arg__bindgen_ty_1>() - 8usize];
9495 ["Alignment of hv_partition_property_arg__bindgen_ty_1"]
9496 [::std::mem::align_of::<hv_partition_property_arg__bindgen_ty_1>() - 4usize];
9497 ["Offset of field: hv_partition_property_arg__bindgen_ty_1::reserved0"]
9498 [::std::mem::offset_of!(hv_partition_property_arg__bindgen_ty_1, reserved0) - 4usize];
9499 ["Offset of field: hv_partition_property_arg__bindgen_ty_1::reserved1"]
9500 [::std::mem::offset_of!(hv_partition_property_arg__bindgen_ty_1, reserved1) - 6usize];
9501 ["Offset of field: hv_partition_property_arg__bindgen_ty_1::object_type"]
9502 [::std::mem::offset_of!(hv_partition_property_arg__bindgen_ty_1, object_type) - 7usize];
9503};
9504impl Default for hv_partition_property_arg__bindgen_ty_1 {
9505 fn default() -> Self {
9506 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9507 unsafe {
9508 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9509 s.assume_init()
9510 }
9511 }
9512}
9513#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9514const _: () = {
9515 ["Size of hv_partition_property_arg"]
9516 [::std::mem::size_of::<hv_partition_property_arg>() - 8usize];
9517 ["Alignment of hv_partition_property_arg"]
9518 [::std::mem::align_of::<hv_partition_property_arg>() - 1usize];
9519 ["Offset of field: hv_partition_property_arg::as_uint64"]
9520 [::std::mem::offset_of!(hv_partition_property_arg, as_uint64) - 0usize];
9521};
9522impl Default for hv_partition_property_arg {
9523 fn default() -> Self {
9524 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9525 unsafe {
9526 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9527 s.assume_init()
9528 }
9529 }
9530}
9531#[repr(C, packed)]
9532#[derive(Copy, Clone)]
9533pub struct hv_input_get_partition_property_ex {
9534 pub partition_id: __u64,
9535 pub property_code: __u32,
9536 pub padding: __u32,
9537 pub __bindgen_anon_1: hv_input_get_partition_property_ex__bindgen_ty_1,
9538}
9539#[repr(C)]
9540#[derive(Copy, Clone)]
9541pub union hv_input_get_partition_property_ex__bindgen_ty_1 {
9542 pub arg_data: hv_partition_property_arg,
9543 pub arg: __u64,
9544}
9545#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9546const _: () = {
9547 ["Size of hv_input_get_partition_property_ex__bindgen_ty_1"]
9548 [::std::mem::size_of::<hv_input_get_partition_property_ex__bindgen_ty_1>() - 8usize];
9549 ["Alignment of hv_input_get_partition_property_ex__bindgen_ty_1"]
9550 [::std::mem::align_of::<hv_input_get_partition_property_ex__bindgen_ty_1>() - 8usize];
9551 ["Offset of field: hv_input_get_partition_property_ex__bindgen_ty_1::arg_data"][::std::mem::offset_of!(
9552 hv_input_get_partition_property_ex__bindgen_ty_1,
9553 arg_data
9554 ) - 0usize];
9555 ["Offset of field: hv_input_get_partition_property_ex__bindgen_ty_1::arg"]
9556 [::std::mem::offset_of!(hv_input_get_partition_property_ex__bindgen_ty_1, arg) - 0usize];
9557};
9558impl Default for hv_input_get_partition_property_ex__bindgen_ty_1 {
9559 fn default() -> Self {
9560 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9561 unsafe {
9562 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9563 s.assume_init()
9564 }
9565 }
9566}
9567#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9568const _: () = {
9569 ["Size of hv_input_get_partition_property_ex"]
9570 [::std::mem::size_of::<hv_input_get_partition_property_ex>() - 24usize];
9571 ["Alignment of hv_input_get_partition_property_ex"]
9572 [::std::mem::align_of::<hv_input_get_partition_property_ex>() - 1usize];
9573 ["Offset of field: hv_input_get_partition_property_ex::partition_id"]
9574 [::std::mem::offset_of!(hv_input_get_partition_property_ex, partition_id) - 0usize];
9575 ["Offset of field: hv_input_get_partition_property_ex::property_code"]
9576 [::std::mem::offset_of!(hv_input_get_partition_property_ex, property_code) - 8usize];
9577 ["Offset of field: hv_input_get_partition_property_ex::padding"]
9578 [::std::mem::offset_of!(hv_input_get_partition_property_ex, padding) - 12usize];
9579};
9580impl Default for hv_input_get_partition_property_ex {
9581 fn default() -> Self {
9582 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9583 unsafe {
9584 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9585 s.assume_init()
9586 }
9587 }
9588}
9589#[repr(C, packed)]
9590#[derive(Copy, Clone)]
9591pub union hv_partition_property_ex {
9592 pub buffer: [__u8; 4072usize],
9593 pub vmm_capabilities: hv_partition_property_vmm_capabilities,
9594}
9595#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9596const _: () = {
9597 ["Size of hv_partition_property_ex"]
9598 [::std::mem::size_of::<hv_partition_property_ex>() - 4072usize];
9599 ["Alignment of hv_partition_property_ex"]
9600 [::std::mem::align_of::<hv_partition_property_ex>() - 1usize];
9601 ["Offset of field: hv_partition_property_ex::buffer"]
9602 [::std::mem::offset_of!(hv_partition_property_ex, buffer) - 0usize];
9603 ["Offset of field: hv_partition_property_ex::vmm_capabilities"]
9604 [::std::mem::offset_of!(hv_partition_property_ex, vmm_capabilities) - 0usize];
9605};
9606impl Default for hv_partition_property_ex {
9607 fn default() -> Self {
9608 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9609 unsafe {
9610 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9611 s.assume_init()
9612 }
9613 }
9614}
9615#[repr(C, packed)]
9616#[derive(Copy, Clone)]
9617pub struct hv_output_get_partition_property_ex {
9618 pub property_value: hv_partition_property_ex,
9619}
9620#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9621const _: () = {
9622 ["Size of hv_output_get_partition_property_ex"]
9623 [::std::mem::size_of::<hv_output_get_partition_property_ex>() - 4072usize];
9624 ["Alignment of hv_output_get_partition_property_ex"]
9625 [::std::mem::align_of::<hv_output_get_partition_property_ex>() - 1usize];
9626 ["Offset of field: hv_output_get_partition_property_ex::property_value"]
9627 [::std::mem::offset_of!(hv_output_get_partition_property_ex, property_value) - 0usize];
9628};
9629impl Default for hv_output_get_partition_property_ex {
9630 fn default() -> Self {
9631 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9632 unsafe {
9633 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9634 s.assume_init()
9635 }
9636 }
9637}
9638#[repr(C, packed)]
9639#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
9640pub struct hv_cpuid_leaf_info {
9641 pub eax: __u32,
9642 pub ecx: __u32,
9643 pub xfem: __u64,
9644 pub xss: __u64,
9645}
9646#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9647const _: () = {
9648 ["Size of hv_cpuid_leaf_info"][::std::mem::size_of::<hv_cpuid_leaf_info>() - 24usize];
9649 ["Alignment of hv_cpuid_leaf_info"][::std::mem::align_of::<hv_cpuid_leaf_info>() - 1usize];
9650 ["Offset of field: hv_cpuid_leaf_info::eax"]
9651 [::std::mem::offset_of!(hv_cpuid_leaf_info, eax) - 0usize];
9652 ["Offset of field: hv_cpuid_leaf_info::ecx"]
9653 [::std::mem::offset_of!(hv_cpuid_leaf_info, ecx) - 4usize];
9654 ["Offset of field: hv_cpuid_leaf_info::xfem"]
9655 [::std::mem::offset_of!(hv_cpuid_leaf_info, xfem) - 8usize];
9656 ["Offset of field: hv_cpuid_leaf_info::xss"]
9657 [::std::mem::offset_of!(hv_cpuid_leaf_info, xss) - 16usize];
9658};
9659#[repr(C, packed)]
9660#[derive(Copy, Clone)]
9661pub union hv_get_vp_cpuid_values_flags {
9662 pub as_uint32: __u32,
9663 pub __bindgen_anon_1: hv_get_vp_cpuid_values_flags__bindgen_ty_1,
9664}
9665#[repr(C, packed)]
9666#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
9667pub struct hv_get_vp_cpuid_values_flags__bindgen_ty_1 {
9668 pub _bitfield_align_1: [u8; 0],
9669 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
9670}
9671#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9672const _: () = {
9673 ["Size of hv_get_vp_cpuid_values_flags__bindgen_ty_1"]
9674 [::std::mem::size_of::<hv_get_vp_cpuid_values_flags__bindgen_ty_1>() - 4usize];
9675 ["Alignment of hv_get_vp_cpuid_values_flags__bindgen_ty_1"]
9676 [::std::mem::align_of::<hv_get_vp_cpuid_values_flags__bindgen_ty_1>() - 1usize];
9677};
9678impl hv_get_vp_cpuid_values_flags__bindgen_ty_1 {
9679 #[inline]
9680 pub fn use_vp_xfem_xss(&self) -> __u32 {
9681 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
9682 }
9683 #[inline]
9684 pub fn set_use_vp_xfem_xss(&mut self, val: __u32) {
9685 unsafe {
9686 let val: u32 = ::std::mem::transmute(val);
9687 self._bitfield_1.set(0usize, 1u8, val as u64)
9688 }
9689 }
9690 #[inline]
9691 pub unsafe fn use_vp_xfem_xss_raw(this: *const Self) -> __u32 {
9692 unsafe {
9693 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9694 ::std::ptr::addr_of!((*this)._bitfield_1),
9695 0usize,
9696 1u8,
9697 ) as u32)
9698 }
9699 }
9700 #[inline]
9701 pub unsafe fn set_use_vp_xfem_xss_raw(this: *mut Self, val: __u32) {
9702 unsafe {
9703 let val: u32 = ::std::mem::transmute(val);
9704 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9705 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
9706 0usize,
9707 1u8,
9708 val as u64,
9709 )
9710 }
9711 }
9712 #[inline]
9713 pub fn apply_registered_values(&self) -> __u32 {
9714 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
9715 }
9716 #[inline]
9717 pub fn set_apply_registered_values(&mut self, val: __u32) {
9718 unsafe {
9719 let val: u32 = ::std::mem::transmute(val);
9720 self._bitfield_1.set(1usize, 1u8, val as u64)
9721 }
9722 }
9723 #[inline]
9724 pub unsafe fn apply_registered_values_raw(this: *const Self) -> __u32 {
9725 unsafe {
9726 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9727 ::std::ptr::addr_of!((*this)._bitfield_1),
9728 1usize,
9729 1u8,
9730 ) as u32)
9731 }
9732 }
9733 #[inline]
9734 pub unsafe fn set_apply_registered_values_raw(this: *mut Self, val: __u32) {
9735 unsafe {
9736 let val: u32 = ::std::mem::transmute(val);
9737 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9738 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
9739 1usize,
9740 1u8,
9741 val as u64,
9742 )
9743 }
9744 }
9745 #[inline]
9746 pub fn reserved(&self) -> __u32 {
9747 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
9748 }
9749 #[inline]
9750 pub fn set_reserved(&mut self, val: __u32) {
9751 unsafe {
9752 let val: u32 = ::std::mem::transmute(val);
9753 self._bitfield_1.set(2usize, 30u8, val as u64)
9754 }
9755 }
9756 #[inline]
9757 pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
9758 unsafe {
9759 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9760 ::std::ptr::addr_of!((*this)._bitfield_1),
9761 2usize,
9762 30u8,
9763 ) as u32)
9764 }
9765 }
9766 #[inline]
9767 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
9768 unsafe {
9769 let val: u32 = ::std::mem::transmute(val);
9770 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9771 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
9772 2usize,
9773 30u8,
9774 val as u64,
9775 )
9776 }
9777 }
9778 #[inline]
9779 pub fn new_bitfield_1(
9780 use_vp_xfem_xss: __u32,
9781 apply_registered_values: __u32,
9782 reserved: __u32,
9783 ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
9784 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
9785 __bindgen_bitfield_unit.set(0usize, 1u8, {
9786 let use_vp_xfem_xss: u32 = unsafe { ::std::mem::transmute(use_vp_xfem_xss) };
9787 use_vp_xfem_xss as u64
9788 });
9789 __bindgen_bitfield_unit.set(1usize, 1u8, {
9790 let apply_registered_values: u32 =
9791 unsafe { ::std::mem::transmute(apply_registered_values) };
9792 apply_registered_values as u64
9793 });
9794 __bindgen_bitfield_unit.set(2usize, 30u8, {
9795 let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
9796 reserved as u64
9797 });
9798 __bindgen_bitfield_unit
9799 }
9800}
9801#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9802const _: () = {
9803 ["Size of hv_get_vp_cpuid_values_flags"]
9804 [::std::mem::size_of::<hv_get_vp_cpuid_values_flags>() - 4usize];
9805 ["Alignment of hv_get_vp_cpuid_values_flags"]
9806 [::std::mem::align_of::<hv_get_vp_cpuid_values_flags>() - 1usize];
9807 ["Offset of field: hv_get_vp_cpuid_values_flags::as_uint32"]
9808 [::std::mem::offset_of!(hv_get_vp_cpuid_values_flags, as_uint32) - 0usize];
9809};
9810impl Default for hv_get_vp_cpuid_values_flags {
9811 fn default() -> Self {
9812 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9813 unsafe {
9814 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9815 s.assume_init()
9816 }
9817 }
9818}
9819#[repr(C, packed)]
9820pub struct hv_input_get_vp_cpuid_values {
9821 pub partition_id: __u64,
9822 pub vp_index: __u32,
9823 pub flags: hv_get_vp_cpuid_values_flags,
9824 pub reserved: __u32,
9825 pub padding: __u32,
9826 pub cpuid_leaf_info: __IncompleteArrayField<hv_cpuid_leaf_info>,
9827}
9828#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9829const _: () = {
9830 ["Size of hv_input_get_vp_cpuid_values"]
9831 [::std::mem::size_of::<hv_input_get_vp_cpuid_values>() - 24usize];
9832 ["Alignment of hv_input_get_vp_cpuid_values"]
9833 [::std::mem::align_of::<hv_input_get_vp_cpuid_values>() - 1usize];
9834 ["Offset of field: hv_input_get_vp_cpuid_values::partition_id"]
9835 [::std::mem::offset_of!(hv_input_get_vp_cpuid_values, partition_id) - 0usize];
9836 ["Offset of field: hv_input_get_vp_cpuid_values::vp_index"]
9837 [::std::mem::offset_of!(hv_input_get_vp_cpuid_values, vp_index) - 8usize];
9838 ["Offset of field: hv_input_get_vp_cpuid_values::flags"]
9839 [::std::mem::offset_of!(hv_input_get_vp_cpuid_values, flags) - 12usize];
9840 ["Offset of field: hv_input_get_vp_cpuid_values::reserved"]
9841 [::std::mem::offset_of!(hv_input_get_vp_cpuid_values, reserved) - 16usize];
9842 ["Offset of field: hv_input_get_vp_cpuid_values::padding"]
9843 [::std::mem::offset_of!(hv_input_get_vp_cpuid_values, padding) - 20usize];
9844 ["Offset of field: hv_input_get_vp_cpuid_values::cpuid_leaf_info"]
9845 [::std::mem::offset_of!(hv_input_get_vp_cpuid_values, cpuid_leaf_info) - 24usize];
9846};
9847impl Default for hv_input_get_vp_cpuid_values {
9848 fn default() -> Self {
9849 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9850 unsafe {
9851 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9852 s.assume_init()
9853 }
9854 }
9855}
9856#[repr(C)]
9857#[derive(Copy, Clone)]
9858pub union hv_output_get_vp_cpuid_values {
9859 pub as_uint32: [__u32; 4usize],
9860 pub __bindgen_anon_1: hv_output_get_vp_cpuid_values__bindgen_ty_1,
9861}
9862#[repr(C, packed)]
9863#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
9864pub struct hv_output_get_vp_cpuid_values__bindgen_ty_1 {
9865 pub eax: __u32,
9866 pub ebx: __u32,
9867 pub ecx: __u32,
9868 pub edx: __u32,
9869}
9870#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9871const _: () = {
9872 ["Size of hv_output_get_vp_cpuid_values__bindgen_ty_1"]
9873 [::std::mem::size_of::<hv_output_get_vp_cpuid_values__bindgen_ty_1>() - 16usize];
9874 ["Alignment of hv_output_get_vp_cpuid_values__bindgen_ty_1"]
9875 [::std::mem::align_of::<hv_output_get_vp_cpuid_values__bindgen_ty_1>() - 1usize];
9876 ["Offset of field: hv_output_get_vp_cpuid_values__bindgen_ty_1::eax"]
9877 [::std::mem::offset_of!(hv_output_get_vp_cpuid_values__bindgen_ty_1, eax) - 0usize];
9878 ["Offset of field: hv_output_get_vp_cpuid_values__bindgen_ty_1::ebx"]
9879 [::std::mem::offset_of!(hv_output_get_vp_cpuid_values__bindgen_ty_1, ebx) - 4usize];
9880 ["Offset of field: hv_output_get_vp_cpuid_values__bindgen_ty_1::ecx"]
9881 [::std::mem::offset_of!(hv_output_get_vp_cpuid_values__bindgen_ty_1, ecx) - 8usize];
9882 ["Offset of field: hv_output_get_vp_cpuid_values__bindgen_ty_1::edx"]
9883 [::std::mem::offset_of!(hv_output_get_vp_cpuid_values__bindgen_ty_1, edx) - 12usize];
9884};
9885#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9886const _: () = {
9887 ["Size of hv_output_get_vp_cpuid_values"]
9888 [::std::mem::size_of::<hv_output_get_vp_cpuid_values>() - 16usize];
9889 ["Alignment of hv_output_get_vp_cpuid_values"]
9890 [::std::mem::align_of::<hv_output_get_vp_cpuid_values>() - 4usize];
9891 ["Offset of field: hv_output_get_vp_cpuid_values::as_uint32"]
9892 [::std::mem::offset_of!(hv_output_get_vp_cpuid_values, as_uint32) - 0usize];
9893};
9894impl Default for hv_output_get_vp_cpuid_values {
9895 fn default() -> Self {
9896 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9897 unsafe {
9898 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9899 s.assume_init()
9900 }
9901 }
9902}
9903pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_SUCCESS: hv_translate_gva_result_code = 0;
9904pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_PAGE_NOT_PRESENT:
9905 hv_translate_gva_result_code = 1;
9906pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_PRIVILEGE_VIOLATION:
9907 hv_translate_gva_result_code = 2;
9908pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_INVALIDE_PAGE_TABLE_FLAGS:
9909 hv_translate_gva_result_code = 3;
9910pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_GPA_UNMAPPED: hv_translate_gva_result_code =
9911 4;
9912pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_GPA_NO_READ_ACCESS:
9913 hv_translate_gva_result_code = 5;
9914pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_GPA_NO_WRITE_ACCESS:
9915 hv_translate_gva_result_code = 6;
9916pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_GPA_ILLEGAL_OVERLAY_ACCESS:
9917 hv_translate_gva_result_code = 7;
9918pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_INTERCEPT: hv_translate_gva_result_code = 8;
9919pub const hv_translate_gva_result_code_HV_TRANSLATE_GVA_GPA_UNACCEPTED:
9920 hv_translate_gva_result_code = 9;
9921pub type hv_translate_gva_result_code = ::std::os::raw::c_uint;
9922#[repr(C)]
9923#[derive(Copy, Clone)]
9924pub union hv_translate_gva_result {
9925 pub as_uint64: __u64,
9926 pub __bindgen_anon_1: hv_translate_gva_result__bindgen_ty_1,
9927}
9928#[repr(C, packed)]
9929#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
9930pub struct hv_translate_gva_result__bindgen_ty_1 {
9931 pub result_code: __u32,
9932 pub _bitfield_align_1: [u8; 0],
9933 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
9934}
9935#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9936const _: () = {
9937 ["Size of hv_translate_gva_result__bindgen_ty_1"]
9938 [::std::mem::size_of::<hv_translate_gva_result__bindgen_ty_1>() - 8usize];
9939 ["Alignment of hv_translate_gva_result__bindgen_ty_1"]
9940 [::std::mem::align_of::<hv_translate_gva_result__bindgen_ty_1>() - 1usize];
9941 ["Offset of field: hv_translate_gva_result__bindgen_ty_1::result_code"]
9942 [::std::mem::offset_of!(hv_translate_gva_result__bindgen_ty_1, result_code) - 0usize];
9943};
9944impl hv_translate_gva_result__bindgen_ty_1 {
9945 #[inline]
9946 pub fn cache_type(&self) -> __u32 {
9947 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
9948 }
9949 #[inline]
9950 pub fn set_cache_type(&mut self, val: __u32) {
9951 unsafe {
9952 let val: u32 = ::std::mem::transmute(val);
9953 self._bitfield_1.set(0usize, 8u8, val as u64)
9954 }
9955 }
9956 #[inline]
9957 pub unsafe fn cache_type_raw(this: *const Self) -> __u32 {
9958 unsafe {
9959 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9960 ::std::ptr::addr_of!((*this)._bitfield_1),
9961 0usize,
9962 8u8,
9963 ) as u32)
9964 }
9965 }
9966 #[inline]
9967 pub unsafe fn set_cache_type_raw(this: *mut Self, val: __u32) {
9968 unsafe {
9969 let val: u32 = ::std::mem::transmute(val);
9970 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9971 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
9972 0usize,
9973 8u8,
9974 val as u64,
9975 )
9976 }
9977 }
9978 #[inline]
9979 pub fn overlay_page(&self) -> __u32 {
9980 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
9981 }
9982 #[inline]
9983 pub fn set_overlay_page(&mut self, val: __u32) {
9984 unsafe {
9985 let val: u32 = ::std::mem::transmute(val);
9986 self._bitfield_1.set(8usize, 1u8, val as u64)
9987 }
9988 }
9989 #[inline]
9990 pub unsafe fn overlay_page_raw(this: *const Self) -> __u32 {
9991 unsafe {
9992 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9993 ::std::ptr::addr_of!((*this)._bitfield_1),
9994 8usize,
9995 1u8,
9996 ) as u32)
9997 }
9998 }
9999 #[inline]
10000 pub unsafe fn set_overlay_page_raw(this: *mut Self, val: __u32) {
10001 unsafe {
10002 let val: u32 = ::std::mem::transmute(val);
10003 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10004 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10005 8usize,
10006 1u8,
10007 val as u64,
10008 )
10009 }
10010 }
10011 #[inline]
10012 pub fn reserved(&self) -> __u32 {
10013 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 23u8) as u32) }
10014 }
10015 #[inline]
10016 pub fn set_reserved(&mut self, val: __u32) {
10017 unsafe {
10018 let val: u32 = ::std::mem::transmute(val);
10019 self._bitfield_1.set(9usize, 23u8, val as u64)
10020 }
10021 }
10022 #[inline]
10023 pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
10024 unsafe {
10025 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10026 ::std::ptr::addr_of!((*this)._bitfield_1),
10027 9usize,
10028 23u8,
10029 ) as u32)
10030 }
10031 }
10032 #[inline]
10033 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
10034 unsafe {
10035 let val: u32 = ::std::mem::transmute(val);
10036 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10037 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10038 9usize,
10039 23u8,
10040 val as u64,
10041 )
10042 }
10043 }
10044 #[inline]
10045 pub fn new_bitfield_1(
10046 cache_type: __u32,
10047 overlay_page: __u32,
10048 reserved: __u32,
10049 ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
10050 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
10051 __bindgen_bitfield_unit.set(0usize, 8u8, {
10052 let cache_type: u32 = unsafe { ::std::mem::transmute(cache_type) };
10053 cache_type as u64
10054 });
10055 __bindgen_bitfield_unit.set(8usize, 1u8, {
10056 let overlay_page: u32 = unsafe { ::std::mem::transmute(overlay_page) };
10057 overlay_page as u64
10058 });
10059 __bindgen_bitfield_unit.set(9usize, 23u8, {
10060 let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
10061 reserved as u64
10062 });
10063 __bindgen_bitfield_unit
10064 }
10065}
10066#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10067const _: () = {
10068 ["Size of hv_translate_gva_result"][::std::mem::size_of::<hv_translate_gva_result>() - 8usize];
10069 ["Alignment of hv_translate_gva_result"]
10070 [::std::mem::align_of::<hv_translate_gva_result>() - 8usize];
10071 ["Offset of field: hv_translate_gva_result::as_uint64"]
10072 [::std::mem::offset_of!(hv_translate_gva_result, as_uint64) - 0usize];
10073};
10074impl Default for hv_translate_gva_result {
10075 fn default() -> Self {
10076 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10077 unsafe {
10078 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10079 s.assume_init()
10080 }
10081 }
10082}
10083#[repr(C, packed)]
10084#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10085pub struct hv_x64_apic_eoi_message {
10086 pub vp_index: __u32,
10087 pub interrupt_vector: __u32,
10088}
10089#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10090const _: () = {
10091 ["Size of hv_x64_apic_eoi_message"][::std::mem::size_of::<hv_x64_apic_eoi_message>() - 8usize];
10092 ["Alignment of hv_x64_apic_eoi_message"]
10093 [::std::mem::align_of::<hv_x64_apic_eoi_message>() - 1usize];
10094 ["Offset of field: hv_x64_apic_eoi_message::vp_index"]
10095 [::std::mem::offset_of!(hv_x64_apic_eoi_message, vp_index) - 0usize];
10096 ["Offset of field: hv_x64_apic_eoi_message::interrupt_vector"]
10097 [::std::mem::offset_of!(hv_x64_apic_eoi_message, interrupt_vector) - 4usize];
10098};
10099#[repr(C, packed)]
10100#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10101pub struct hv_opaque_intercept_message {
10102 pub vp_index: __u32,
10103}
10104#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10105const _: () = {
10106 ["Size of hv_opaque_intercept_message"]
10107 [::std::mem::size_of::<hv_opaque_intercept_message>() - 4usize];
10108 ["Alignment of hv_opaque_intercept_message"]
10109 [::std::mem::align_of::<hv_opaque_intercept_message>() - 1usize];
10110 ["Offset of field: hv_opaque_intercept_message::vp_index"]
10111 [::std::mem::offset_of!(hv_opaque_intercept_message, vp_index) - 0usize];
10112};
10113pub const hv_port_type_HV_PORT_TYPE_MESSAGE: hv_port_type = 1;
10114pub const hv_port_type_HV_PORT_TYPE_EVENT: hv_port_type = 2;
10115pub const hv_port_type_HV_PORT_TYPE_MONITOR: hv_port_type = 3;
10116pub const hv_port_type_HV_PORT_TYPE_DOORBELL: hv_port_type = 4;
10117pub type hv_port_type = ::std::os::raw::c_uint;
10118#[repr(C, packed)]
10119#[derive(Copy, Clone)]
10120pub struct hv_port_info {
10121 pub port_type: __u32,
10122 pub padding: __u32,
10123 pub __bindgen_anon_1: hv_port_info__bindgen_ty_1,
10124}
10125#[repr(C)]
10126#[derive(Copy, Clone)]
10127pub union hv_port_info__bindgen_ty_1 {
10128 pub message_port_info: hv_port_info__bindgen_ty_1__bindgen_ty_1,
10129 pub event_port_info: hv_port_info__bindgen_ty_1__bindgen_ty_2,
10130 pub monitor_port_info: hv_port_info__bindgen_ty_1__bindgen_ty_3,
10131 pub doorbell_port_info: hv_port_info__bindgen_ty_1__bindgen_ty_4,
10132}
10133#[repr(C)]
10134#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10135pub struct hv_port_info__bindgen_ty_1__bindgen_ty_1 {
10136 pub target_sint: __u32,
10137 pub target_vp: __u32,
10138 pub rsvdz: __u64,
10139}
10140#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10141const _: () = {
10142 ["Size of hv_port_info__bindgen_ty_1__bindgen_ty_1"]
10143 [::std::mem::size_of::<hv_port_info__bindgen_ty_1__bindgen_ty_1>() - 16usize];
10144 ["Alignment of hv_port_info__bindgen_ty_1__bindgen_ty_1"]
10145 [::std::mem::align_of::<hv_port_info__bindgen_ty_1__bindgen_ty_1>() - 8usize];
10146 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_1::target_sint"]
10147 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_1, target_sint) - 0usize];
10148 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_1::target_vp"]
10149 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_1, target_vp) - 4usize];
10150 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_1::rsvdz"]
10151 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_1, rsvdz) - 8usize];
10152};
10153#[repr(C)]
10154#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10155pub struct hv_port_info__bindgen_ty_1__bindgen_ty_2 {
10156 pub target_sint: __u32,
10157 pub target_vp: __u32,
10158 pub base_flag_number: __u16,
10159 pub flag_count: __u16,
10160 pub rsvdz: __u32,
10161}
10162#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10163const _: () = {
10164 ["Size of hv_port_info__bindgen_ty_1__bindgen_ty_2"]
10165 [::std::mem::size_of::<hv_port_info__bindgen_ty_1__bindgen_ty_2>() - 16usize];
10166 ["Alignment of hv_port_info__bindgen_ty_1__bindgen_ty_2"]
10167 [::std::mem::align_of::<hv_port_info__bindgen_ty_1__bindgen_ty_2>() - 4usize];
10168 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_2::target_sint"]
10169 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_2, target_sint) - 0usize];
10170 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_2::target_vp"]
10171 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_2, target_vp) - 4usize];
10172 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_2::base_flag_number"][::std::mem::offset_of!(
10173 hv_port_info__bindgen_ty_1__bindgen_ty_2,
10174 base_flag_number
10175 ) - 8usize];
10176 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_2::flag_count"]
10177 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_2, flag_count) - 10usize];
10178 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_2::rsvdz"]
10179 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_2, rsvdz) - 12usize];
10180};
10181#[repr(C)]
10182#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10183pub struct hv_port_info__bindgen_ty_1__bindgen_ty_3 {
10184 pub monitor_address: __u64,
10185 pub rsvdz: __u64,
10186}
10187#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10188const _: () = {
10189 ["Size of hv_port_info__bindgen_ty_1__bindgen_ty_3"]
10190 [::std::mem::size_of::<hv_port_info__bindgen_ty_1__bindgen_ty_3>() - 16usize];
10191 ["Alignment of hv_port_info__bindgen_ty_1__bindgen_ty_3"]
10192 [::std::mem::align_of::<hv_port_info__bindgen_ty_1__bindgen_ty_3>() - 8usize];
10193 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_3::monitor_address"][::std::mem::offset_of!(
10194 hv_port_info__bindgen_ty_1__bindgen_ty_3,
10195 monitor_address
10196 ) - 0usize];
10197 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_3::rsvdz"]
10198 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_3, rsvdz) - 8usize];
10199};
10200#[repr(C)]
10201#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10202pub struct hv_port_info__bindgen_ty_1__bindgen_ty_4 {
10203 pub target_sint: __u32,
10204 pub target_vp: __u32,
10205 pub rsvdz: __u64,
10206}
10207#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10208const _: () = {
10209 ["Size of hv_port_info__bindgen_ty_1__bindgen_ty_4"]
10210 [::std::mem::size_of::<hv_port_info__bindgen_ty_1__bindgen_ty_4>() - 16usize];
10211 ["Alignment of hv_port_info__bindgen_ty_1__bindgen_ty_4"]
10212 [::std::mem::align_of::<hv_port_info__bindgen_ty_1__bindgen_ty_4>() - 8usize];
10213 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_4::target_sint"]
10214 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_4, target_sint) - 0usize];
10215 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_4::target_vp"]
10216 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_4, target_vp) - 4usize];
10217 ["Offset of field: hv_port_info__bindgen_ty_1__bindgen_ty_4::rsvdz"]
10218 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1__bindgen_ty_4, rsvdz) - 8usize];
10219};
10220#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10221const _: () = {
10222 ["Size of hv_port_info__bindgen_ty_1"]
10223 [::std::mem::size_of::<hv_port_info__bindgen_ty_1>() - 16usize];
10224 ["Alignment of hv_port_info__bindgen_ty_1"]
10225 [::std::mem::align_of::<hv_port_info__bindgen_ty_1>() - 8usize];
10226 ["Offset of field: hv_port_info__bindgen_ty_1::message_port_info"]
10227 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1, message_port_info) - 0usize];
10228 ["Offset of field: hv_port_info__bindgen_ty_1::event_port_info"]
10229 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1, event_port_info) - 0usize];
10230 ["Offset of field: hv_port_info__bindgen_ty_1::monitor_port_info"]
10231 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1, monitor_port_info) - 0usize];
10232 ["Offset of field: hv_port_info__bindgen_ty_1::doorbell_port_info"]
10233 [::std::mem::offset_of!(hv_port_info__bindgen_ty_1, doorbell_port_info) - 0usize];
10234};
10235impl Default for hv_port_info__bindgen_ty_1 {
10236 fn default() -> Self {
10237 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10238 unsafe {
10239 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10240 s.assume_init()
10241 }
10242 }
10243}
10244#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10245const _: () = {
10246 ["Size of hv_port_info"][::std::mem::size_of::<hv_port_info>() - 24usize];
10247 ["Alignment of hv_port_info"][::std::mem::align_of::<hv_port_info>() - 1usize];
10248 ["Offset of field: hv_port_info::port_type"]
10249 [::std::mem::offset_of!(hv_port_info, port_type) - 0usize];
10250 ["Offset of field: hv_port_info::padding"]
10251 [::std::mem::offset_of!(hv_port_info, padding) - 4usize];
10252};
10253impl Default for hv_port_info {
10254 fn default() -> Self {
10255 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10256 unsafe {
10257 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10258 s.assume_init()
10259 }
10260 }
10261}
10262#[repr(C)]
10263#[derive(Copy, Clone)]
10264pub union hv_interrupt_control {
10265 pub as_uint64: __u64,
10266 pub __bindgen_anon_1: hv_interrupt_control__bindgen_ty_1,
10267}
10268#[repr(C, packed)]
10269#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10270pub struct hv_interrupt_control__bindgen_ty_1 {
10271 pub interrupt_type: __u32,
10272 pub _bitfield_align_1: [u8; 0],
10273 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
10274}
10275#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10276const _: () = {
10277 ["Size of hv_interrupt_control__bindgen_ty_1"]
10278 [::std::mem::size_of::<hv_interrupt_control__bindgen_ty_1>() - 8usize];
10279 ["Alignment of hv_interrupt_control__bindgen_ty_1"]
10280 [::std::mem::align_of::<hv_interrupt_control__bindgen_ty_1>() - 1usize];
10281 ["Offset of field: hv_interrupt_control__bindgen_ty_1::interrupt_type"]
10282 [::std::mem::offset_of!(hv_interrupt_control__bindgen_ty_1, interrupt_type) - 0usize];
10283};
10284impl hv_interrupt_control__bindgen_ty_1 {
10285 #[inline]
10286 pub fn level_triggered(&self) -> __u32 {
10287 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
10288 }
10289 #[inline]
10290 pub fn set_level_triggered(&mut self, val: __u32) {
10291 unsafe {
10292 let val: u32 = ::std::mem::transmute(val);
10293 self._bitfield_1.set(0usize, 1u8, val as u64)
10294 }
10295 }
10296 #[inline]
10297 pub unsafe fn level_triggered_raw(this: *const Self) -> __u32 {
10298 unsafe {
10299 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10300 ::std::ptr::addr_of!((*this)._bitfield_1),
10301 0usize,
10302 1u8,
10303 ) as u32)
10304 }
10305 }
10306 #[inline]
10307 pub unsafe fn set_level_triggered_raw(this: *mut Self, val: __u32) {
10308 unsafe {
10309 let val: u32 = ::std::mem::transmute(val);
10310 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10311 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10312 0usize,
10313 1u8,
10314 val as u64,
10315 )
10316 }
10317 }
10318 #[inline]
10319 pub fn logical_dest_mode(&self) -> __u32 {
10320 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
10321 }
10322 #[inline]
10323 pub fn set_logical_dest_mode(&mut self, val: __u32) {
10324 unsafe {
10325 let val: u32 = ::std::mem::transmute(val);
10326 self._bitfield_1.set(1usize, 1u8, val as u64)
10327 }
10328 }
10329 #[inline]
10330 pub unsafe fn logical_dest_mode_raw(this: *const Self) -> __u32 {
10331 unsafe {
10332 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10333 ::std::ptr::addr_of!((*this)._bitfield_1),
10334 1usize,
10335 1u8,
10336 ) as u32)
10337 }
10338 }
10339 #[inline]
10340 pub unsafe fn set_logical_dest_mode_raw(this: *mut Self, val: __u32) {
10341 unsafe {
10342 let val: u32 = ::std::mem::transmute(val);
10343 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10344 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10345 1usize,
10346 1u8,
10347 val as u64,
10348 )
10349 }
10350 }
10351 #[inline]
10352 pub fn asserted(&self) -> __u32 {
10353 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
10354 }
10355 #[inline]
10356 pub fn set_asserted(&mut self, val: __u32) {
10357 unsafe {
10358 let val: u32 = ::std::mem::transmute(val);
10359 self._bitfield_1.set(2usize, 1u8, val as u64)
10360 }
10361 }
10362 #[inline]
10363 pub unsafe fn asserted_raw(this: *const Self) -> __u32 {
10364 unsafe {
10365 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10366 ::std::ptr::addr_of!((*this)._bitfield_1),
10367 2usize,
10368 1u8,
10369 ) as u32)
10370 }
10371 }
10372 #[inline]
10373 pub unsafe fn set_asserted_raw(this: *mut Self, val: __u32) {
10374 unsafe {
10375 let val: u32 = ::std::mem::transmute(val);
10376 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10377 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10378 2usize,
10379 1u8,
10380 val as u64,
10381 )
10382 }
10383 }
10384 #[inline]
10385 pub fn rsvd(&self) -> __u32 {
10386 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) }
10387 }
10388 #[inline]
10389 pub fn set_rsvd(&mut self, val: __u32) {
10390 unsafe {
10391 let val: u32 = ::std::mem::transmute(val);
10392 self._bitfield_1.set(3usize, 29u8, val as u64)
10393 }
10394 }
10395 #[inline]
10396 pub unsafe fn rsvd_raw(this: *const Self) -> __u32 {
10397 unsafe {
10398 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10399 ::std::ptr::addr_of!((*this)._bitfield_1),
10400 3usize,
10401 29u8,
10402 ) as u32)
10403 }
10404 }
10405 #[inline]
10406 pub unsafe fn set_rsvd_raw(this: *mut Self, val: __u32) {
10407 unsafe {
10408 let val: u32 = ::std::mem::transmute(val);
10409 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10410 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10411 3usize,
10412 29u8,
10413 val as u64,
10414 )
10415 }
10416 }
10417 #[inline]
10418 pub fn new_bitfield_1(
10419 level_triggered: __u32,
10420 logical_dest_mode: __u32,
10421 asserted: __u32,
10422 rsvd: __u32,
10423 ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
10424 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
10425 __bindgen_bitfield_unit.set(0usize, 1u8, {
10426 let level_triggered: u32 = unsafe { ::std::mem::transmute(level_triggered) };
10427 level_triggered as u64
10428 });
10429 __bindgen_bitfield_unit.set(1usize, 1u8, {
10430 let logical_dest_mode: u32 = unsafe { ::std::mem::transmute(logical_dest_mode) };
10431 logical_dest_mode as u64
10432 });
10433 __bindgen_bitfield_unit.set(2usize, 1u8, {
10434 let asserted: u32 = unsafe { ::std::mem::transmute(asserted) };
10435 asserted as u64
10436 });
10437 __bindgen_bitfield_unit.set(3usize, 29u8, {
10438 let rsvd: u32 = unsafe { ::std::mem::transmute(rsvd) };
10439 rsvd as u64
10440 });
10441 __bindgen_bitfield_unit
10442 }
10443}
10444#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10445const _: () = {
10446 ["Size of hv_interrupt_control"][::std::mem::size_of::<hv_interrupt_control>() - 8usize];
10447 ["Alignment of hv_interrupt_control"][::std::mem::align_of::<hv_interrupt_control>() - 8usize];
10448 ["Offset of field: hv_interrupt_control::as_uint64"]
10449 [::std::mem::offset_of!(hv_interrupt_control, as_uint64) - 0usize];
10450};
10451impl Default for hv_interrupt_control {
10452 fn default() -> Self {
10453 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10454 unsafe {
10455 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10456 s.assume_init()
10457 }
10458 }
10459}
10460#[repr(C, packed)]
10461#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10462pub struct hv_stimer_state {
10463 pub flags: hv_stimer_state__bindgen_ty_1,
10464 pub resvd: __u32,
10465 pub config: __u64,
10466 pub count: __u64,
10467 pub adjustment: __u64,
10468 pub undelivered_exp_time: __u64,
10469}
10470#[repr(C, packed)]
10471#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10472pub struct hv_stimer_state__bindgen_ty_1 {
10473 pub _bitfield_align_1: [u8; 0],
10474 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
10475}
10476#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10477const _: () = {
10478 ["Size of hv_stimer_state__bindgen_ty_1"]
10479 [::std::mem::size_of::<hv_stimer_state__bindgen_ty_1>() - 4usize];
10480 ["Alignment of hv_stimer_state__bindgen_ty_1"]
10481 [::std::mem::align_of::<hv_stimer_state__bindgen_ty_1>() - 1usize];
10482};
10483impl hv_stimer_state__bindgen_ty_1 {
10484 #[inline]
10485 pub fn undelivered_msg_pending(&self) -> __u32 {
10486 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
10487 }
10488 #[inline]
10489 pub fn set_undelivered_msg_pending(&mut self, val: __u32) {
10490 unsafe {
10491 let val: u32 = ::std::mem::transmute(val);
10492 self._bitfield_1.set(0usize, 1u8, val as u64)
10493 }
10494 }
10495 #[inline]
10496 pub unsafe fn undelivered_msg_pending_raw(this: *const Self) -> __u32 {
10497 unsafe {
10498 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10499 ::std::ptr::addr_of!((*this)._bitfield_1),
10500 0usize,
10501 1u8,
10502 ) as u32)
10503 }
10504 }
10505 #[inline]
10506 pub unsafe fn set_undelivered_msg_pending_raw(this: *mut Self, val: __u32) {
10507 unsafe {
10508 let val: u32 = ::std::mem::transmute(val);
10509 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10510 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10511 0usize,
10512 1u8,
10513 val as u64,
10514 )
10515 }
10516 }
10517 #[inline]
10518 pub fn reserved(&self) -> __u32 {
10519 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) }
10520 }
10521 #[inline]
10522 pub fn set_reserved(&mut self, val: __u32) {
10523 unsafe {
10524 let val: u32 = ::std::mem::transmute(val);
10525 self._bitfield_1.set(1usize, 31u8, val as u64)
10526 }
10527 }
10528 #[inline]
10529 pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
10530 unsafe {
10531 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10532 ::std::ptr::addr_of!((*this)._bitfield_1),
10533 1usize,
10534 31u8,
10535 ) as u32)
10536 }
10537 }
10538 #[inline]
10539 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
10540 unsafe {
10541 let val: u32 = ::std::mem::transmute(val);
10542 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10543 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10544 1usize,
10545 31u8,
10546 val as u64,
10547 )
10548 }
10549 }
10550 #[inline]
10551 pub fn new_bitfield_1(
10552 undelivered_msg_pending: __u32,
10553 reserved: __u32,
10554 ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
10555 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
10556 __bindgen_bitfield_unit.set(0usize, 1u8, {
10557 let undelivered_msg_pending: u32 =
10558 unsafe { ::std::mem::transmute(undelivered_msg_pending) };
10559 undelivered_msg_pending as u64
10560 });
10561 __bindgen_bitfield_unit.set(1usize, 31u8, {
10562 let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
10563 reserved as u64
10564 });
10565 __bindgen_bitfield_unit
10566 }
10567}
10568#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10569const _: () = {
10570 ["Size of hv_stimer_state"][::std::mem::size_of::<hv_stimer_state>() - 40usize];
10571 ["Alignment of hv_stimer_state"][::std::mem::align_of::<hv_stimer_state>() - 1usize];
10572 ["Offset of field: hv_stimer_state::flags"]
10573 [::std::mem::offset_of!(hv_stimer_state, flags) - 0usize];
10574 ["Offset of field: hv_stimer_state::resvd"]
10575 [::std::mem::offset_of!(hv_stimer_state, resvd) - 4usize];
10576 ["Offset of field: hv_stimer_state::config"]
10577 [::std::mem::offset_of!(hv_stimer_state, config) - 8usize];
10578 ["Offset of field: hv_stimer_state::count"]
10579 [::std::mem::offset_of!(hv_stimer_state, count) - 16usize];
10580 ["Offset of field: hv_stimer_state::adjustment"]
10581 [::std::mem::offset_of!(hv_stimer_state, adjustment) - 24usize];
10582 ["Offset of field: hv_stimer_state::undelivered_exp_time"]
10583 [::std::mem::offset_of!(hv_stimer_state, undelivered_exp_time) - 32usize];
10584};
10585#[repr(C, packed)]
10586#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10587pub struct hv_synthetic_timers_state {
10588 pub timers: [hv_stimer_state; 4usize],
10589 pub reserved: [__u64; 5usize],
10590}
10591#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10592const _: () = {
10593 ["Size of hv_synthetic_timers_state"]
10594 [::std::mem::size_of::<hv_synthetic_timers_state>() - 200usize];
10595 ["Alignment of hv_synthetic_timers_state"]
10596 [::std::mem::align_of::<hv_synthetic_timers_state>() - 1usize];
10597 ["Offset of field: hv_synthetic_timers_state::timers"]
10598 [::std::mem::offset_of!(hv_synthetic_timers_state, timers) - 0usize];
10599 ["Offset of field: hv_synthetic_timers_state::reserved"]
10600 [::std::mem::offset_of!(hv_synthetic_timers_state, reserved) - 160usize];
10601};
10602#[repr(C, packed)]
10603#[derive(Copy, Clone)]
10604pub union hv_arm64_vp_execution_state {
10605 pub as_uint16: __u16,
10606 pub __bindgen_anon_1: hv_arm64_vp_execution_state__bindgen_ty_1,
10607}
10608#[repr(C, packed)]
10609#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10610pub struct hv_arm64_vp_execution_state__bindgen_ty_1 {
10611 pub _bitfield_align_1: [u8; 0],
10612 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
10613}
10614#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10615const _: () = {
10616 ["Size of hv_arm64_vp_execution_state__bindgen_ty_1"]
10617 [::std::mem::size_of::<hv_arm64_vp_execution_state__bindgen_ty_1>() - 2usize];
10618 ["Alignment of hv_arm64_vp_execution_state__bindgen_ty_1"]
10619 [::std::mem::align_of::<hv_arm64_vp_execution_state__bindgen_ty_1>() - 1usize];
10620};
10621impl hv_arm64_vp_execution_state__bindgen_ty_1 {
10622 #[inline]
10623 pub fn cpl(&self) -> __u16 {
10624 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u16) }
10625 }
10626 #[inline]
10627 pub fn set_cpl(&mut self, val: __u16) {
10628 unsafe {
10629 let val: u16 = ::std::mem::transmute(val);
10630 self._bitfield_1.set(0usize, 2u8, val as u64)
10631 }
10632 }
10633 #[inline]
10634 pub unsafe fn cpl_raw(this: *const Self) -> __u16 {
10635 unsafe {
10636 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10637 ::std::ptr::addr_of!((*this)._bitfield_1),
10638 0usize,
10639 2u8,
10640 ) as u16)
10641 }
10642 }
10643 #[inline]
10644 pub unsafe fn set_cpl_raw(this: *mut Self, val: __u16) {
10645 unsafe {
10646 let val: u16 = ::std::mem::transmute(val);
10647 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10648 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10649 0usize,
10650 2u8,
10651 val as u64,
10652 )
10653 }
10654 }
10655 #[inline]
10656 pub fn debug_active(&self) -> __u16 {
10657 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
10658 }
10659 #[inline]
10660 pub fn set_debug_active(&mut self, val: __u16) {
10661 unsafe {
10662 let val: u16 = ::std::mem::transmute(val);
10663 self._bitfield_1.set(2usize, 1u8, val as u64)
10664 }
10665 }
10666 #[inline]
10667 pub unsafe fn debug_active_raw(this: *const Self) -> __u16 {
10668 unsafe {
10669 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10670 ::std::ptr::addr_of!((*this)._bitfield_1),
10671 2usize,
10672 1u8,
10673 ) as u16)
10674 }
10675 }
10676 #[inline]
10677 pub unsafe fn set_debug_active_raw(this: *mut Self, val: __u16) {
10678 unsafe {
10679 let val: u16 = ::std::mem::transmute(val);
10680 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10681 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10682 2usize,
10683 1u8,
10684 val as u64,
10685 )
10686 }
10687 }
10688 #[inline]
10689 pub fn interruption_pending(&self) -> __u16 {
10690 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) }
10691 }
10692 #[inline]
10693 pub fn set_interruption_pending(&mut self, val: __u16) {
10694 unsafe {
10695 let val: u16 = ::std::mem::transmute(val);
10696 self._bitfield_1.set(3usize, 1u8, val as u64)
10697 }
10698 }
10699 #[inline]
10700 pub unsafe fn interruption_pending_raw(this: *const Self) -> __u16 {
10701 unsafe {
10702 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10703 ::std::ptr::addr_of!((*this)._bitfield_1),
10704 3usize,
10705 1u8,
10706 ) as u16)
10707 }
10708 }
10709 #[inline]
10710 pub unsafe fn set_interruption_pending_raw(this: *mut Self, val: __u16) {
10711 unsafe {
10712 let val: u16 = ::std::mem::transmute(val);
10713 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10714 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10715 3usize,
10716 1u8,
10717 val as u64,
10718 )
10719 }
10720 }
10721 #[inline]
10722 pub fn vtl(&self) -> __u16 {
10723 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) }
10724 }
10725 #[inline]
10726 pub fn set_vtl(&mut self, val: __u16) {
10727 unsafe {
10728 let val: u16 = ::std::mem::transmute(val);
10729 self._bitfield_1.set(4usize, 4u8, val as u64)
10730 }
10731 }
10732 #[inline]
10733 pub unsafe fn vtl_raw(this: *const Self) -> __u16 {
10734 unsafe {
10735 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10736 ::std::ptr::addr_of!((*this)._bitfield_1),
10737 4usize,
10738 4u8,
10739 ) as u16)
10740 }
10741 }
10742 #[inline]
10743 pub unsafe fn set_vtl_raw(this: *mut Self, val: __u16) {
10744 unsafe {
10745 let val: u16 = ::std::mem::transmute(val);
10746 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10747 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10748 4usize,
10749 4u8,
10750 val as u64,
10751 )
10752 }
10753 }
10754 #[inline]
10755 pub fn virtualization_fault_active(&self) -> __u16 {
10756 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) }
10757 }
10758 #[inline]
10759 pub fn set_virtualization_fault_active(&mut self, val: __u16) {
10760 unsafe {
10761 let val: u16 = ::std::mem::transmute(val);
10762 self._bitfield_1.set(8usize, 1u8, val as u64)
10763 }
10764 }
10765 #[inline]
10766 pub unsafe fn virtualization_fault_active_raw(this: *const Self) -> __u16 {
10767 unsafe {
10768 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10769 ::std::ptr::addr_of!((*this)._bitfield_1),
10770 8usize,
10771 1u8,
10772 ) as u16)
10773 }
10774 }
10775 #[inline]
10776 pub unsafe fn set_virtualization_fault_active_raw(this: *mut Self, val: __u16) {
10777 unsafe {
10778 let val: u16 = ::std::mem::transmute(val);
10779 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10780 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10781 8usize,
10782 1u8,
10783 val as u64,
10784 )
10785 }
10786 }
10787 #[inline]
10788 pub fn reserved(&self) -> __u16 {
10789 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 7u8) as u16) }
10790 }
10791 #[inline]
10792 pub fn set_reserved(&mut self, val: __u16) {
10793 unsafe {
10794 let val: u16 = ::std::mem::transmute(val);
10795 self._bitfield_1.set(9usize, 7u8, val as u64)
10796 }
10797 }
10798 #[inline]
10799 pub unsafe fn reserved_raw(this: *const Self) -> __u16 {
10800 unsafe {
10801 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10802 ::std::ptr::addr_of!((*this)._bitfield_1),
10803 9usize,
10804 7u8,
10805 ) as u16)
10806 }
10807 }
10808 #[inline]
10809 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) {
10810 unsafe {
10811 let val: u16 = ::std::mem::transmute(val);
10812 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10813 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10814 9usize,
10815 7u8,
10816 val as u64,
10817 )
10818 }
10819 }
10820 #[inline]
10821 pub fn new_bitfield_1(
10822 cpl: __u16,
10823 debug_active: __u16,
10824 interruption_pending: __u16,
10825 vtl: __u16,
10826 virtualization_fault_active: __u16,
10827 reserved: __u16,
10828 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
10829 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
10830 __bindgen_bitfield_unit.set(0usize, 2u8, {
10831 let cpl: u16 = unsafe { ::std::mem::transmute(cpl) };
10832 cpl as u64
10833 });
10834 __bindgen_bitfield_unit.set(2usize, 1u8, {
10835 let debug_active: u16 = unsafe { ::std::mem::transmute(debug_active) };
10836 debug_active as u64
10837 });
10838 __bindgen_bitfield_unit.set(3usize, 1u8, {
10839 let interruption_pending: u16 = unsafe { ::std::mem::transmute(interruption_pending) };
10840 interruption_pending as u64
10841 });
10842 __bindgen_bitfield_unit.set(4usize, 4u8, {
10843 let vtl: u16 = unsafe { ::std::mem::transmute(vtl) };
10844 vtl as u64
10845 });
10846 __bindgen_bitfield_unit.set(8usize, 1u8, {
10847 let virtualization_fault_active: u16 =
10848 unsafe { ::std::mem::transmute(virtualization_fault_active) };
10849 virtualization_fault_active as u64
10850 });
10851 __bindgen_bitfield_unit.set(9usize, 7u8, {
10852 let reserved: u16 = unsafe { ::std::mem::transmute(reserved) };
10853 reserved as u64
10854 });
10855 __bindgen_bitfield_unit
10856 }
10857}
10858#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10859const _: () = {
10860 ["Size of hv_arm64_vp_execution_state"]
10861 [::std::mem::size_of::<hv_arm64_vp_execution_state>() - 2usize];
10862 ["Alignment of hv_arm64_vp_execution_state"]
10863 [::std::mem::align_of::<hv_arm64_vp_execution_state>() - 1usize];
10864 ["Offset of field: hv_arm64_vp_execution_state::as_uint16"]
10865 [::std::mem::offset_of!(hv_arm64_vp_execution_state, as_uint16) - 0usize];
10866};
10867impl Default for hv_arm64_vp_execution_state {
10868 fn default() -> Self {
10869 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10870 unsafe {
10871 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10872 s.assume_init()
10873 }
10874 }
10875}
10876#[repr(C, packed)]
10877#[derive(Copy, Clone)]
10878pub struct hv_arm64_intercept_message_header {
10879 pub vp_index: __u32,
10880 pub instruction_length: __u8,
10881 pub intercept_access_type: __u8,
10882 pub execution_state: hv_arm64_vp_execution_state,
10883 pub pc: __u64,
10884 pub cpsr: __u64,
10885}
10886#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10887const _: () = {
10888 ["Size of hv_arm64_intercept_message_header"]
10889 [::std::mem::size_of::<hv_arm64_intercept_message_header>() - 24usize];
10890 ["Alignment of hv_arm64_intercept_message_header"]
10891 [::std::mem::align_of::<hv_arm64_intercept_message_header>() - 1usize];
10892 ["Offset of field: hv_arm64_intercept_message_header::vp_index"]
10893 [::std::mem::offset_of!(hv_arm64_intercept_message_header, vp_index) - 0usize];
10894 ["Offset of field: hv_arm64_intercept_message_header::instruction_length"]
10895 [::std::mem::offset_of!(hv_arm64_intercept_message_header, instruction_length) - 4usize];
10896 ["Offset of field: hv_arm64_intercept_message_header::intercept_access_type"]
10897 [::std::mem::offset_of!(hv_arm64_intercept_message_header, intercept_access_type) - 5usize];
10898 ["Offset of field: hv_arm64_intercept_message_header::execution_state"]
10899 [::std::mem::offset_of!(hv_arm64_intercept_message_header, execution_state) - 6usize];
10900 ["Offset of field: hv_arm64_intercept_message_header::pc"]
10901 [::std::mem::offset_of!(hv_arm64_intercept_message_header, pc) - 8usize];
10902 ["Offset of field: hv_arm64_intercept_message_header::cpsr"]
10903 [::std::mem::offset_of!(hv_arm64_intercept_message_header, cpsr) - 16usize];
10904};
10905impl Default for hv_arm64_intercept_message_header {
10906 fn default() -> Self {
10907 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10908 unsafe {
10909 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10910 s.assume_init()
10911 }
10912 }
10913}
10914#[repr(C, packed)]
10915#[derive(Copy, Clone)]
10916pub union hv_arm64_register_access_info {
10917 pub source_value: hv_register_value,
10918 pub destination_register: __u32,
10919}
10920#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10921const _: () = {
10922 ["Size of hv_arm64_register_access_info"]
10923 [::std::mem::size_of::<hv_arm64_register_access_info>() - 16usize];
10924 ["Alignment of hv_arm64_register_access_info"]
10925 [::std::mem::align_of::<hv_arm64_register_access_info>() - 1usize];
10926 ["Offset of field: hv_arm64_register_access_info::source_value"]
10927 [::std::mem::offset_of!(hv_arm64_register_access_info, source_value) - 0usize];
10928 ["Offset of field: hv_arm64_register_access_info::destination_register"]
10929 [::std::mem::offset_of!(hv_arm64_register_access_info, destination_register) - 0usize];
10930};
10931impl Default for hv_arm64_register_access_info {
10932 fn default() -> Self {
10933 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10934 unsafe {
10935 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10936 s.assume_init()
10937 }
10938 }
10939}
10940#[repr(C, packed)]
10941#[derive(Copy, Clone)]
10942pub struct hv_arm64_register_intercept_message {
10943 pub Header: hv_arm64_intercept_message_header,
10944 pub __bindgen_anon_1: hv_arm64_register_intercept_message__bindgen_ty_1,
10945 pub reserved8: __u8,
10946 pub reserved16: __u16,
10947 pub register_name: __u32,
10948 pub access_info: hv_arm64_register_access_info,
10949}
10950#[repr(C, packed)]
10951#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
10952pub struct hv_arm64_register_intercept_message__bindgen_ty_1 {
10953 pub _bitfield_align_1: [u8; 0],
10954 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
10955}
10956#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10957const _: () = {
10958 ["Size of hv_arm64_register_intercept_message__bindgen_ty_1"]
10959 [::std::mem::size_of::<hv_arm64_register_intercept_message__bindgen_ty_1>() - 1usize];
10960 ["Alignment of hv_arm64_register_intercept_message__bindgen_ty_1"]
10961 [::std::mem::align_of::<hv_arm64_register_intercept_message__bindgen_ty_1>() - 1usize];
10962};
10963impl hv_arm64_register_intercept_message__bindgen_ty_1 {
10964 #[inline]
10965 pub fn is_memory_op(&self) -> __u8 {
10966 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
10967 }
10968 #[inline]
10969 pub fn set_is_memory_op(&mut self, val: __u8) {
10970 unsafe {
10971 let val: u8 = ::std::mem::transmute(val);
10972 self._bitfield_1.set(0usize, 1u8, val as u64)
10973 }
10974 }
10975 #[inline]
10976 pub unsafe fn is_memory_op_raw(this: *const Self) -> __u8 {
10977 unsafe {
10978 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
10979 ::std::ptr::addr_of!((*this)._bitfield_1),
10980 0usize,
10981 1u8,
10982 ) as u8)
10983 }
10984 }
10985 #[inline]
10986 pub unsafe fn set_is_memory_op_raw(this: *mut Self, val: __u8) {
10987 unsafe {
10988 let val: u8 = ::std::mem::transmute(val);
10989 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
10990 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
10991 0usize,
10992 1u8,
10993 val as u64,
10994 )
10995 }
10996 }
10997 #[inline]
10998 pub fn reserved(&self) -> __u8 {
10999 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) }
11000 }
11001 #[inline]
11002 pub fn set_reserved(&mut self, val: __u8) {
11003 unsafe {
11004 let val: u8 = ::std::mem::transmute(val);
11005 self._bitfield_1.set(1usize, 7u8, val as u64)
11006 }
11007 }
11008 #[inline]
11009 pub unsafe fn reserved_raw(this: *const Self) -> __u8 {
11010 unsafe {
11011 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
11012 ::std::ptr::addr_of!((*this)._bitfield_1),
11013 1usize,
11014 7u8,
11015 ) as u8)
11016 }
11017 }
11018 #[inline]
11019 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u8) {
11020 unsafe {
11021 let val: u8 = ::std::mem::transmute(val);
11022 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
11023 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11024 1usize,
11025 7u8,
11026 val as u64,
11027 )
11028 }
11029 }
11030 #[inline]
11031 pub fn new_bitfield_1(
11032 is_memory_op: __u8,
11033 reserved: __u8,
11034 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
11035 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
11036 __bindgen_bitfield_unit.set(0usize, 1u8, {
11037 let is_memory_op: u8 = unsafe { ::std::mem::transmute(is_memory_op) };
11038 is_memory_op as u64
11039 });
11040 __bindgen_bitfield_unit.set(1usize, 7u8, {
11041 let reserved: u8 = unsafe { ::std::mem::transmute(reserved) };
11042 reserved as u64
11043 });
11044 __bindgen_bitfield_unit
11045 }
11046}
11047#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11048const _: () = {
11049 ["Size of hv_arm64_register_intercept_message"]
11050 [::std::mem::size_of::<hv_arm64_register_intercept_message>() - 48usize];
11051 ["Alignment of hv_arm64_register_intercept_message"]
11052 [::std::mem::align_of::<hv_arm64_register_intercept_message>() - 1usize];
11053 ["Offset of field: hv_arm64_register_intercept_message::Header"]
11054 [::std::mem::offset_of!(hv_arm64_register_intercept_message, Header) - 0usize];
11055 ["Offset of field: hv_arm64_register_intercept_message::reserved8"]
11056 [::std::mem::offset_of!(hv_arm64_register_intercept_message, reserved8) - 25usize];
11057 ["Offset of field: hv_arm64_register_intercept_message::reserved16"]
11058 [::std::mem::offset_of!(hv_arm64_register_intercept_message, reserved16) - 26usize];
11059 ["Offset of field: hv_arm64_register_intercept_message::register_name"]
11060 [::std::mem::offset_of!(hv_arm64_register_intercept_message, register_name) - 28usize];
11061 ["Offset of field: hv_arm64_register_intercept_message::access_info"]
11062 [::std::mem::offset_of!(hv_arm64_register_intercept_message, access_info) - 32usize];
11063};
11064impl Default for hv_arm64_register_intercept_message {
11065 fn default() -> Self {
11066 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11067 unsafe {
11068 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11069 s.assume_init()
11070 }
11071 }
11072}
11073#[repr(C, packed)]
11074#[derive(Copy, Clone)]
11075pub union hv_arm64_memory_access_info {
11076 pub as_uint8: __u8,
11077 pub __bindgen_anon_1: hv_arm64_memory_access_info__bindgen_ty_1,
11078}
11079#[repr(C, packed)]
11080#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
11081pub struct hv_arm64_memory_access_info__bindgen_ty_1 {
11082 pub _bitfield_align_1: [u8; 0],
11083 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
11084}
11085#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11086const _: () = {
11087 ["Size of hv_arm64_memory_access_info__bindgen_ty_1"]
11088 [::std::mem::size_of::<hv_arm64_memory_access_info__bindgen_ty_1>() - 1usize];
11089 ["Alignment of hv_arm64_memory_access_info__bindgen_ty_1"]
11090 [::std::mem::align_of::<hv_arm64_memory_access_info__bindgen_ty_1>() - 1usize];
11091};
11092impl hv_arm64_memory_access_info__bindgen_ty_1 {
11093 #[inline]
11094 pub fn gva_valid(&self) -> __u8 {
11095 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
11096 }
11097 #[inline]
11098 pub fn set_gva_valid(&mut self, val: __u8) {
11099 unsafe {
11100 let val: u8 = ::std::mem::transmute(val);
11101 self._bitfield_1.set(0usize, 1u8, val as u64)
11102 }
11103 }
11104 #[inline]
11105 pub unsafe fn gva_valid_raw(this: *const Self) -> __u8 {
11106 unsafe {
11107 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
11108 ::std::ptr::addr_of!((*this)._bitfield_1),
11109 0usize,
11110 1u8,
11111 ) as u8)
11112 }
11113 }
11114 #[inline]
11115 pub unsafe fn set_gva_valid_raw(this: *mut Self, val: __u8) {
11116 unsafe {
11117 let val: u8 = ::std::mem::transmute(val);
11118 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
11119 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11120 0usize,
11121 1u8,
11122 val as u64,
11123 )
11124 }
11125 }
11126 #[inline]
11127 pub fn gva_gpa_valid(&self) -> __u8 {
11128 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
11129 }
11130 #[inline]
11131 pub fn set_gva_gpa_valid(&mut self, val: __u8) {
11132 unsafe {
11133 let val: u8 = ::std::mem::transmute(val);
11134 self._bitfield_1.set(1usize, 1u8, val as u64)
11135 }
11136 }
11137 #[inline]
11138 pub unsafe fn gva_gpa_valid_raw(this: *const Self) -> __u8 {
11139 unsafe {
11140 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
11141 ::std::ptr::addr_of!((*this)._bitfield_1),
11142 1usize,
11143 1u8,
11144 ) as u8)
11145 }
11146 }
11147 #[inline]
11148 pub unsafe fn set_gva_gpa_valid_raw(this: *mut Self, val: __u8) {
11149 unsafe {
11150 let val: u8 = ::std::mem::transmute(val);
11151 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
11152 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11153 1usize,
11154 1u8,
11155 val as u64,
11156 )
11157 }
11158 }
11159 #[inline]
11160 pub fn hypercall_output_pending(&self) -> __u8 {
11161 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) }
11162 }
11163 #[inline]
11164 pub fn set_hypercall_output_pending(&mut self, val: __u8) {
11165 unsafe {
11166 let val: u8 = ::std::mem::transmute(val);
11167 self._bitfield_1.set(2usize, 1u8, val as u64)
11168 }
11169 }
11170 #[inline]
11171 pub unsafe fn hypercall_output_pending_raw(this: *const Self) -> __u8 {
11172 unsafe {
11173 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
11174 ::std::ptr::addr_of!((*this)._bitfield_1),
11175 2usize,
11176 1u8,
11177 ) as u8)
11178 }
11179 }
11180 #[inline]
11181 pub unsafe fn set_hypercall_output_pending_raw(this: *mut Self, val: __u8) {
11182 unsafe {
11183 let val: u8 = ::std::mem::transmute(val);
11184 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
11185 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11186 2usize,
11187 1u8,
11188 val as u64,
11189 )
11190 }
11191 }
11192 #[inline]
11193 pub fn reserved(&self) -> __u8 {
11194 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 5u8) as u8) }
11195 }
11196 #[inline]
11197 pub fn set_reserved(&mut self, val: __u8) {
11198 unsafe {
11199 let val: u8 = ::std::mem::transmute(val);
11200 self._bitfield_1.set(3usize, 5u8, val as u64)
11201 }
11202 }
11203 #[inline]
11204 pub unsafe fn reserved_raw(this: *const Self) -> __u8 {
11205 unsafe {
11206 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
11207 ::std::ptr::addr_of!((*this)._bitfield_1),
11208 3usize,
11209 5u8,
11210 ) as u8)
11211 }
11212 }
11213 #[inline]
11214 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u8) {
11215 unsafe {
11216 let val: u8 = ::std::mem::transmute(val);
11217 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
11218 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11219 3usize,
11220 5u8,
11221 val as u64,
11222 )
11223 }
11224 }
11225 #[inline]
11226 pub fn new_bitfield_1(
11227 gva_valid: __u8,
11228 gva_gpa_valid: __u8,
11229 hypercall_output_pending: __u8,
11230 reserved: __u8,
11231 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
11232 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
11233 __bindgen_bitfield_unit.set(0usize, 1u8, {
11234 let gva_valid: u8 = unsafe { ::std::mem::transmute(gva_valid) };
11235 gva_valid as u64
11236 });
11237 __bindgen_bitfield_unit.set(1usize, 1u8, {
11238 let gva_gpa_valid: u8 = unsafe { ::std::mem::transmute(gva_gpa_valid) };
11239 gva_gpa_valid as u64
11240 });
11241 __bindgen_bitfield_unit.set(2usize, 1u8, {
11242 let hypercall_output_pending: u8 =
11243 unsafe { ::std::mem::transmute(hypercall_output_pending) };
11244 hypercall_output_pending as u64
11245 });
11246 __bindgen_bitfield_unit.set(3usize, 5u8, {
11247 let reserved: u8 = unsafe { ::std::mem::transmute(reserved) };
11248 reserved as u64
11249 });
11250 __bindgen_bitfield_unit
11251 }
11252}
11253#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11254const _: () = {
11255 ["Size of hv_arm64_memory_access_info"]
11256 [::std::mem::size_of::<hv_arm64_memory_access_info>() - 1usize];
11257 ["Alignment of hv_arm64_memory_access_info"]
11258 [::std::mem::align_of::<hv_arm64_memory_access_info>() - 1usize];
11259 ["Offset of field: hv_arm64_memory_access_info::as_uint8"]
11260 [::std::mem::offset_of!(hv_arm64_memory_access_info, as_uint8) - 0usize];
11261};
11262impl Default for hv_arm64_memory_access_info {
11263 fn default() -> Self {
11264 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11265 unsafe {
11266 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11267 s.assume_init()
11268 }
11269 }
11270}
11271#[repr(C, packed)]
11272#[derive(Copy, Clone)]
11273pub struct hv_arm64_memory_intercept_message {
11274 pub header: hv_arm64_intercept_message_header,
11275 pub cache_type: __u32,
11276 pub instruction_byte_count: __u8,
11277 pub memory_access_info: hv_arm64_memory_access_info,
11278 pub reserved1: __u16,
11279 pub instruction_bytes: [__u8; 4usize],
11280 pub reserved2: __u32,
11281 pub guest_virtual_address: __u64,
11282 pub guest_physical_address: __u64,
11283 pub syndrome: __u64,
11284}
11285#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11286const _: () = {
11287 ["Size of hv_arm64_memory_intercept_message"]
11288 [::std::mem::size_of::<hv_arm64_memory_intercept_message>() - 64usize];
11289 ["Alignment of hv_arm64_memory_intercept_message"]
11290 [::std::mem::align_of::<hv_arm64_memory_intercept_message>() - 1usize];
11291 ["Offset of field: hv_arm64_memory_intercept_message::header"]
11292 [::std::mem::offset_of!(hv_arm64_memory_intercept_message, header) - 0usize];
11293 ["Offset of field: hv_arm64_memory_intercept_message::cache_type"]
11294 [::std::mem::offset_of!(hv_arm64_memory_intercept_message, cache_type) - 24usize];
11295 ["Offset of field: hv_arm64_memory_intercept_message::instruction_byte_count"][::std::mem::offset_of!(
11296 hv_arm64_memory_intercept_message,
11297 instruction_byte_count
11298 ) - 28usize];
11299 ["Offset of field: hv_arm64_memory_intercept_message::memory_access_info"]
11300 [::std::mem::offset_of!(hv_arm64_memory_intercept_message, memory_access_info) - 29usize];
11301 ["Offset of field: hv_arm64_memory_intercept_message::reserved1"]
11302 [::std::mem::offset_of!(hv_arm64_memory_intercept_message, reserved1) - 30usize];
11303 ["Offset of field: hv_arm64_memory_intercept_message::instruction_bytes"]
11304 [::std::mem::offset_of!(hv_arm64_memory_intercept_message, instruction_bytes) - 32usize];
11305 ["Offset of field: hv_arm64_memory_intercept_message::reserved2"]
11306 [::std::mem::offset_of!(hv_arm64_memory_intercept_message, reserved2) - 36usize];
11307 ["Offset of field: hv_arm64_memory_intercept_message::guest_virtual_address"][::std::mem::offset_of!(
11308 hv_arm64_memory_intercept_message,
11309 guest_virtual_address
11310 ) - 40usize];
11311 ["Offset of field: hv_arm64_memory_intercept_message::guest_physical_address"][::std::mem::offset_of!(
11312 hv_arm64_memory_intercept_message,
11313 guest_physical_address
11314 ) - 48usize];
11315 ["Offset of field: hv_arm64_memory_intercept_message::syndrome"]
11316 [::std::mem::offset_of!(hv_arm64_memory_intercept_message, syndrome) - 56usize];
11317};
11318impl Default for hv_arm64_memory_intercept_message {
11319 fn default() -> Self {
11320 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11321 unsafe {
11322 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11323 s.assume_init()
11324 }
11325 }
11326}
11327pub const hv_arm64_reset_type_HV_ARM64_RESET_TYPE_POWER_OFF: hv_arm64_reset_type = 0;
11328pub const hv_arm64_reset_type_HV_ARM64_RESET_TYPE_REBOOT: hv_arm64_reset_type = 1;
11329pub const hv_arm64_reset_type_HV_ARM64_RESET_TYPE_SYSTEM_RESET2: hv_arm64_reset_type = 2;
11330pub const hv_arm64_reset_type_HV_ARM64_RESET_TYPE_HIBERNATE: hv_arm64_reset_type = 3;
11331pub const hv_arm64_reset_type_HV_ARM64_RESET_TYPE_MAX: hv_arm64_reset_type = 4;
11332pub type hv_arm64_reset_type = ::std::os::raw::c_uint;
11333#[repr(C)]
11334#[derive(Copy, Clone)]
11335pub struct hv_arm64_reset_intercept_message {
11336 pub header: hv_arm64_intercept_message_header,
11337 pub reset_type: __u32,
11338 pub reset_code: __u32,
11339}
11340#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11341const _: () = {
11342 ["Size of hv_arm64_reset_intercept_message"]
11343 [::std::mem::size_of::<hv_arm64_reset_intercept_message>() - 32usize];
11344 ["Alignment of hv_arm64_reset_intercept_message"]
11345 [::std::mem::align_of::<hv_arm64_reset_intercept_message>() - 4usize];
11346 ["Offset of field: hv_arm64_reset_intercept_message::header"]
11347 [::std::mem::offset_of!(hv_arm64_reset_intercept_message, header) - 0usize];
11348 ["Offset of field: hv_arm64_reset_intercept_message::reset_type"]
11349 [::std::mem::offset_of!(hv_arm64_reset_intercept_message, reset_type) - 24usize];
11350 ["Offset of field: hv_arm64_reset_intercept_message::reset_code"]
11351 [::std::mem::offset_of!(hv_arm64_reset_intercept_message, reset_code) - 28usize];
11352};
11353impl Default for hv_arm64_reset_intercept_message {
11354 fn default() -> Self {
11355 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11356 unsafe {
11357 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11358 s.assume_init()
11359 }
11360 }
11361}
11362#[repr(C, packed)]
11363#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
11364pub struct hv_input_translate_virtual_address {
11365 pub partition_id: __u64,
11366 pub vp_index: __u32,
11367 pub padding: __u32,
11368 pub control_flags: __u64,
11369 pub gva_page: __u64,
11370}
11371#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11372const _: () = {
11373 ["Size of hv_input_translate_virtual_address"]
11374 [::std::mem::size_of::<hv_input_translate_virtual_address>() - 32usize];
11375 ["Alignment of hv_input_translate_virtual_address"]
11376 [::std::mem::align_of::<hv_input_translate_virtual_address>() - 1usize];
11377 ["Offset of field: hv_input_translate_virtual_address::partition_id"]
11378 [::std::mem::offset_of!(hv_input_translate_virtual_address, partition_id) - 0usize];
11379 ["Offset of field: hv_input_translate_virtual_address::vp_index"]
11380 [::std::mem::offset_of!(hv_input_translate_virtual_address, vp_index) - 8usize];
11381 ["Offset of field: hv_input_translate_virtual_address::padding"]
11382 [::std::mem::offset_of!(hv_input_translate_virtual_address, padding) - 12usize];
11383 ["Offset of field: hv_input_translate_virtual_address::control_flags"]
11384 [::std::mem::offset_of!(hv_input_translate_virtual_address, control_flags) - 16usize];
11385 ["Offset of field: hv_input_translate_virtual_address::gva_page"]
11386 [::std::mem::offset_of!(hv_input_translate_virtual_address, gva_page) - 24usize];
11387};
11388#[repr(C, packed)]
11389#[derive(Copy, Clone)]
11390pub struct hv_output_translate_virtual_address {
11391 pub translation_result: hv_translate_gva_result,
11392 pub gpa_page: __u64,
11393}
11394#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11395const _: () = {
11396 ["Size of hv_output_translate_virtual_address"]
11397 [::std::mem::size_of::<hv_output_translate_virtual_address>() - 16usize];
11398 ["Alignment of hv_output_translate_virtual_address"]
11399 [::std::mem::align_of::<hv_output_translate_virtual_address>() - 1usize];
11400 ["Offset of field: hv_output_translate_virtual_address::translation_result"]
11401 [::std::mem::offset_of!(hv_output_translate_virtual_address, translation_result) - 0usize];
11402 ["Offset of field: hv_output_translate_virtual_address::gpa_page"]
11403 [::std::mem::offset_of!(hv_output_translate_virtual_address, gpa_page) - 8usize];
11404};
11405impl Default for hv_output_translate_virtual_address {
11406 fn default() -> Self {
11407 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11408 unsafe {
11409 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11410 s.assume_init()
11411 }
11412 }
11413}
11414#[repr(C, packed)]
11415#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
11416pub struct hv_psp_cpuid_leaf {
11417 pub eax_in: __u32,
11418 pub ecx_in: __u32,
11419 pub xfem_in: __u64,
11420 pub xss_in: __u64,
11421 pub eax_out: __u32,
11422 pub ebx_out: __u32,
11423 pub ecx_out: __u32,
11424 pub edx_out: __u32,
11425 pub reserved_z: __u64,
11426}
11427#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11428const _: () = {
11429 ["Size of hv_psp_cpuid_leaf"][::std::mem::size_of::<hv_psp_cpuid_leaf>() - 48usize];
11430 ["Alignment of hv_psp_cpuid_leaf"][::std::mem::align_of::<hv_psp_cpuid_leaf>() - 1usize];
11431 ["Offset of field: hv_psp_cpuid_leaf::eax_in"]
11432 [::std::mem::offset_of!(hv_psp_cpuid_leaf, eax_in) - 0usize];
11433 ["Offset of field: hv_psp_cpuid_leaf::ecx_in"]
11434 [::std::mem::offset_of!(hv_psp_cpuid_leaf, ecx_in) - 4usize];
11435 ["Offset of field: hv_psp_cpuid_leaf::xfem_in"]
11436 [::std::mem::offset_of!(hv_psp_cpuid_leaf, xfem_in) - 8usize];
11437 ["Offset of field: hv_psp_cpuid_leaf::xss_in"]
11438 [::std::mem::offset_of!(hv_psp_cpuid_leaf, xss_in) - 16usize];
11439 ["Offset of field: hv_psp_cpuid_leaf::eax_out"]
11440 [::std::mem::offset_of!(hv_psp_cpuid_leaf, eax_out) - 24usize];
11441 ["Offset of field: hv_psp_cpuid_leaf::ebx_out"]
11442 [::std::mem::offset_of!(hv_psp_cpuid_leaf, ebx_out) - 28usize];
11443 ["Offset of field: hv_psp_cpuid_leaf::ecx_out"]
11444 [::std::mem::offset_of!(hv_psp_cpuid_leaf, ecx_out) - 32usize];
11445 ["Offset of field: hv_psp_cpuid_leaf::edx_out"]
11446 [::std::mem::offset_of!(hv_psp_cpuid_leaf, edx_out) - 36usize];
11447 ["Offset of field: hv_psp_cpuid_leaf::reserved_z"]
11448 [::std::mem::offset_of!(hv_psp_cpuid_leaf, reserved_z) - 40usize];
11449};
11450#[repr(C, packed)]
11451#[derive(Debug, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
11452pub struct hv_psp_cpuid_page {
11453 pub count: __u32,
11454 pub reserved_z1: __u32,
11455 pub reserved_z2: __u64,
11456 pub cpuid_leaf_info: [hv_psp_cpuid_leaf; 64usize],
11457}
11458#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11459const _: () = {
11460 ["Size of hv_psp_cpuid_page"][::std::mem::size_of::<hv_psp_cpuid_page>() - 3088usize];
11461 ["Alignment of hv_psp_cpuid_page"][::std::mem::align_of::<hv_psp_cpuid_page>() - 1usize];
11462 ["Offset of field: hv_psp_cpuid_page::count"]
11463 [::std::mem::offset_of!(hv_psp_cpuid_page, count) - 0usize];
11464 ["Offset of field: hv_psp_cpuid_page::reserved_z1"]
11465 [::std::mem::offset_of!(hv_psp_cpuid_page, reserved_z1) - 4usize];
11466 ["Offset of field: hv_psp_cpuid_page::reserved_z2"]
11467 [::std::mem::offset_of!(hv_psp_cpuid_page, reserved_z2) - 8usize];
11468 ["Offset of field: hv_psp_cpuid_page::cpuid_leaf_info"]
11469 [::std::mem::offset_of!(hv_psp_cpuid_page, cpuid_leaf_info) - 16usize];
11470};
11471impl Default for hv_psp_cpuid_page {
11472 fn default() -> Self {
11473 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11474 unsafe {
11475 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11476 s.assume_init()
11477 }
11478 }
11479}
11480pub const hv_isolated_page_type_HV_ISOLATED_PAGE_TYPE_NORMAL: hv_isolated_page_type = 0;
11481pub const hv_isolated_page_type_HV_ISOLATED_PAGE_TYPE_VMSA: hv_isolated_page_type = 1;
11482pub const hv_isolated_page_type_HV_ISOLATED_PAGE_TYPE_ZERO: hv_isolated_page_type = 2;
11483pub const hv_isolated_page_type_HV_ISOLATED_PAGE_TYPE_UNMEASURED: hv_isolated_page_type = 3;
11484pub const hv_isolated_page_type_HV_ISOLATED_PAGE_TYPE_SECRETS: hv_isolated_page_type = 4;
11485pub const hv_isolated_page_type_HV_ISOLATED_PAGE_TYPE_CPUID: hv_isolated_page_type = 5;
11486pub const hv_isolated_page_type_HV_ISOLATED_PAGE_TYPE_COUNT: hv_isolated_page_type = 6;
11487pub type hv_isolated_page_type = ::std::os::raw::c_uint;
11488pub const hv_isolated_page_size_HV_ISOLATED_PAGE_SIZE_4KB: hv_isolated_page_size = 0;
11489pub const hv_isolated_page_size_HV_ISOLATED_PAGE_SIZE_2MB: hv_isolated_page_size = 1;
11490pub type hv_isolated_page_size = ::std::os::raw::c_uint;
11491#[repr(C, packed)]
11492pub struct hv_input_import_isolated_pages {
11493 pub partition_id: __u64,
11494 pub page_type: __u32,
11495 pub page_size: __u32,
11496 pub page_number: __IncompleteArrayField<__u64>,
11497}
11498#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11499const _: () = {
11500 ["Size of hv_input_import_isolated_pages"]
11501 [::std::mem::size_of::<hv_input_import_isolated_pages>() - 16usize];
11502 ["Alignment of hv_input_import_isolated_pages"]
11503 [::std::mem::align_of::<hv_input_import_isolated_pages>() - 1usize];
11504 ["Offset of field: hv_input_import_isolated_pages::partition_id"]
11505 [::std::mem::offset_of!(hv_input_import_isolated_pages, partition_id) - 0usize];
11506 ["Offset of field: hv_input_import_isolated_pages::page_type"]
11507 [::std::mem::offset_of!(hv_input_import_isolated_pages, page_type) - 8usize];
11508 ["Offset of field: hv_input_import_isolated_pages::page_size"]
11509 [::std::mem::offset_of!(hv_input_import_isolated_pages, page_size) - 12usize];
11510 ["Offset of field: hv_input_import_isolated_pages::page_number"]
11511 [::std::mem::offset_of!(hv_input_import_isolated_pages, page_number) - 16usize];
11512};
11513impl Default for hv_input_import_isolated_pages {
11514 fn default() -> Self {
11515 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11516 unsafe {
11517 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11518 s.assume_init()
11519 }
11520 }
11521}
11522#[repr(C)]
11523#[derive(Copy, Clone)]
11524pub union hv_sev_vmgexit_offload {
11525 pub as_uint64: __u64,
11526 pub __bindgen_anon_1: hv_sev_vmgexit_offload__bindgen_ty_1,
11527}
11528#[repr(C, packed)]
11529#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
11530pub struct hv_sev_vmgexit_offload__bindgen_ty_1 {
11531 pub _bitfield_align_1: [u8; 0],
11532 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
11533}
11534#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11535const _: () = {
11536 ["Size of hv_sev_vmgexit_offload__bindgen_ty_1"]
11537 [::std::mem::size_of::<hv_sev_vmgexit_offload__bindgen_ty_1>() - 8usize];
11538 ["Alignment of hv_sev_vmgexit_offload__bindgen_ty_1"]
11539 [::std::mem::align_of::<hv_sev_vmgexit_offload__bindgen_ty_1>() - 1usize];
11540};
11541impl hv_sev_vmgexit_offload__bindgen_ty_1 {
11542 #[inline]
11543 pub fn nae_rdtsc(&self) -> __u64 {
11544 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
11545 }
11546 #[inline]
11547 pub fn set_nae_rdtsc(&mut self, val: __u64) {
11548 unsafe {
11549 let val: u64 = ::std::mem::transmute(val);
11550 self._bitfield_1.set(0usize, 1u8, val as u64)
11551 }
11552 }
11553 #[inline]
11554 pub unsafe fn nae_rdtsc_raw(this: *const Self) -> __u64 {
11555 unsafe {
11556 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11557 ::std::ptr::addr_of!((*this)._bitfield_1),
11558 0usize,
11559 1u8,
11560 ) as u64)
11561 }
11562 }
11563 #[inline]
11564 pub unsafe fn set_nae_rdtsc_raw(this: *mut Self, val: __u64) {
11565 unsafe {
11566 let val: u64 = ::std::mem::transmute(val);
11567 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11568 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11569 0usize,
11570 1u8,
11571 val as u64,
11572 )
11573 }
11574 }
11575 #[inline]
11576 pub fn nae_cpuid(&self) -> __u64 {
11577 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
11578 }
11579 #[inline]
11580 pub fn set_nae_cpuid(&mut self, val: __u64) {
11581 unsafe {
11582 let val: u64 = ::std::mem::transmute(val);
11583 self._bitfield_1.set(1usize, 1u8, val as u64)
11584 }
11585 }
11586 #[inline]
11587 pub unsafe fn nae_cpuid_raw(this: *const Self) -> __u64 {
11588 unsafe {
11589 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11590 ::std::ptr::addr_of!((*this)._bitfield_1),
11591 1usize,
11592 1u8,
11593 ) as u64)
11594 }
11595 }
11596 #[inline]
11597 pub unsafe fn set_nae_cpuid_raw(this: *mut Self, val: __u64) {
11598 unsafe {
11599 let val: u64 = ::std::mem::transmute(val);
11600 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11601 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11602 1usize,
11603 1u8,
11604 val as u64,
11605 )
11606 }
11607 }
11608 #[inline]
11609 pub fn nae_reserved_io_port(&self) -> __u64 {
11610 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
11611 }
11612 #[inline]
11613 pub fn set_nae_reserved_io_port(&mut self, val: __u64) {
11614 unsafe {
11615 let val: u64 = ::std::mem::transmute(val);
11616 self._bitfield_1.set(2usize, 1u8, val as u64)
11617 }
11618 }
11619 #[inline]
11620 pub unsafe fn nae_reserved_io_port_raw(this: *const Self) -> __u64 {
11621 unsafe {
11622 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11623 ::std::ptr::addr_of!((*this)._bitfield_1),
11624 2usize,
11625 1u8,
11626 ) as u64)
11627 }
11628 }
11629 #[inline]
11630 pub unsafe fn set_nae_reserved_io_port_raw(this: *mut Self, val: __u64) {
11631 unsafe {
11632 let val: u64 = ::std::mem::transmute(val);
11633 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11634 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11635 2usize,
11636 1u8,
11637 val as u64,
11638 )
11639 }
11640 }
11641 #[inline]
11642 pub fn nae_rdmsr(&self) -> __u64 {
11643 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) }
11644 }
11645 #[inline]
11646 pub fn set_nae_rdmsr(&mut self, val: __u64) {
11647 unsafe {
11648 let val: u64 = ::std::mem::transmute(val);
11649 self._bitfield_1.set(3usize, 1u8, val as u64)
11650 }
11651 }
11652 #[inline]
11653 pub unsafe fn nae_rdmsr_raw(this: *const Self) -> __u64 {
11654 unsafe {
11655 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11656 ::std::ptr::addr_of!((*this)._bitfield_1),
11657 3usize,
11658 1u8,
11659 ) as u64)
11660 }
11661 }
11662 #[inline]
11663 pub unsafe fn set_nae_rdmsr_raw(this: *mut Self, val: __u64) {
11664 unsafe {
11665 let val: u64 = ::std::mem::transmute(val);
11666 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11667 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11668 3usize,
11669 1u8,
11670 val as u64,
11671 )
11672 }
11673 }
11674 #[inline]
11675 pub fn nae_wrmsr(&self) -> __u64 {
11676 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u64) }
11677 }
11678 #[inline]
11679 pub fn set_nae_wrmsr(&mut self, val: __u64) {
11680 unsafe {
11681 let val: u64 = ::std::mem::transmute(val);
11682 self._bitfield_1.set(4usize, 1u8, val as u64)
11683 }
11684 }
11685 #[inline]
11686 pub unsafe fn nae_wrmsr_raw(this: *const Self) -> __u64 {
11687 unsafe {
11688 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11689 ::std::ptr::addr_of!((*this)._bitfield_1),
11690 4usize,
11691 1u8,
11692 ) as u64)
11693 }
11694 }
11695 #[inline]
11696 pub unsafe fn set_nae_wrmsr_raw(this: *mut Self, val: __u64) {
11697 unsafe {
11698 let val: u64 = ::std::mem::transmute(val);
11699 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11700 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11701 4usize,
11702 1u8,
11703 val as u64,
11704 )
11705 }
11706 }
11707 #[inline]
11708 pub fn nae_vmmcall(&self) -> __u64 {
11709 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
11710 }
11711 #[inline]
11712 pub fn set_nae_vmmcall(&mut self, val: __u64) {
11713 unsafe {
11714 let val: u64 = ::std::mem::transmute(val);
11715 self._bitfield_1.set(5usize, 1u8, val as u64)
11716 }
11717 }
11718 #[inline]
11719 pub unsafe fn nae_vmmcall_raw(this: *const Self) -> __u64 {
11720 unsafe {
11721 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11722 ::std::ptr::addr_of!((*this)._bitfield_1),
11723 5usize,
11724 1u8,
11725 ) as u64)
11726 }
11727 }
11728 #[inline]
11729 pub unsafe fn set_nae_vmmcall_raw(this: *mut Self, val: __u64) {
11730 unsafe {
11731 let val: u64 = ::std::mem::transmute(val);
11732 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11733 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11734 5usize,
11735 1u8,
11736 val as u64,
11737 )
11738 }
11739 }
11740 #[inline]
11741 pub fn nae_wbinvd(&self) -> __u64 {
11742 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u64) }
11743 }
11744 #[inline]
11745 pub fn set_nae_wbinvd(&mut self, val: __u64) {
11746 unsafe {
11747 let val: u64 = ::std::mem::transmute(val);
11748 self._bitfield_1.set(6usize, 1u8, val as u64)
11749 }
11750 }
11751 #[inline]
11752 pub unsafe fn nae_wbinvd_raw(this: *const Self) -> __u64 {
11753 unsafe {
11754 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11755 ::std::ptr::addr_of!((*this)._bitfield_1),
11756 6usize,
11757 1u8,
11758 ) as u64)
11759 }
11760 }
11761 #[inline]
11762 pub unsafe fn set_nae_wbinvd_raw(this: *mut Self, val: __u64) {
11763 unsafe {
11764 let val: u64 = ::std::mem::transmute(val);
11765 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11766 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11767 6usize,
11768 1u8,
11769 val as u64,
11770 )
11771 }
11772 }
11773 #[inline]
11774 pub fn nae_snp_page_state_change(&self) -> __u64 {
11775 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u64) }
11776 }
11777 #[inline]
11778 pub fn set_nae_snp_page_state_change(&mut self, val: __u64) {
11779 unsafe {
11780 let val: u64 = ::std::mem::transmute(val);
11781 self._bitfield_1.set(7usize, 1u8, val as u64)
11782 }
11783 }
11784 #[inline]
11785 pub unsafe fn nae_snp_page_state_change_raw(this: *const Self) -> __u64 {
11786 unsafe {
11787 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11788 ::std::ptr::addr_of!((*this)._bitfield_1),
11789 7usize,
11790 1u8,
11791 ) as u64)
11792 }
11793 }
11794 #[inline]
11795 pub unsafe fn set_nae_snp_page_state_change_raw(this: *mut Self, val: __u64) {
11796 unsafe {
11797 let val: u64 = ::std::mem::transmute(val);
11798 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11799 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11800 7usize,
11801 1u8,
11802 val as u64,
11803 )
11804 }
11805 }
11806 #[inline]
11807 pub fn reserved0(&self) -> __u64 {
11808 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 24u8) as u64) }
11809 }
11810 #[inline]
11811 pub fn set_reserved0(&mut self, val: __u64) {
11812 unsafe {
11813 let val: u64 = ::std::mem::transmute(val);
11814 self._bitfield_1.set(8usize, 24u8, val as u64)
11815 }
11816 }
11817 #[inline]
11818 pub unsafe fn reserved0_raw(this: *const Self) -> __u64 {
11819 unsafe {
11820 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11821 ::std::ptr::addr_of!((*this)._bitfield_1),
11822 8usize,
11823 24u8,
11824 ) as u64)
11825 }
11826 }
11827 #[inline]
11828 pub unsafe fn set_reserved0_raw(this: *mut Self, val: __u64) {
11829 unsafe {
11830 let val: u64 = ::std::mem::transmute(val);
11831 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11832 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11833 8usize,
11834 24u8,
11835 val as u64,
11836 )
11837 }
11838 }
11839 #[inline]
11840 pub fn msr_cpuid(&self) -> __u64 {
11841 unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u64) }
11842 }
11843 #[inline]
11844 pub fn set_msr_cpuid(&mut self, val: __u64) {
11845 unsafe {
11846 let val: u64 = ::std::mem::transmute(val);
11847 self._bitfield_1.set(32usize, 1u8, val as u64)
11848 }
11849 }
11850 #[inline]
11851 pub unsafe fn msr_cpuid_raw(this: *const Self) -> __u64 {
11852 unsafe {
11853 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11854 ::std::ptr::addr_of!((*this)._bitfield_1),
11855 32usize,
11856 1u8,
11857 ) as u64)
11858 }
11859 }
11860 #[inline]
11861 pub unsafe fn set_msr_cpuid_raw(this: *mut Self, val: __u64) {
11862 unsafe {
11863 let val: u64 = ::std::mem::transmute(val);
11864 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11865 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11866 32usize,
11867 1u8,
11868 val as u64,
11869 )
11870 }
11871 }
11872 #[inline]
11873 pub fn msr_snp_page_state_change(&self) -> __u64 {
11874 unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u64) }
11875 }
11876 #[inline]
11877 pub fn set_msr_snp_page_state_change(&mut self, val: __u64) {
11878 unsafe {
11879 let val: u64 = ::std::mem::transmute(val);
11880 self._bitfield_1.set(33usize, 1u8, val as u64)
11881 }
11882 }
11883 #[inline]
11884 pub unsafe fn msr_snp_page_state_change_raw(this: *const Self) -> __u64 {
11885 unsafe {
11886 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11887 ::std::ptr::addr_of!((*this)._bitfield_1),
11888 33usize,
11889 1u8,
11890 ) as u64)
11891 }
11892 }
11893 #[inline]
11894 pub unsafe fn set_msr_snp_page_state_change_raw(this: *mut Self, val: __u64) {
11895 unsafe {
11896 let val: u64 = ::std::mem::transmute(val);
11897 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11898 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11899 33usize,
11900 1u8,
11901 val as u64,
11902 )
11903 }
11904 }
11905 #[inline]
11906 pub fn reserved1(&self) -> __u64 {
11907 unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 30u8) as u64) }
11908 }
11909 #[inline]
11910 pub fn set_reserved1(&mut self, val: __u64) {
11911 unsafe {
11912 let val: u64 = ::std::mem::transmute(val);
11913 self._bitfield_1.set(34usize, 30u8, val as u64)
11914 }
11915 }
11916 #[inline]
11917 pub unsafe fn reserved1_raw(this: *const Self) -> __u64 {
11918 unsafe {
11919 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
11920 ::std::ptr::addr_of!((*this)._bitfield_1),
11921 34usize,
11922 30u8,
11923 ) as u64)
11924 }
11925 }
11926 #[inline]
11927 pub unsafe fn set_reserved1_raw(this: *mut Self, val: __u64) {
11928 unsafe {
11929 let val: u64 = ::std::mem::transmute(val);
11930 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
11931 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
11932 34usize,
11933 30u8,
11934 val as u64,
11935 )
11936 }
11937 }
11938 #[inline]
11939 pub fn new_bitfield_1(
11940 nae_rdtsc: __u64,
11941 nae_cpuid: __u64,
11942 nae_reserved_io_port: __u64,
11943 nae_rdmsr: __u64,
11944 nae_wrmsr: __u64,
11945 nae_vmmcall: __u64,
11946 nae_wbinvd: __u64,
11947 nae_snp_page_state_change: __u64,
11948 reserved0: __u64,
11949 msr_cpuid: __u64,
11950 msr_snp_page_state_change: __u64,
11951 reserved1: __u64,
11952 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
11953 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
11954 __bindgen_bitfield_unit.set(0usize, 1u8, {
11955 let nae_rdtsc: u64 = unsafe { ::std::mem::transmute(nae_rdtsc) };
11956 nae_rdtsc as u64
11957 });
11958 __bindgen_bitfield_unit.set(1usize, 1u8, {
11959 let nae_cpuid: u64 = unsafe { ::std::mem::transmute(nae_cpuid) };
11960 nae_cpuid as u64
11961 });
11962 __bindgen_bitfield_unit.set(2usize, 1u8, {
11963 let nae_reserved_io_port: u64 = unsafe { ::std::mem::transmute(nae_reserved_io_port) };
11964 nae_reserved_io_port as u64
11965 });
11966 __bindgen_bitfield_unit.set(3usize, 1u8, {
11967 let nae_rdmsr: u64 = unsafe { ::std::mem::transmute(nae_rdmsr) };
11968 nae_rdmsr as u64
11969 });
11970 __bindgen_bitfield_unit.set(4usize, 1u8, {
11971 let nae_wrmsr: u64 = unsafe { ::std::mem::transmute(nae_wrmsr) };
11972 nae_wrmsr as u64
11973 });
11974 __bindgen_bitfield_unit.set(5usize, 1u8, {
11975 let nae_vmmcall: u64 = unsafe { ::std::mem::transmute(nae_vmmcall) };
11976 nae_vmmcall as u64
11977 });
11978 __bindgen_bitfield_unit.set(6usize, 1u8, {
11979 let nae_wbinvd: u64 = unsafe { ::std::mem::transmute(nae_wbinvd) };
11980 nae_wbinvd as u64
11981 });
11982 __bindgen_bitfield_unit.set(7usize, 1u8, {
11983 let nae_snp_page_state_change: u64 =
11984 unsafe { ::std::mem::transmute(nae_snp_page_state_change) };
11985 nae_snp_page_state_change as u64
11986 });
11987 __bindgen_bitfield_unit.set(8usize, 24u8, {
11988 let reserved0: u64 = unsafe { ::std::mem::transmute(reserved0) };
11989 reserved0 as u64
11990 });
11991 __bindgen_bitfield_unit.set(32usize, 1u8, {
11992 let msr_cpuid: u64 = unsafe { ::std::mem::transmute(msr_cpuid) };
11993 msr_cpuid as u64
11994 });
11995 __bindgen_bitfield_unit.set(33usize, 1u8, {
11996 let msr_snp_page_state_change: u64 =
11997 unsafe { ::std::mem::transmute(msr_snp_page_state_change) };
11998 msr_snp_page_state_change as u64
11999 });
12000 __bindgen_bitfield_unit.set(34usize, 30u8, {
12001 let reserved1: u64 = unsafe { ::std::mem::transmute(reserved1) };
12002 reserved1 as u64
12003 });
12004 __bindgen_bitfield_unit
12005 }
12006}
12007#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12008const _: () = {
12009 ["Size of hv_sev_vmgexit_offload"][::std::mem::size_of::<hv_sev_vmgexit_offload>() - 8usize];
12010 ["Alignment of hv_sev_vmgexit_offload"]
12011 [::std::mem::align_of::<hv_sev_vmgexit_offload>() - 8usize];
12012 ["Offset of field: hv_sev_vmgexit_offload::as_uint64"]
12013 [::std::mem::offset_of!(hv_sev_vmgexit_offload, as_uint64) - 0usize];
12014};
12015impl Default for hv_sev_vmgexit_offload {
12016 fn default() -> Self {
12017 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
12018 unsafe {
12019 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
12020 s.assume_init()
12021 }
12022 }
12023}
12024pub const hv_access_gpa_result_code_HV_ACCESS_GPA_SUCCESS: hv_access_gpa_result_code = 0;
12025pub const hv_access_gpa_result_code_HV_ACCESS_GPA_UNMAPPED: hv_access_gpa_result_code = 1;
12026pub const hv_access_gpa_result_code_HV_ACCESS_GPA_READ_INTERCEPT: hv_access_gpa_result_code = 2;
12027pub const hv_access_gpa_result_code_HV_ACCESS_GPA_WRITE_INTERCEPT: hv_access_gpa_result_code = 3;
12028pub const hv_access_gpa_result_code_HV_ACCESS_GPA_ILLEGAL_OVERLAY_ACCESS:
12029 hv_access_gpa_result_code = 4;
12030pub type hv_access_gpa_result_code = ::std::os::raw::c_uint;
12031#[repr(C)]
12032#[derive(Copy, Clone)]
12033pub union hv_access_gpa_result {
12034 pub as_uint64: __u64,
12035 pub __bindgen_anon_1: hv_access_gpa_result__bindgen_ty_1,
12036}
12037#[repr(C, packed)]
12038#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
12039pub struct hv_access_gpa_result__bindgen_ty_1 {
12040 pub result_code: __u32,
12041 pub reserved: __u32,
12042}
12043#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12044const _: () = {
12045 ["Size of hv_access_gpa_result__bindgen_ty_1"]
12046 [::std::mem::size_of::<hv_access_gpa_result__bindgen_ty_1>() - 8usize];
12047 ["Alignment of hv_access_gpa_result__bindgen_ty_1"]
12048 [::std::mem::align_of::<hv_access_gpa_result__bindgen_ty_1>() - 1usize];
12049 ["Offset of field: hv_access_gpa_result__bindgen_ty_1::result_code"]
12050 [::std::mem::offset_of!(hv_access_gpa_result__bindgen_ty_1, result_code) - 0usize];
12051 ["Offset of field: hv_access_gpa_result__bindgen_ty_1::reserved"]
12052 [::std::mem::offset_of!(hv_access_gpa_result__bindgen_ty_1, reserved) - 4usize];
12053};
12054#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12055const _: () = {
12056 ["Size of hv_access_gpa_result"][::std::mem::size_of::<hv_access_gpa_result>() - 8usize];
12057 ["Alignment of hv_access_gpa_result"][::std::mem::align_of::<hv_access_gpa_result>() - 8usize];
12058 ["Offset of field: hv_access_gpa_result::as_uint64"]
12059 [::std::mem::offset_of!(hv_access_gpa_result, as_uint64) - 0usize];
12060};
12061impl Default for hv_access_gpa_result {
12062 fn default() -> Self {
12063 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
12064 unsafe {
12065 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
12066 s.assume_init()
12067 }
12068 }
12069}
12070#[repr(C)]
12071#[derive(Copy, Clone)]
12072pub union hv_access_gpa_control_flags {
12073 pub as_uint64: __u64,
12074 pub __bindgen_anon_1: hv_access_gpa_control_flags__bindgen_ty_1,
12075}
12076#[repr(C, packed)]
12077#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
12078pub struct hv_access_gpa_control_flags__bindgen_ty_1 {
12079 pub _bitfield_align_1: [u8; 0],
12080 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
12081}
12082#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12083const _: () = {
12084 ["Size of hv_access_gpa_control_flags__bindgen_ty_1"]
12085 [::std::mem::size_of::<hv_access_gpa_control_flags__bindgen_ty_1>() - 8usize];
12086 ["Alignment of hv_access_gpa_control_flags__bindgen_ty_1"]
12087 [::std::mem::align_of::<hv_access_gpa_control_flags__bindgen_ty_1>() - 1usize];
12088};
12089impl hv_access_gpa_control_flags__bindgen_ty_1 {
12090 #[inline]
12091 pub fn cache_type(&self) -> __u64 {
12092 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u64) }
12093 }
12094 #[inline]
12095 pub fn set_cache_type(&mut self, val: __u64) {
12096 unsafe {
12097 let val: u64 = ::std::mem::transmute(val);
12098 self._bitfield_1.set(0usize, 8u8, val as u64)
12099 }
12100 }
12101 #[inline]
12102 pub unsafe fn cache_type_raw(this: *const Self) -> __u64 {
12103 unsafe {
12104 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12105 ::std::ptr::addr_of!((*this)._bitfield_1),
12106 0usize,
12107 8u8,
12108 ) as u64)
12109 }
12110 }
12111 #[inline]
12112 pub unsafe fn set_cache_type_raw(this: *mut Self, val: __u64) {
12113 unsafe {
12114 let val: u64 = ::std::mem::transmute(val);
12115 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12116 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12117 0usize,
12118 8u8,
12119 val as u64,
12120 )
12121 }
12122 }
12123 #[inline]
12124 pub fn reserved(&self) -> __u64 {
12125 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 56u8) as u64) }
12126 }
12127 #[inline]
12128 pub fn set_reserved(&mut self, val: __u64) {
12129 unsafe {
12130 let val: u64 = ::std::mem::transmute(val);
12131 self._bitfield_1.set(8usize, 56u8, val as u64)
12132 }
12133 }
12134 #[inline]
12135 pub unsafe fn reserved_raw(this: *const Self) -> __u64 {
12136 unsafe {
12137 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12138 ::std::ptr::addr_of!((*this)._bitfield_1),
12139 8usize,
12140 56u8,
12141 ) as u64)
12142 }
12143 }
12144 #[inline]
12145 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u64) {
12146 unsafe {
12147 let val: u64 = ::std::mem::transmute(val);
12148 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12149 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12150 8usize,
12151 56u8,
12152 val as u64,
12153 )
12154 }
12155 }
12156 #[inline]
12157 pub fn new_bitfield_1(
12158 cache_type: __u64,
12159 reserved: __u64,
12160 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
12161 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
12162 __bindgen_bitfield_unit.set(0usize, 8u8, {
12163 let cache_type: u64 = unsafe { ::std::mem::transmute(cache_type) };
12164 cache_type as u64
12165 });
12166 __bindgen_bitfield_unit.set(8usize, 56u8, {
12167 let reserved: u64 = unsafe { ::std::mem::transmute(reserved) };
12168 reserved as u64
12169 });
12170 __bindgen_bitfield_unit
12171 }
12172}
12173#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12174const _: () = {
12175 ["Size of hv_access_gpa_control_flags"]
12176 [::std::mem::size_of::<hv_access_gpa_control_flags>() - 8usize];
12177 ["Alignment of hv_access_gpa_control_flags"]
12178 [::std::mem::align_of::<hv_access_gpa_control_flags>() - 8usize];
12179 ["Offset of field: hv_access_gpa_control_flags::as_uint64"]
12180 [::std::mem::offset_of!(hv_access_gpa_control_flags, as_uint64) - 0usize];
12181};
12182impl Default for hv_access_gpa_control_flags {
12183 fn default() -> Self {
12184 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
12185 unsafe {
12186 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
12187 s.assume_init()
12188 }
12189 }
12190}
12191#[repr(C, packed)]
12192#[derive(Copy, Clone)]
12193pub struct hv_input_read_gpa {
12194 pub partition_id: __u64,
12195 pub vp_index: __u32,
12196 pub byte_count: __u32,
12197 pub base_gpa: __u64,
12198 pub control_flags: hv_access_gpa_control_flags,
12199}
12200#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12201const _: () = {
12202 ["Size of hv_input_read_gpa"][::std::mem::size_of::<hv_input_read_gpa>() - 32usize];
12203 ["Alignment of hv_input_read_gpa"][::std::mem::align_of::<hv_input_read_gpa>() - 1usize];
12204 ["Offset of field: hv_input_read_gpa::partition_id"]
12205 [::std::mem::offset_of!(hv_input_read_gpa, partition_id) - 0usize];
12206 ["Offset of field: hv_input_read_gpa::vp_index"]
12207 [::std::mem::offset_of!(hv_input_read_gpa, vp_index) - 8usize];
12208 ["Offset of field: hv_input_read_gpa::byte_count"]
12209 [::std::mem::offset_of!(hv_input_read_gpa, byte_count) - 12usize];
12210 ["Offset of field: hv_input_read_gpa::base_gpa"]
12211 [::std::mem::offset_of!(hv_input_read_gpa, base_gpa) - 16usize];
12212 ["Offset of field: hv_input_read_gpa::control_flags"]
12213 [::std::mem::offset_of!(hv_input_read_gpa, control_flags) - 24usize];
12214};
12215impl Default for hv_input_read_gpa {
12216 fn default() -> Self {
12217 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
12218 unsafe {
12219 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
12220 s.assume_init()
12221 }
12222 }
12223}
12224#[repr(C, packed)]
12225#[derive(Copy, Clone)]
12226pub struct hv_output_read_gpa {
12227 pub access_result: hv_access_gpa_result,
12228 pub data: [__u8; 16usize],
12229}
12230#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12231const _: () = {
12232 ["Size of hv_output_read_gpa"][::std::mem::size_of::<hv_output_read_gpa>() - 24usize];
12233 ["Alignment of hv_output_read_gpa"][::std::mem::align_of::<hv_output_read_gpa>() - 1usize];
12234 ["Offset of field: hv_output_read_gpa::access_result"]
12235 [::std::mem::offset_of!(hv_output_read_gpa, access_result) - 0usize];
12236 ["Offset of field: hv_output_read_gpa::data"]
12237 [::std::mem::offset_of!(hv_output_read_gpa, data) - 8usize];
12238};
12239impl Default for hv_output_read_gpa {
12240 fn default() -> Self {
12241 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
12242 unsafe {
12243 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
12244 s.assume_init()
12245 }
12246 }
12247}
12248#[repr(C, packed)]
12249#[derive(Copy, Clone)]
12250pub struct hv_input_write_gpa {
12251 pub partition_id: __u64,
12252 pub vp_index: __u32,
12253 pub byte_count: __u32,
12254 pub base_gpa: __u64,
12255 pub control_flags: hv_access_gpa_control_flags,
12256 pub data: [__u8; 16usize],
12257}
12258#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12259const _: () = {
12260 ["Size of hv_input_write_gpa"][::std::mem::size_of::<hv_input_write_gpa>() - 48usize];
12261 ["Alignment of hv_input_write_gpa"][::std::mem::align_of::<hv_input_write_gpa>() - 1usize];
12262 ["Offset of field: hv_input_write_gpa::partition_id"]
12263 [::std::mem::offset_of!(hv_input_write_gpa, partition_id) - 0usize];
12264 ["Offset of field: hv_input_write_gpa::vp_index"]
12265 [::std::mem::offset_of!(hv_input_write_gpa, vp_index) - 8usize];
12266 ["Offset of field: hv_input_write_gpa::byte_count"]
12267 [::std::mem::offset_of!(hv_input_write_gpa, byte_count) - 12usize];
12268 ["Offset of field: hv_input_write_gpa::base_gpa"]
12269 [::std::mem::offset_of!(hv_input_write_gpa, base_gpa) - 16usize];
12270 ["Offset of field: hv_input_write_gpa::control_flags"]
12271 [::std::mem::offset_of!(hv_input_write_gpa, control_flags) - 24usize];
12272 ["Offset of field: hv_input_write_gpa::data"]
12273 [::std::mem::offset_of!(hv_input_write_gpa, data) - 32usize];
12274};
12275impl Default for hv_input_write_gpa {
12276 fn default() -> Self {
12277 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
12278 unsafe {
12279 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
12280 s.assume_init()
12281 }
12282 }
12283}
12284#[repr(C, packed)]
12285#[derive(Copy, Clone)]
12286pub struct hv_output_write_gpa {
12287 pub access_result: hv_access_gpa_result,
12288}
12289#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12290const _: () = {
12291 ["Size of hv_output_write_gpa"][::std::mem::size_of::<hv_output_write_gpa>() - 8usize];
12292 ["Alignment of hv_output_write_gpa"][::std::mem::align_of::<hv_output_write_gpa>() - 1usize];
12293 ["Offset of field: hv_output_write_gpa::access_result"]
12294 [::std::mem::offset_of!(hv_output_write_gpa, access_result) - 0usize];
12295};
12296impl Default for hv_output_write_gpa {
12297 fn default() -> Self {
12298 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
12299 unsafe {
12300 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
12301 s.assume_init()
12302 }
12303 }
12304}
12305#[repr(C, packed)]
12306#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
12307pub struct hv_input_issue_psp_guest_request {
12308 pub partition_id: __u64,
12309 pub request_page: __u64,
12310 pub response_page: __u64,
12311}
12312#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12313const _: () = {
12314 ["Size of hv_input_issue_psp_guest_request"]
12315 [::std::mem::size_of::<hv_input_issue_psp_guest_request>() - 24usize];
12316 ["Alignment of hv_input_issue_psp_guest_request"]
12317 [::std::mem::align_of::<hv_input_issue_psp_guest_request>() - 1usize];
12318 ["Offset of field: hv_input_issue_psp_guest_request::partition_id"]
12319 [::std::mem::offset_of!(hv_input_issue_psp_guest_request, partition_id) - 0usize];
12320 ["Offset of field: hv_input_issue_psp_guest_request::request_page"]
12321 [::std::mem::offset_of!(hv_input_issue_psp_guest_request, request_page) - 8usize];
12322 ["Offset of field: hv_input_issue_psp_guest_request::response_page"]
12323 [::std::mem::offset_of!(hv_input_issue_psp_guest_request, response_page) - 16usize];
12324};
12325#[repr(C)]
12326#[derive(Copy, Clone)]
12327pub union hv_partition_processor_xsave_features {
12328 pub __bindgen_anon_1: hv_partition_processor_xsave_features__bindgen_ty_1,
12329 pub as_uint64: __u64,
12330}
12331#[repr(C, packed)]
12332#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
12333pub struct hv_partition_processor_xsave_features__bindgen_ty_1 {
12334 pub _bitfield_align_1: [u8; 0],
12335 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
12336}
12337#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12338const _: () = {
12339 ["Size of hv_partition_processor_xsave_features__bindgen_ty_1"]
12340 [::std::mem::size_of::<hv_partition_processor_xsave_features__bindgen_ty_1>() - 8usize];
12341 ["Alignment of hv_partition_processor_xsave_features__bindgen_ty_1"]
12342 [::std::mem::align_of::<hv_partition_processor_xsave_features__bindgen_ty_1>() - 1usize];
12343};
12344impl hv_partition_processor_xsave_features__bindgen_ty_1 {
12345 #[inline]
12346 pub fn xsave_support(&self) -> __u64 {
12347 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
12348 }
12349 #[inline]
12350 pub fn set_xsave_support(&mut self, val: __u64) {
12351 unsafe {
12352 let val: u64 = ::std::mem::transmute(val);
12353 self._bitfield_1.set(0usize, 1u8, val as u64)
12354 }
12355 }
12356 #[inline]
12357 pub unsafe fn xsave_support_raw(this: *const Self) -> __u64 {
12358 unsafe {
12359 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12360 ::std::ptr::addr_of!((*this)._bitfield_1),
12361 0usize,
12362 1u8,
12363 ) as u64)
12364 }
12365 }
12366 #[inline]
12367 pub unsafe fn set_xsave_support_raw(this: *mut Self, val: __u64) {
12368 unsafe {
12369 let val: u64 = ::std::mem::transmute(val);
12370 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12371 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12372 0usize,
12373 1u8,
12374 val as u64,
12375 )
12376 }
12377 }
12378 #[inline]
12379 pub fn xsaveopt_support(&self) -> __u64 {
12380 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
12381 }
12382 #[inline]
12383 pub fn set_xsaveopt_support(&mut self, val: __u64) {
12384 unsafe {
12385 let val: u64 = ::std::mem::transmute(val);
12386 self._bitfield_1.set(1usize, 1u8, val as u64)
12387 }
12388 }
12389 #[inline]
12390 pub unsafe fn xsaveopt_support_raw(this: *const Self) -> __u64 {
12391 unsafe {
12392 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12393 ::std::ptr::addr_of!((*this)._bitfield_1),
12394 1usize,
12395 1u8,
12396 ) as u64)
12397 }
12398 }
12399 #[inline]
12400 pub unsafe fn set_xsaveopt_support_raw(this: *mut Self, val: __u64) {
12401 unsafe {
12402 let val: u64 = ::std::mem::transmute(val);
12403 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12404 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12405 1usize,
12406 1u8,
12407 val as u64,
12408 )
12409 }
12410 }
12411 #[inline]
12412 pub fn avx_support(&self) -> __u64 {
12413 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
12414 }
12415 #[inline]
12416 pub fn set_avx_support(&mut self, val: __u64) {
12417 unsafe {
12418 let val: u64 = ::std::mem::transmute(val);
12419 self._bitfield_1.set(2usize, 1u8, val as u64)
12420 }
12421 }
12422 #[inline]
12423 pub unsafe fn avx_support_raw(this: *const Self) -> __u64 {
12424 unsafe {
12425 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12426 ::std::ptr::addr_of!((*this)._bitfield_1),
12427 2usize,
12428 1u8,
12429 ) as u64)
12430 }
12431 }
12432 #[inline]
12433 pub unsafe fn set_avx_support_raw(this: *mut Self, val: __u64) {
12434 unsafe {
12435 let val: u64 = ::std::mem::transmute(val);
12436 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12437 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12438 2usize,
12439 1u8,
12440 val as u64,
12441 )
12442 }
12443 }
12444 #[inline]
12445 pub fn avx2_support(&self) -> __u64 {
12446 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) }
12447 }
12448 #[inline]
12449 pub fn set_avx2_support(&mut self, val: __u64) {
12450 unsafe {
12451 let val: u64 = ::std::mem::transmute(val);
12452 self._bitfield_1.set(3usize, 1u8, val as u64)
12453 }
12454 }
12455 #[inline]
12456 pub unsafe fn avx2_support_raw(this: *const Self) -> __u64 {
12457 unsafe {
12458 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12459 ::std::ptr::addr_of!((*this)._bitfield_1),
12460 3usize,
12461 1u8,
12462 ) as u64)
12463 }
12464 }
12465 #[inline]
12466 pub unsafe fn set_avx2_support_raw(this: *mut Self, val: __u64) {
12467 unsafe {
12468 let val: u64 = ::std::mem::transmute(val);
12469 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12470 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12471 3usize,
12472 1u8,
12473 val as u64,
12474 )
12475 }
12476 }
12477 #[inline]
12478 pub fn fma_support(&self) -> __u64 {
12479 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u64) }
12480 }
12481 #[inline]
12482 pub fn set_fma_support(&mut self, val: __u64) {
12483 unsafe {
12484 let val: u64 = ::std::mem::transmute(val);
12485 self._bitfield_1.set(4usize, 1u8, val as u64)
12486 }
12487 }
12488 #[inline]
12489 pub unsafe fn fma_support_raw(this: *const Self) -> __u64 {
12490 unsafe {
12491 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12492 ::std::ptr::addr_of!((*this)._bitfield_1),
12493 4usize,
12494 1u8,
12495 ) as u64)
12496 }
12497 }
12498 #[inline]
12499 pub unsafe fn set_fma_support_raw(this: *mut Self, val: __u64) {
12500 unsafe {
12501 let val: u64 = ::std::mem::transmute(val);
12502 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12503 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12504 4usize,
12505 1u8,
12506 val as u64,
12507 )
12508 }
12509 }
12510 #[inline]
12511 pub fn mpx_support(&self) -> __u64 {
12512 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
12513 }
12514 #[inline]
12515 pub fn set_mpx_support(&mut self, val: __u64) {
12516 unsafe {
12517 let val: u64 = ::std::mem::transmute(val);
12518 self._bitfield_1.set(5usize, 1u8, val as u64)
12519 }
12520 }
12521 #[inline]
12522 pub unsafe fn mpx_support_raw(this: *const Self) -> __u64 {
12523 unsafe {
12524 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12525 ::std::ptr::addr_of!((*this)._bitfield_1),
12526 5usize,
12527 1u8,
12528 ) as u64)
12529 }
12530 }
12531 #[inline]
12532 pub unsafe fn set_mpx_support_raw(this: *mut Self, val: __u64) {
12533 unsafe {
12534 let val: u64 = ::std::mem::transmute(val);
12535 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12536 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12537 5usize,
12538 1u8,
12539 val as u64,
12540 )
12541 }
12542 }
12543 #[inline]
12544 pub fn avx512_support(&self) -> __u64 {
12545 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u64) }
12546 }
12547 #[inline]
12548 pub fn set_avx512_support(&mut self, val: __u64) {
12549 unsafe {
12550 let val: u64 = ::std::mem::transmute(val);
12551 self._bitfield_1.set(6usize, 1u8, val as u64)
12552 }
12553 }
12554 #[inline]
12555 pub unsafe fn avx512_support_raw(this: *const Self) -> __u64 {
12556 unsafe {
12557 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12558 ::std::ptr::addr_of!((*this)._bitfield_1),
12559 6usize,
12560 1u8,
12561 ) as u64)
12562 }
12563 }
12564 #[inline]
12565 pub unsafe fn set_avx512_support_raw(this: *mut Self, val: __u64) {
12566 unsafe {
12567 let val: u64 = ::std::mem::transmute(val);
12568 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12569 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12570 6usize,
12571 1u8,
12572 val as u64,
12573 )
12574 }
12575 }
12576 #[inline]
12577 pub fn avx512_dq_support(&self) -> __u64 {
12578 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u64) }
12579 }
12580 #[inline]
12581 pub fn set_avx512_dq_support(&mut self, val: __u64) {
12582 unsafe {
12583 let val: u64 = ::std::mem::transmute(val);
12584 self._bitfield_1.set(7usize, 1u8, val as u64)
12585 }
12586 }
12587 #[inline]
12588 pub unsafe fn avx512_dq_support_raw(this: *const Self) -> __u64 {
12589 unsafe {
12590 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12591 ::std::ptr::addr_of!((*this)._bitfield_1),
12592 7usize,
12593 1u8,
12594 ) as u64)
12595 }
12596 }
12597 #[inline]
12598 pub unsafe fn set_avx512_dq_support_raw(this: *mut Self, val: __u64) {
12599 unsafe {
12600 let val: u64 = ::std::mem::transmute(val);
12601 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12602 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12603 7usize,
12604 1u8,
12605 val as u64,
12606 )
12607 }
12608 }
12609 #[inline]
12610 pub fn avx512_cd_support(&self) -> __u64 {
12611 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u64) }
12612 }
12613 #[inline]
12614 pub fn set_avx512_cd_support(&mut self, val: __u64) {
12615 unsafe {
12616 let val: u64 = ::std::mem::transmute(val);
12617 self._bitfield_1.set(8usize, 1u8, val as u64)
12618 }
12619 }
12620 #[inline]
12621 pub unsafe fn avx512_cd_support_raw(this: *const Self) -> __u64 {
12622 unsafe {
12623 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12624 ::std::ptr::addr_of!((*this)._bitfield_1),
12625 8usize,
12626 1u8,
12627 ) as u64)
12628 }
12629 }
12630 #[inline]
12631 pub unsafe fn set_avx512_cd_support_raw(this: *mut Self, val: __u64) {
12632 unsafe {
12633 let val: u64 = ::std::mem::transmute(val);
12634 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12635 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12636 8usize,
12637 1u8,
12638 val as u64,
12639 )
12640 }
12641 }
12642 #[inline]
12643 pub fn avx512_bw_support(&self) -> __u64 {
12644 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u64) }
12645 }
12646 #[inline]
12647 pub fn set_avx512_bw_support(&mut self, val: __u64) {
12648 unsafe {
12649 let val: u64 = ::std::mem::transmute(val);
12650 self._bitfield_1.set(9usize, 1u8, val as u64)
12651 }
12652 }
12653 #[inline]
12654 pub unsafe fn avx512_bw_support_raw(this: *const Self) -> __u64 {
12655 unsafe {
12656 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12657 ::std::ptr::addr_of!((*this)._bitfield_1),
12658 9usize,
12659 1u8,
12660 ) as u64)
12661 }
12662 }
12663 #[inline]
12664 pub unsafe fn set_avx512_bw_support_raw(this: *mut Self, val: __u64) {
12665 unsafe {
12666 let val: u64 = ::std::mem::transmute(val);
12667 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12668 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12669 9usize,
12670 1u8,
12671 val as u64,
12672 )
12673 }
12674 }
12675 #[inline]
12676 pub fn avx512_vl_support(&self) -> __u64 {
12677 unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u64) }
12678 }
12679 #[inline]
12680 pub fn set_avx512_vl_support(&mut self, val: __u64) {
12681 unsafe {
12682 let val: u64 = ::std::mem::transmute(val);
12683 self._bitfield_1.set(10usize, 1u8, val as u64)
12684 }
12685 }
12686 #[inline]
12687 pub unsafe fn avx512_vl_support_raw(this: *const Self) -> __u64 {
12688 unsafe {
12689 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12690 ::std::ptr::addr_of!((*this)._bitfield_1),
12691 10usize,
12692 1u8,
12693 ) as u64)
12694 }
12695 }
12696 #[inline]
12697 pub unsafe fn set_avx512_vl_support_raw(this: *mut Self, val: __u64) {
12698 unsafe {
12699 let val: u64 = ::std::mem::transmute(val);
12700 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12701 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12702 10usize,
12703 1u8,
12704 val as u64,
12705 )
12706 }
12707 }
12708 #[inline]
12709 pub fn xsave_comp_support(&self) -> __u64 {
12710 unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u64) }
12711 }
12712 #[inline]
12713 pub fn set_xsave_comp_support(&mut self, val: __u64) {
12714 unsafe {
12715 let val: u64 = ::std::mem::transmute(val);
12716 self._bitfield_1.set(11usize, 1u8, val as u64)
12717 }
12718 }
12719 #[inline]
12720 pub unsafe fn xsave_comp_support_raw(this: *const Self) -> __u64 {
12721 unsafe {
12722 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12723 ::std::ptr::addr_of!((*this)._bitfield_1),
12724 11usize,
12725 1u8,
12726 ) as u64)
12727 }
12728 }
12729 #[inline]
12730 pub unsafe fn set_xsave_comp_support_raw(this: *mut Self, val: __u64) {
12731 unsafe {
12732 let val: u64 = ::std::mem::transmute(val);
12733 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12734 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12735 11usize,
12736 1u8,
12737 val as u64,
12738 )
12739 }
12740 }
12741 #[inline]
12742 pub fn xsave_supervisor_support(&self) -> __u64 {
12743 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u64) }
12744 }
12745 #[inline]
12746 pub fn set_xsave_supervisor_support(&mut self, val: __u64) {
12747 unsafe {
12748 let val: u64 = ::std::mem::transmute(val);
12749 self._bitfield_1.set(12usize, 1u8, val as u64)
12750 }
12751 }
12752 #[inline]
12753 pub unsafe fn xsave_supervisor_support_raw(this: *const Self) -> __u64 {
12754 unsafe {
12755 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12756 ::std::ptr::addr_of!((*this)._bitfield_1),
12757 12usize,
12758 1u8,
12759 ) as u64)
12760 }
12761 }
12762 #[inline]
12763 pub unsafe fn set_xsave_supervisor_support_raw(this: *mut Self, val: __u64) {
12764 unsafe {
12765 let val: u64 = ::std::mem::transmute(val);
12766 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12767 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12768 12usize,
12769 1u8,
12770 val as u64,
12771 )
12772 }
12773 }
12774 #[inline]
12775 pub fn xcr1_support(&self) -> __u64 {
12776 unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u64) }
12777 }
12778 #[inline]
12779 pub fn set_xcr1_support(&mut self, val: __u64) {
12780 unsafe {
12781 let val: u64 = ::std::mem::transmute(val);
12782 self._bitfield_1.set(13usize, 1u8, val as u64)
12783 }
12784 }
12785 #[inline]
12786 pub unsafe fn xcr1_support_raw(this: *const Self) -> __u64 {
12787 unsafe {
12788 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12789 ::std::ptr::addr_of!((*this)._bitfield_1),
12790 13usize,
12791 1u8,
12792 ) as u64)
12793 }
12794 }
12795 #[inline]
12796 pub unsafe fn set_xcr1_support_raw(this: *mut Self, val: __u64) {
12797 unsafe {
12798 let val: u64 = ::std::mem::transmute(val);
12799 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12800 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12801 13usize,
12802 1u8,
12803 val as u64,
12804 )
12805 }
12806 }
12807 #[inline]
12808 pub fn avx512_bitalg_support(&self) -> __u64 {
12809 unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u64) }
12810 }
12811 #[inline]
12812 pub fn set_avx512_bitalg_support(&mut self, val: __u64) {
12813 unsafe {
12814 let val: u64 = ::std::mem::transmute(val);
12815 self._bitfield_1.set(14usize, 1u8, val as u64)
12816 }
12817 }
12818 #[inline]
12819 pub unsafe fn avx512_bitalg_support_raw(this: *const Self) -> __u64 {
12820 unsafe {
12821 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12822 ::std::ptr::addr_of!((*this)._bitfield_1),
12823 14usize,
12824 1u8,
12825 ) as u64)
12826 }
12827 }
12828 #[inline]
12829 pub unsafe fn set_avx512_bitalg_support_raw(this: *mut Self, val: __u64) {
12830 unsafe {
12831 let val: u64 = ::std::mem::transmute(val);
12832 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12833 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12834 14usize,
12835 1u8,
12836 val as u64,
12837 )
12838 }
12839 }
12840 #[inline]
12841 pub fn avx512_i_fma_support(&self) -> __u64 {
12842 unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u64) }
12843 }
12844 #[inline]
12845 pub fn set_avx512_i_fma_support(&mut self, val: __u64) {
12846 unsafe {
12847 let val: u64 = ::std::mem::transmute(val);
12848 self._bitfield_1.set(15usize, 1u8, val as u64)
12849 }
12850 }
12851 #[inline]
12852 pub unsafe fn avx512_i_fma_support_raw(this: *const Self) -> __u64 {
12853 unsafe {
12854 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12855 ::std::ptr::addr_of!((*this)._bitfield_1),
12856 15usize,
12857 1u8,
12858 ) as u64)
12859 }
12860 }
12861 #[inline]
12862 pub unsafe fn set_avx512_i_fma_support_raw(this: *mut Self, val: __u64) {
12863 unsafe {
12864 let val: u64 = ::std::mem::transmute(val);
12865 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12866 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12867 15usize,
12868 1u8,
12869 val as u64,
12870 )
12871 }
12872 }
12873 #[inline]
12874 pub fn avx512_v_bmi_support(&self) -> __u64 {
12875 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u64) }
12876 }
12877 #[inline]
12878 pub fn set_avx512_v_bmi_support(&mut self, val: __u64) {
12879 unsafe {
12880 let val: u64 = ::std::mem::transmute(val);
12881 self._bitfield_1.set(16usize, 1u8, val as u64)
12882 }
12883 }
12884 #[inline]
12885 pub unsafe fn avx512_v_bmi_support_raw(this: *const Self) -> __u64 {
12886 unsafe {
12887 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12888 ::std::ptr::addr_of!((*this)._bitfield_1),
12889 16usize,
12890 1u8,
12891 ) as u64)
12892 }
12893 }
12894 #[inline]
12895 pub unsafe fn set_avx512_v_bmi_support_raw(this: *mut Self, val: __u64) {
12896 unsafe {
12897 let val: u64 = ::std::mem::transmute(val);
12898 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12899 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12900 16usize,
12901 1u8,
12902 val as u64,
12903 )
12904 }
12905 }
12906 #[inline]
12907 pub fn avx512_v_bmi2_support(&self) -> __u64 {
12908 unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u64) }
12909 }
12910 #[inline]
12911 pub fn set_avx512_v_bmi2_support(&mut self, val: __u64) {
12912 unsafe {
12913 let val: u64 = ::std::mem::transmute(val);
12914 self._bitfield_1.set(17usize, 1u8, val as u64)
12915 }
12916 }
12917 #[inline]
12918 pub unsafe fn avx512_v_bmi2_support_raw(this: *const Self) -> __u64 {
12919 unsafe {
12920 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12921 ::std::ptr::addr_of!((*this)._bitfield_1),
12922 17usize,
12923 1u8,
12924 ) as u64)
12925 }
12926 }
12927 #[inline]
12928 pub unsafe fn set_avx512_v_bmi2_support_raw(this: *mut Self, val: __u64) {
12929 unsafe {
12930 let val: u64 = ::std::mem::transmute(val);
12931 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12932 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12933 17usize,
12934 1u8,
12935 val as u64,
12936 )
12937 }
12938 }
12939 #[inline]
12940 pub fn avx512_vnni_support(&self) -> __u64 {
12941 unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u64) }
12942 }
12943 #[inline]
12944 pub fn set_avx512_vnni_support(&mut self, val: __u64) {
12945 unsafe {
12946 let val: u64 = ::std::mem::transmute(val);
12947 self._bitfield_1.set(18usize, 1u8, val as u64)
12948 }
12949 }
12950 #[inline]
12951 pub unsafe fn avx512_vnni_support_raw(this: *const Self) -> __u64 {
12952 unsafe {
12953 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12954 ::std::ptr::addr_of!((*this)._bitfield_1),
12955 18usize,
12956 1u8,
12957 ) as u64)
12958 }
12959 }
12960 #[inline]
12961 pub unsafe fn set_avx512_vnni_support_raw(this: *mut Self, val: __u64) {
12962 unsafe {
12963 let val: u64 = ::std::mem::transmute(val);
12964 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12965 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12966 18usize,
12967 1u8,
12968 val as u64,
12969 )
12970 }
12971 }
12972 #[inline]
12973 pub fn gfni_support(&self) -> __u64 {
12974 unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u64) }
12975 }
12976 #[inline]
12977 pub fn set_gfni_support(&mut self, val: __u64) {
12978 unsafe {
12979 let val: u64 = ::std::mem::transmute(val);
12980 self._bitfield_1.set(19usize, 1u8, val as u64)
12981 }
12982 }
12983 #[inline]
12984 pub unsafe fn gfni_support_raw(this: *const Self) -> __u64 {
12985 unsafe {
12986 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
12987 ::std::ptr::addr_of!((*this)._bitfield_1),
12988 19usize,
12989 1u8,
12990 ) as u64)
12991 }
12992 }
12993 #[inline]
12994 pub unsafe fn set_gfni_support_raw(this: *mut Self, val: __u64) {
12995 unsafe {
12996 let val: u64 = ::std::mem::transmute(val);
12997 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
12998 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
12999 19usize,
13000 1u8,
13001 val as u64,
13002 )
13003 }
13004 }
13005 #[inline]
13006 pub fn vaes_support(&self) -> __u64 {
13007 unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u64) }
13008 }
13009 #[inline]
13010 pub fn set_vaes_support(&mut self, val: __u64) {
13011 unsafe {
13012 let val: u64 = ::std::mem::transmute(val);
13013 self._bitfield_1.set(20usize, 1u8, val as u64)
13014 }
13015 }
13016 #[inline]
13017 pub unsafe fn vaes_support_raw(this: *const Self) -> __u64 {
13018 unsafe {
13019 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13020 ::std::ptr::addr_of!((*this)._bitfield_1),
13021 20usize,
13022 1u8,
13023 ) as u64)
13024 }
13025 }
13026 #[inline]
13027 pub unsafe fn set_vaes_support_raw(this: *mut Self, val: __u64) {
13028 unsafe {
13029 let val: u64 = ::std::mem::transmute(val);
13030 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13031 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13032 20usize,
13033 1u8,
13034 val as u64,
13035 )
13036 }
13037 }
13038 #[inline]
13039 pub fn avx512_v_popcntdq_support(&self) -> __u64 {
13040 unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u64) }
13041 }
13042 #[inline]
13043 pub fn set_avx512_v_popcntdq_support(&mut self, val: __u64) {
13044 unsafe {
13045 let val: u64 = ::std::mem::transmute(val);
13046 self._bitfield_1.set(21usize, 1u8, val as u64)
13047 }
13048 }
13049 #[inline]
13050 pub unsafe fn avx512_v_popcntdq_support_raw(this: *const Self) -> __u64 {
13051 unsafe {
13052 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13053 ::std::ptr::addr_of!((*this)._bitfield_1),
13054 21usize,
13055 1u8,
13056 ) as u64)
13057 }
13058 }
13059 #[inline]
13060 pub unsafe fn set_avx512_v_popcntdq_support_raw(this: *mut Self, val: __u64) {
13061 unsafe {
13062 let val: u64 = ::std::mem::transmute(val);
13063 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13064 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13065 21usize,
13066 1u8,
13067 val as u64,
13068 )
13069 }
13070 }
13071 #[inline]
13072 pub fn vpclmulqdq_support(&self) -> __u64 {
13073 unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u64) }
13074 }
13075 #[inline]
13076 pub fn set_vpclmulqdq_support(&mut self, val: __u64) {
13077 unsafe {
13078 let val: u64 = ::std::mem::transmute(val);
13079 self._bitfield_1.set(22usize, 1u8, val as u64)
13080 }
13081 }
13082 #[inline]
13083 pub unsafe fn vpclmulqdq_support_raw(this: *const Self) -> __u64 {
13084 unsafe {
13085 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13086 ::std::ptr::addr_of!((*this)._bitfield_1),
13087 22usize,
13088 1u8,
13089 ) as u64)
13090 }
13091 }
13092 #[inline]
13093 pub unsafe fn set_vpclmulqdq_support_raw(this: *mut Self, val: __u64) {
13094 unsafe {
13095 let val: u64 = ::std::mem::transmute(val);
13096 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13097 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13098 22usize,
13099 1u8,
13100 val as u64,
13101 )
13102 }
13103 }
13104 #[inline]
13105 pub fn avx512_bf16_support(&self) -> __u64 {
13106 unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u64) }
13107 }
13108 #[inline]
13109 pub fn set_avx512_bf16_support(&mut self, val: __u64) {
13110 unsafe {
13111 let val: u64 = ::std::mem::transmute(val);
13112 self._bitfield_1.set(23usize, 1u8, val as u64)
13113 }
13114 }
13115 #[inline]
13116 pub unsafe fn avx512_bf16_support_raw(this: *const Self) -> __u64 {
13117 unsafe {
13118 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13119 ::std::ptr::addr_of!((*this)._bitfield_1),
13120 23usize,
13121 1u8,
13122 ) as u64)
13123 }
13124 }
13125 #[inline]
13126 pub unsafe fn set_avx512_bf16_support_raw(this: *mut Self, val: __u64) {
13127 unsafe {
13128 let val: u64 = ::std::mem::transmute(val);
13129 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13130 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13131 23usize,
13132 1u8,
13133 val as u64,
13134 )
13135 }
13136 }
13137 #[inline]
13138 pub fn avx512_vp2_intersect_support(&self) -> __u64 {
13139 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 1u8) as u64) }
13140 }
13141 #[inline]
13142 pub fn set_avx512_vp2_intersect_support(&mut self, val: __u64) {
13143 unsafe {
13144 let val: u64 = ::std::mem::transmute(val);
13145 self._bitfield_1.set(24usize, 1u8, val as u64)
13146 }
13147 }
13148 #[inline]
13149 pub unsafe fn avx512_vp2_intersect_support_raw(this: *const Self) -> __u64 {
13150 unsafe {
13151 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13152 ::std::ptr::addr_of!((*this)._bitfield_1),
13153 24usize,
13154 1u8,
13155 ) as u64)
13156 }
13157 }
13158 #[inline]
13159 pub unsafe fn set_avx512_vp2_intersect_support_raw(this: *mut Self, val: __u64) {
13160 unsafe {
13161 let val: u64 = ::std::mem::transmute(val);
13162 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13163 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13164 24usize,
13165 1u8,
13166 val as u64,
13167 )
13168 }
13169 }
13170 #[inline]
13171 pub fn avx512_fp16_support(&self) -> __u64 {
13172 unsafe { ::std::mem::transmute(self._bitfield_1.get(25usize, 1u8) as u64) }
13173 }
13174 #[inline]
13175 pub fn set_avx512_fp16_support(&mut self, val: __u64) {
13176 unsafe {
13177 let val: u64 = ::std::mem::transmute(val);
13178 self._bitfield_1.set(25usize, 1u8, val as u64)
13179 }
13180 }
13181 #[inline]
13182 pub unsafe fn avx512_fp16_support_raw(this: *const Self) -> __u64 {
13183 unsafe {
13184 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13185 ::std::ptr::addr_of!((*this)._bitfield_1),
13186 25usize,
13187 1u8,
13188 ) as u64)
13189 }
13190 }
13191 #[inline]
13192 pub unsafe fn set_avx512_fp16_support_raw(this: *mut Self, val: __u64) {
13193 unsafe {
13194 let val: u64 = ::std::mem::transmute(val);
13195 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13196 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13197 25usize,
13198 1u8,
13199 val as u64,
13200 )
13201 }
13202 }
13203 #[inline]
13204 pub fn xfd_support(&self) -> __u64 {
13205 unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 1u8) as u64) }
13206 }
13207 #[inline]
13208 pub fn set_xfd_support(&mut self, val: __u64) {
13209 unsafe {
13210 let val: u64 = ::std::mem::transmute(val);
13211 self._bitfield_1.set(26usize, 1u8, val as u64)
13212 }
13213 }
13214 #[inline]
13215 pub unsafe fn xfd_support_raw(this: *const Self) -> __u64 {
13216 unsafe {
13217 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13218 ::std::ptr::addr_of!((*this)._bitfield_1),
13219 26usize,
13220 1u8,
13221 ) as u64)
13222 }
13223 }
13224 #[inline]
13225 pub unsafe fn set_xfd_support_raw(this: *mut Self, val: __u64) {
13226 unsafe {
13227 let val: u64 = ::std::mem::transmute(val);
13228 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13229 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13230 26usize,
13231 1u8,
13232 val as u64,
13233 )
13234 }
13235 }
13236 #[inline]
13237 pub fn amx_tile_support(&self) -> __u64 {
13238 unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u64) }
13239 }
13240 #[inline]
13241 pub fn set_amx_tile_support(&mut self, val: __u64) {
13242 unsafe {
13243 let val: u64 = ::std::mem::transmute(val);
13244 self._bitfield_1.set(27usize, 1u8, val as u64)
13245 }
13246 }
13247 #[inline]
13248 pub unsafe fn amx_tile_support_raw(this: *const Self) -> __u64 {
13249 unsafe {
13250 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13251 ::std::ptr::addr_of!((*this)._bitfield_1),
13252 27usize,
13253 1u8,
13254 ) as u64)
13255 }
13256 }
13257 #[inline]
13258 pub unsafe fn set_amx_tile_support_raw(this: *mut Self, val: __u64) {
13259 unsafe {
13260 let val: u64 = ::std::mem::transmute(val);
13261 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13262 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13263 27usize,
13264 1u8,
13265 val as u64,
13266 )
13267 }
13268 }
13269 #[inline]
13270 pub fn amx_bf16_support(&self) -> __u64 {
13271 unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u64) }
13272 }
13273 #[inline]
13274 pub fn set_amx_bf16_support(&mut self, val: __u64) {
13275 unsafe {
13276 let val: u64 = ::std::mem::transmute(val);
13277 self._bitfield_1.set(28usize, 1u8, val as u64)
13278 }
13279 }
13280 #[inline]
13281 pub unsafe fn amx_bf16_support_raw(this: *const Self) -> __u64 {
13282 unsafe {
13283 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13284 ::std::ptr::addr_of!((*this)._bitfield_1),
13285 28usize,
13286 1u8,
13287 ) as u64)
13288 }
13289 }
13290 #[inline]
13291 pub unsafe fn set_amx_bf16_support_raw(this: *mut Self, val: __u64) {
13292 unsafe {
13293 let val: u64 = ::std::mem::transmute(val);
13294 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13295 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13296 28usize,
13297 1u8,
13298 val as u64,
13299 )
13300 }
13301 }
13302 #[inline]
13303 pub fn amx_int8_support(&self) -> __u64 {
13304 unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u64) }
13305 }
13306 #[inline]
13307 pub fn set_amx_int8_support(&mut self, val: __u64) {
13308 unsafe {
13309 let val: u64 = ::std::mem::transmute(val);
13310 self._bitfield_1.set(29usize, 1u8, val as u64)
13311 }
13312 }
13313 #[inline]
13314 pub unsafe fn amx_int8_support_raw(this: *const Self) -> __u64 {
13315 unsafe {
13316 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13317 ::std::ptr::addr_of!((*this)._bitfield_1),
13318 29usize,
13319 1u8,
13320 ) as u64)
13321 }
13322 }
13323 #[inline]
13324 pub unsafe fn set_amx_int8_support_raw(this: *mut Self, val: __u64) {
13325 unsafe {
13326 let val: u64 = ::std::mem::transmute(val);
13327 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13328 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13329 29usize,
13330 1u8,
13331 val as u64,
13332 )
13333 }
13334 }
13335 #[inline]
13336 pub fn avx_vnni_support(&self) -> __u64 {
13337 unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u64) }
13338 }
13339 #[inline]
13340 pub fn set_avx_vnni_support(&mut self, val: __u64) {
13341 unsafe {
13342 let val: u64 = ::std::mem::transmute(val);
13343 self._bitfield_1.set(30usize, 1u8, val as u64)
13344 }
13345 }
13346 #[inline]
13347 pub unsafe fn avx_vnni_support_raw(this: *const Self) -> __u64 {
13348 unsafe {
13349 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13350 ::std::ptr::addr_of!((*this)._bitfield_1),
13351 30usize,
13352 1u8,
13353 ) as u64)
13354 }
13355 }
13356 #[inline]
13357 pub unsafe fn set_avx_vnni_support_raw(this: *mut Self, val: __u64) {
13358 unsafe {
13359 let val: u64 = ::std::mem::transmute(val);
13360 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13361 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13362 30usize,
13363 1u8,
13364 val as u64,
13365 )
13366 }
13367 }
13368 #[inline]
13369 pub fn avx_ifma_support(&self) -> __u64 {
13370 unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u64) }
13371 }
13372 #[inline]
13373 pub fn set_avx_ifma_support(&mut self, val: __u64) {
13374 unsafe {
13375 let val: u64 = ::std::mem::transmute(val);
13376 self._bitfield_1.set(31usize, 1u8, val as u64)
13377 }
13378 }
13379 #[inline]
13380 pub unsafe fn avx_ifma_support_raw(this: *const Self) -> __u64 {
13381 unsafe {
13382 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13383 ::std::ptr::addr_of!((*this)._bitfield_1),
13384 31usize,
13385 1u8,
13386 ) as u64)
13387 }
13388 }
13389 #[inline]
13390 pub unsafe fn set_avx_ifma_support_raw(this: *mut Self, val: __u64) {
13391 unsafe {
13392 let val: u64 = ::std::mem::transmute(val);
13393 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13394 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13395 31usize,
13396 1u8,
13397 val as u64,
13398 )
13399 }
13400 }
13401 #[inline]
13402 pub fn avx_ne_convert_support(&self) -> __u64 {
13403 unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u64) }
13404 }
13405 #[inline]
13406 pub fn set_avx_ne_convert_support(&mut self, val: __u64) {
13407 unsafe {
13408 let val: u64 = ::std::mem::transmute(val);
13409 self._bitfield_1.set(32usize, 1u8, val as u64)
13410 }
13411 }
13412 #[inline]
13413 pub unsafe fn avx_ne_convert_support_raw(this: *const Self) -> __u64 {
13414 unsafe {
13415 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13416 ::std::ptr::addr_of!((*this)._bitfield_1),
13417 32usize,
13418 1u8,
13419 ) as u64)
13420 }
13421 }
13422 #[inline]
13423 pub unsafe fn set_avx_ne_convert_support_raw(this: *mut Self, val: __u64) {
13424 unsafe {
13425 let val: u64 = ::std::mem::transmute(val);
13426 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13427 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13428 32usize,
13429 1u8,
13430 val as u64,
13431 )
13432 }
13433 }
13434 #[inline]
13435 pub fn avx_vnni_int8_support(&self) -> __u64 {
13436 unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u64) }
13437 }
13438 #[inline]
13439 pub fn set_avx_vnni_int8_support(&mut self, val: __u64) {
13440 unsafe {
13441 let val: u64 = ::std::mem::transmute(val);
13442 self._bitfield_1.set(33usize, 1u8, val as u64)
13443 }
13444 }
13445 #[inline]
13446 pub unsafe fn avx_vnni_int8_support_raw(this: *const Self) -> __u64 {
13447 unsafe {
13448 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13449 ::std::ptr::addr_of!((*this)._bitfield_1),
13450 33usize,
13451 1u8,
13452 ) as u64)
13453 }
13454 }
13455 #[inline]
13456 pub unsafe fn set_avx_vnni_int8_support_raw(this: *mut Self, val: __u64) {
13457 unsafe {
13458 let val: u64 = ::std::mem::transmute(val);
13459 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13460 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13461 33usize,
13462 1u8,
13463 val as u64,
13464 )
13465 }
13466 }
13467 #[inline]
13468 pub fn avx_vnni_int16_support(&self) -> __u64 {
13469 unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u64) }
13470 }
13471 #[inline]
13472 pub fn set_avx_vnni_int16_support(&mut self, val: __u64) {
13473 unsafe {
13474 let val: u64 = ::std::mem::transmute(val);
13475 self._bitfield_1.set(34usize, 1u8, val as u64)
13476 }
13477 }
13478 #[inline]
13479 pub unsafe fn avx_vnni_int16_support_raw(this: *const Self) -> __u64 {
13480 unsafe {
13481 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13482 ::std::ptr::addr_of!((*this)._bitfield_1),
13483 34usize,
13484 1u8,
13485 ) as u64)
13486 }
13487 }
13488 #[inline]
13489 pub unsafe fn set_avx_vnni_int16_support_raw(this: *mut Self, val: __u64) {
13490 unsafe {
13491 let val: u64 = ::std::mem::transmute(val);
13492 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13493 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13494 34usize,
13495 1u8,
13496 val as u64,
13497 )
13498 }
13499 }
13500 #[inline]
13501 pub fn avx10_1_256_support(&self) -> __u64 {
13502 unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u64) }
13503 }
13504 #[inline]
13505 pub fn set_avx10_1_256_support(&mut self, val: __u64) {
13506 unsafe {
13507 let val: u64 = ::std::mem::transmute(val);
13508 self._bitfield_1.set(35usize, 1u8, val as u64)
13509 }
13510 }
13511 #[inline]
13512 pub unsafe fn avx10_1_256_support_raw(this: *const Self) -> __u64 {
13513 unsafe {
13514 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13515 ::std::ptr::addr_of!((*this)._bitfield_1),
13516 35usize,
13517 1u8,
13518 ) as u64)
13519 }
13520 }
13521 #[inline]
13522 pub unsafe fn set_avx10_1_256_support_raw(this: *mut Self, val: __u64) {
13523 unsafe {
13524 let val: u64 = ::std::mem::transmute(val);
13525 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13526 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13527 35usize,
13528 1u8,
13529 val as u64,
13530 )
13531 }
13532 }
13533 #[inline]
13534 pub fn avx10_1_512_support(&self) -> __u64 {
13535 unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u64) }
13536 }
13537 #[inline]
13538 pub fn set_avx10_1_512_support(&mut self, val: __u64) {
13539 unsafe {
13540 let val: u64 = ::std::mem::transmute(val);
13541 self._bitfield_1.set(36usize, 1u8, val as u64)
13542 }
13543 }
13544 #[inline]
13545 pub unsafe fn avx10_1_512_support_raw(this: *const Self) -> __u64 {
13546 unsafe {
13547 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13548 ::std::ptr::addr_of!((*this)._bitfield_1),
13549 36usize,
13550 1u8,
13551 ) as u64)
13552 }
13553 }
13554 #[inline]
13555 pub unsafe fn set_avx10_1_512_support_raw(this: *mut Self, val: __u64) {
13556 unsafe {
13557 let val: u64 = ::std::mem::transmute(val);
13558 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13559 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13560 36usize,
13561 1u8,
13562 val as u64,
13563 )
13564 }
13565 }
13566 #[inline]
13567 pub fn amx_fp16_support(&self) -> __u64 {
13568 unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u64) }
13569 }
13570 #[inline]
13571 pub fn set_amx_fp16_support(&mut self, val: __u64) {
13572 unsafe {
13573 let val: u64 = ::std::mem::transmute(val);
13574 self._bitfield_1.set(37usize, 1u8, val as u64)
13575 }
13576 }
13577 #[inline]
13578 pub unsafe fn amx_fp16_support_raw(this: *const Self) -> __u64 {
13579 unsafe {
13580 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13581 ::std::ptr::addr_of!((*this)._bitfield_1),
13582 37usize,
13583 1u8,
13584 ) as u64)
13585 }
13586 }
13587 #[inline]
13588 pub unsafe fn set_amx_fp16_support_raw(this: *mut Self, val: __u64) {
13589 unsafe {
13590 let val: u64 = ::std::mem::transmute(val);
13591 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13592 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13593 37usize,
13594 1u8,
13595 val as u64,
13596 )
13597 }
13598 }
13599 #[inline]
13600 pub fn reserved1(&self) -> __u64 {
13601 unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 26u8) as u64) }
13602 }
13603 #[inline]
13604 pub fn set_reserved1(&mut self, val: __u64) {
13605 unsafe {
13606 let val: u64 = ::std::mem::transmute(val);
13607 self._bitfield_1.set(38usize, 26u8, val as u64)
13608 }
13609 }
13610 #[inline]
13611 pub unsafe fn reserved1_raw(this: *const Self) -> __u64 {
13612 unsafe {
13613 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
13614 ::std::ptr::addr_of!((*this)._bitfield_1),
13615 38usize,
13616 26u8,
13617 ) as u64)
13618 }
13619 }
13620 #[inline]
13621 pub unsafe fn set_reserved1_raw(this: *mut Self, val: __u64) {
13622 unsafe {
13623 let val: u64 = ::std::mem::transmute(val);
13624 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
13625 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13626 38usize,
13627 26u8,
13628 val as u64,
13629 )
13630 }
13631 }
13632 #[inline]
13633 pub fn new_bitfield_1(
13634 xsave_support: __u64,
13635 xsaveopt_support: __u64,
13636 avx_support: __u64,
13637 avx2_support: __u64,
13638 fma_support: __u64,
13639 mpx_support: __u64,
13640 avx512_support: __u64,
13641 avx512_dq_support: __u64,
13642 avx512_cd_support: __u64,
13643 avx512_bw_support: __u64,
13644 avx512_vl_support: __u64,
13645 xsave_comp_support: __u64,
13646 xsave_supervisor_support: __u64,
13647 xcr1_support: __u64,
13648 avx512_bitalg_support: __u64,
13649 avx512_i_fma_support: __u64,
13650 avx512_v_bmi_support: __u64,
13651 avx512_v_bmi2_support: __u64,
13652 avx512_vnni_support: __u64,
13653 gfni_support: __u64,
13654 vaes_support: __u64,
13655 avx512_v_popcntdq_support: __u64,
13656 vpclmulqdq_support: __u64,
13657 avx512_bf16_support: __u64,
13658 avx512_vp2_intersect_support: __u64,
13659 avx512_fp16_support: __u64,
13660 xfd_support: __u64,
13661 amx_tile_support: __u64,
13662 amx_bf16_support: __u64,
13663 amx_int8_support: __u64,
13664 avx_vnni_support: __u64,
13665 avx_ifma_support: __u64,
13666 avx_ne_convert_support: __u64,
13667 avx_vnni_int8_support: __u64,
13668 avx_vnni_int16_support: __u64,
13669 avx10_1_256_support: __u64,
13670 avx10_1_512_support: __u64,
13671 amx_fp16_support: __u64,
13672 reserved1: __u64,
13673 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
13674 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
13675 __bindgen_bitfield_unit.set(0usize, 1u8, {
13676 let xsave_support: u64 = unsafe { ::std::mem::transmute(xsave_support) };
13677 xsave_support as u64
13678 });
13679 __bindgen_bitfield_unit.set(1usize, 1u8, {
13680 let xsaveopt_support: u64 = unsafe { ::std::mem::transmute(xsaveopt_support) };
13681 xsaveopt_support as u64
13682 });
13683 __bindgen_bitfield_unit.set(2usize, 1u8, {
13684 let avx_support: u64 = unsafe { ::std::mem::transmute(avx_support) };
13685 avx_support as u64
13686 });
13687 __bindgen_bitfield_unit.set(3usize, 1u8, {
13688 let avx2_support: u64 = unsafe { ::std::mem::transmute(avx2_support) };
13689 avx2_support as u64
13690 });
13691 __bindgen_bitfield_unit.set(4usize, 1u8, {
13692 let fma_support: u64 = unsafe { ::std::mem::transmute(fma_support) };
13693 fma_support as u64
13694 });
13695 __bindgen_bitfield_unit.set(5usize, 1u8, {
13696 let mpx_support: u64 = unsafe { ::std::mem::transmute(mpx_support) };
13697 mpx_support as u64
13698 });
13699 __bindgen_bitfield_unit.set(6usize, 1u8, {
13700 let avx512_support: u64 = unsafe { ::std::mem::transmute(avx512_support) };
13701 avx512_support as u64
13702 });
13703 __bindgen_bitfield_unit.set(7usize, 1u8, {
13704 let avx512_dq_support: u64 = unsafe { ::std::mem::transmute(avx512_dq_support) };
13705 avx512_dq_support as u64
13706 });
13707 __bindgen_bitfield_unit.set(8usize, 1u8, {
13708 let avx512_cd_support: u64 = unsafe { ::std::mem::transmute(avx512_cd_support) };
13709 avx512_cd_support as u64
13710 });
13711 __bindgen_bitfield_unit.set(9usize, 1u8, {
13712 let avx512_bw_support: u64 = unsafe { ::std::mem::transmute(avx512_bw_support) };
13713 avx512_bw_support as u64
13714 });
13715 __bindgen_bitfield_unit.set(10usize, 1u8, {
13716 let avx512_vl_support: u64 = unsafe { ::std::mem::transmute(avx512_vl_support) };
13717 avx512_vl_support as u64
13718 });
13719 __bindgen_bitfield_unit.set(11usize, 1u8, {
13720 let xsave_comp_support: u64 = unsafe { ::std::mem::transmute(xsave_comp_support) };
13721 xsave_comp_support as u64
13722 });
13723 __bindgen_bitfield_unit.set(12usize, 1u8, {
13724 let xsave_supervisor_support: u64 =
13725 unsafe { ::std::mem::transmute(xsave_supervisor_support) };
13726 xsave_supervisor_support as u64
13727 });
13728 __bindgen_bitfield_unit.set(13usize, 1u8, {
13729 let xcr1_support: u64 = unsafe { ::std::mem::transmute(xcr1_support) };
13730 xcr1_support as u64
13731 });
13732 __bindgen_bitfield_unit.set(14usize, 1u8, {
13733 let avx512_bitalg_support: u64 =
13734 unsafe { ::std::mem::transmute(avx512_bitalg_support) };
13735 avx512_bitalg_support as u64
13736 });
13737 __bindgen_bitfield_unit.set(15usize, 1u8, {
13738 let avx512_i_fma_support: u64 = unsafe { ::std::mem::transmute(avx512_i_fma_support) };
13739 avx512_i_fma_support as u64
13740 });
13741 __bindgen_bitfield_unit.set(16usize, 1u8, {
13742 let avx512_v_bmi_support: u64 = unsafe { ::std::mem::transmute(avx512_v_bmi_support) };
13743 avx512_v_bmi_support as u64
13744 });
13745 __bindgen_bitfield_unit.set(17usize, 1u8, {
13746 let avx512_v_bmi2_support: u64 =
13747 unsafe { ::std::mem::transmute(avx512_v_bmi2_support) };
13748 avx512_v_bmi2_support as u64
13749 });
13750 __bindgen_bitfield_unit.set(18usize, 1u8, {
13751 let avx512_vnni_support: u64 = unsafe { ::std::mem::transmute(avx512_vnni_support) };
13752 avx512_vnni_support as u64
13753 });
13754 __bindgen_bitfield_unit.set(19usize, 1u8, {
13755 let gfni_support: u64 = unsafe { ::std::mem::transmute(gfni_support) };
13756 gfni_support as u64
13757 });
13758 __bindgen_bitfield_unit.set(20usize, 1u8, {
13759 let vaes_support: u64 = unsafe { ::std::mem::transmute(vaes_support) };
13760 vaes_support as u64
13761 });
13762 __bindgen_bitfield_unit.set(21usize, 1u8, {
13763 let avx512_v_popcntdq_support: u64 =
13764 unsafe { ::std::mem::transmute(avx512_v_popcntdq_support) };
13765 avx512_v_popcntdq_support as u64
13766 });
13767 __bindgen_bitfield_unit.set(22usize, 1u8, {
13768 let vpclmulqdq_support: u64 = unsafe { ::std::mem::transmute(vpclmulqdq_support) };
13769 vpclmulqdq_support as u64
13770 });
13771 __bindgen_bitfield_unit.set(23usize, 1u8, {
13772 let avx512_bf16_support: u64 = unsafe { ::std::mem::transmute(avx512_bf16_support) };
13773 avx512_bf16_support as u64
13774 });
13775 __bindgen_bitfield_unit.set(24usize, 1u8, {
13776 let avx512_vp2_intersect_support: u64 =
13777 unsafe { ::std::mem::transmute(avx512_vp2_intersect_support) };
13778 avx512_vp2_intersect_support as u64
13779 });
13780 __bindgen_bitfield_unit.set(25usize, 1u8, {
13781 let avx512_fp16_support: u64 = unsafe { ::std::mem::transmute(avx512_fp16_support) };
13782 avx512_fp16_support as u64
13783 });
13784 __bindgen_bitfield_unit.set(26usize, 1u8, {
13785 let xfd_support: u64 = unsafe { ::std::mem::transmute(xfd_support) };
13786 xfd_support as u64
13787 });
13788 __bindgen_bitfield_unit.set(27usize, 1u8, {
13789 let amx_tile_support: u64 = unsafe { ::std::mem::transmute(amx_tile_support) };
13790 amx_tile_support as u64
13791 });
13792 __bindgen_bitfield_unit.set(28usize, 1u8, {
13793 let amx_bf16_support: u64 = unsafe { ::std::mem::transmute(amx_bf16_support) };
13794 amx_bf16_support as u64
13795 });
13796 __bindgen_bitfield_unit.set(29usize, 1u8, {
13797 let amx_int8_support: u64 = unsafe { ::std::mem::transmute(amx_int8_support) };
13798 amx_int8_support as u64
13799 });
13800 __bindgen_bitfield_unit.set(30usize, 1u8, {
13801 let avx_vnni_support: u64 = unsafe { ::std::mem::transmute(avx_vnni_support) };
13802 avx_vnni_support as u64
13803 });
13804 __bindgen_bitfield_unit.set(31usize, 1u8, {
13805 let avx_ifma_support: u64 = unsafe { ::std::mem::transmute(avx_ifma_support) };
13806 avx_ifma_support as u64
13807 });
13808 __bindgen_bitfield_unit.set(32usize, 1u8, {
13809 let avx_ne_convert_support: u64 =
13810 unsafe { ::std::mem::transmute(avx_ne_convert_support) };
13811 avx_ne_convert_support as u64
13812 });
13813 __bindgen_bitfield_unit.set(33usize, 1u8, {
13814 let avx_vnni_int8_support: u64 =
13815 unsafe { ::std::mem::transmute(avx_vnni_int8_support) };
13816 avx_vnni_int8_support as u64
13817 });
13818 __bindgen_bitfield_unit.set(34usize, 1u8, {
13819 let avx_vnni_int16_support: u64 =
13820 unsafe { ::std::mem::transmute(avx_vnni_int16_support) };
13821 avx_vnni_int16_support as u64
13822 });
13823 __bindgen_bitfield_unit.set(35usize, 1u8, {
13824 let avx10_1_256_support: u64 = unsafe { ::std::mem::transmute(avx10_1_256_support) };
13825 avx10_1_256_support as u64
13826 });
13827 __bindgen_bitfield_unit.set(36usize, 1u8, {
13828 let avx10_1_512_support: u64 = unsafe { ::std::mem::transmute(avx10_1_512_support) };
13829 avx10_1_512_support as u64
13830 });
13831 __bindgen_bitfield_unit.set(37usize, 1u8, {
13832 let amx_fp16_support: u64 = unsafe { ::std::mem::transmute(amx_fp16_support) };
13833 amx_fp16_support as u64
13834 });
13835 __bindgen_bitfield_unit.set(38usize, 26u8, {
13836 let reserved1: u64 = unsafe { ::std::mem::transmute(reserved1) };
13837 reserved1 as u64
13838 });
13839 __bindgen_bitfield_unit
13840 }
13841}
13842#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13843const _: () = {
13844 ["Size of hv_partition_processor_xsave_features"]
13845 [::std::mem::size_of::<hv_partition_processor_xsave_features>() - 8usize];
13846 ["Alignment of hv_partition_processor_xsave_features"]
13847 [::std::mem::align_of::<hv_partition_processor_xsave_features>() - 8usize];
13848 ["Offset of field: hv_partition_processor_xsave_features::as_uint64"]
13849 [::std::mem::offset_of!(hv_partition_processor_xsave_features, as_uint64) - 0usize];
13850};
13851impl Default for hv_partition_processor_xsave_features {
13852 fn default() -> Self {
13853 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
13854 unsafe {
13855 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
13856 s.assume_init()
13857 }
13858 }
13859}
13860#[repr(C)]
13861#[derive(Copy, Clone)]
13862pub union hv_partition_processor_features {
13863 pub as_uint64: [__u64; 2usize],
13864 pub __bindgen_anon_1: hv_partition_processor_features__bindgen_ty_1,
13865}
13866#[repr(C, packed)]
13867#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
13868pub struct hv_partition_processor_features__bindgen_ty_1 {
13869 pub _bitfield_align_1: [u8; 0],
13870 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 16usize]>,
13871}
13872#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13873const _: () = {
13874 ["Size of hv_partition_processor_features__bindgen_ty_1"]
13875 [::std::mem::size_of::<hv_partition_processor_features__bindgen_ty_1>() - 16usize];
13876 ["Alignment of hv_partition_processor_features__bindgen_ty_1"]
13877 [::std::mem::align_of::<hv_partition_processor_features__bindgen_ty_1>() - 1usize];
13878};
13879impl hv_partition_processor_features__bindgen_ty_1 {
13880 #[inline]
13881 pub fn asid16(&self) -> __u64 {
13882 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) }
13883 }
13884 #[inline]
13885 pub fn set_asid16(&mut self, val: __u64) {
13886 unsafe {
13887 let val: u64 = ::std::mem::transmute(val);
13888 self._bitfield_1.set(0usize, 1u8, val as u64)
13889 }
13890 }
13891 #[inline]
13892 pub unsafe fn asid16_raw(this: *const Self) -> __u64 {
13893 unsafe {
13894 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
13895 ::std::ptr::addr_of!((*this)._bitfield_1),
13896 0usize,
13897 1u8,
13898 ) as u64)
13899 }
13900 }
13901 #[inline]
13902 pub unsafe fn set_asid16_raw(this: *mut Self, val: __u64) {
13903 unsafe {
13904 let val: u64 = ::std::mem::transmute(val);
13905 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
13906 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13907 0usize,
13908 1u8,
13909 val as u64,
13910 )
13911 }
13912 }
13913 #[inline]
13914 pub fn t_gran16(&self) -> __u64 {
13915 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) }
13916 }
13917 #[inline]
13918 pub fn set_t_gran16(&mut self, val: __u64) {
13919 unsafe {
13920 let val: u64 = ::std::mem::transmute(val);
13921 self._bitfield_1.set(1usize, 1u8, val as u64)
13922 }
13923 }
13924 #[inline]
13925 pub unsafe fn t_gran16_raw(this: *const Self) -> __u64 {
13926 unsafe {
13927 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
13928 ::std::ptr::addr_of!((*this)._bitfield_1),
13929 1usize,
13930 1u8,
13931 ) as u64)
13932 }
13933 }
13934 #[inline]
13935 pub unsafe fn set_t_gran16_raw(this: *mut Self, val: __u64) {
13936 unsafe {
13937 let val: u64 = ::std::mem::transmute(val);
13938 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
13939 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13940 1usize,
13941 1u8,
13942 val as u64,
13943 )
13944 }
13945 }
13946 #[inline]
13947 pub fn t_gran64(&self) -> __u64 {
13948 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) }
13949 }
13950 #[inline]
13951 pub fn set_t_gran64(&mut self, val: __u64) {
13952 unsafe {
13953 let val: u64 = ::std::mem::transmute(val);
13954 self._bitfield_1.set(2usize, 1u8, val as u64)
13955 }
13956 }
13957 #[inline]
13958 pub unsafe fn t_gran64_raw(this: *const Self) -> __u64 {
13959 unsafe {
13960 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
13961 ::std::ptr::addr_of!((*this)._bitfield_1),
13962 2usize,
13963 1u8,
13964 ) as u64)
13965 }
13966 }
13967 #[inline]
13968 pub unsafe fn set_t_gran64_raw(this: *mut Self, val: __u64) {
13969 unsafe {
13970 let val: u64 = ::std::mem::transmute(val);
13971 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
13972 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
13973 2usize,
13974 1u8,
13975 val as u64,
13976 )
13977 }
13978 }
13979 #[inline]
13980 pub fn haf(&self) -> __u64 {
13981 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) }
13982 }
13983 #[inline]
13984 pub fn set_haf(&mut self, val: __u64) {
13985 unsafe {
13986 let val: u64 = ::std::mem::transmute(val);
13987 self._bitfield_1.set(3usize, 1u8, val as u64)
13988 }
13989 }
13990 #[inline]
13991 pub unsafe fn haf_raw(this: *const Self) -> __u64 {
13992 unsafe {
13993 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
13994 ::std::ptr::addr_of!((*this)._bitfield_1),
13995 3usize,
13996 1u8,
13997 ) as u64)
13998 }
13999 }
14000 #[inline]
14001 pub unsafe fn set_haf_raw(this: *mut Self, val: __u64) {
14002 unsafe {
14003 let val: u64 = ::std::mem::transmute(val);
14004 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14005 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14006 3usize,
14007 1u8,
14008 val as u64,
14009 )
14010 }
14011 }
14012 #[inline]
14013 pub fn hdbs(&self) -> __u64 {
14014 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u64) }
14015 }
14016 #[inline]
14017 pub fn set_hdbs(&mut self, val: __u64) {
14018 unsafe {
14019 let val: u64 = ::std::mem::transmute(val);
14020 self._bitfield_1.set(4usize, 1u8, val as u64)
14021 }
14022 }
14023 #[inline]
14024 pub unsafe fn hdbs_raw(this: *const Self) -> __u64 {
14025 unsafe {
14026 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14027 ::std::ptr::addr_of!((*this)._bitfield_1),
14028 4usize,
14029 1u8,
14030 ) as u64)
14031 }
14032 }
14033 #[inline]
14034 pub unsafe fn set_hdbs_raw(this: *mut Self, val: __u64) {
14035 unsafe {
14036 let val: u64 = ::std::mem::transmute(val);
14037 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14038 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14039 4usize,
14040 1u8,
14041 val as u64,
14042 )
14043 }
14044 }
14045 #[inline]
14046 pub fn pan(&self) -> __u64 {
14047 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) }
14048 }
14049 #[inline]
14050 pub fn set_pan(&mut self, val: __u64) {
14051 unsafe {
14052 let val: u64 = ::std::mem::transmute(val);
14053 self._bitfield_1.set(5usize, 1u8, val as u64)
14054 }
14055 }
14056 #[inline]
14057 pub unsafe fn pan_raw(this: *const Self) -> __u64 {
14058 unsafe {
14059 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14060 ::std::ptr::addr_of!((*this)._bitfield_1),
14061 5usize,
14062 1u8,
14063 ) as u64)
14064 }
14065 }
14066 #[inline]
14067 pub unsafe fn set_pan_raw(this: *mut Self, val: __u64) {
14068 unsafe {
14069 let val: u64 = ::std::mem::transmute(val);
14070 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14071 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14072 5usize,
14073 1u8,
14074 val as u64,
14075 )
14076 }
14077 }
14078 #[inline]
14079 pub fn at_s1e1(&self) -> __u64 {
14080 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u64) }
14081 }
14082 #[inline]
14083 pub fn set_at_s1e1(&mut self, val: __u64) {
14084 unsafe {
14085 let val: u64 = ::std::mem::transmute(val);
14086 self._bitfield_1.set(6usize, 1u8, val as u64)
14087 }
14088 }
14089 #[inline]
14090 pub unsafe fn at_s1e1_raw(this: *const Self) -> __u64 {
14091 unsafe {
14092 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14093 ::std::ptr::addr_of!((*this)._bitfield_1),
14094 6usize,
14095 1u8,
14096 ) as u64)
14097 }
14098 }
14099 #[inline]
14100 pub unsafe fn set_at_s1e1_raw(this: *mut Self, val: __u64) {
14101 unsafe {
14102 let val: u64 = ::std::mem::transmute(val);
14103 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14104 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14105 6usize,
14106 1u8,
14107 val as u64,
14108 )
14109 }
14110 }
14111 #[inline]
14112 pub fn uao(&self) -> __u64 {
14113 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u64) }
14114 }
14115 #[inline]
14116 pub fn set_uao(&mut self, val: __u64) {
14117 unsafe {
14118 let val: u64 = ::std::mem::transmute(val);
14119 self._bitfield_1.set(7usize, 1u8, val as u64)
14120 }
14121 }
14122 #[inline]
14123 pub unsafe fn uao_raw(this: *const Self) -> __u64 {
14124 unsafe {
14125 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14126 ::std::ptr::addr_of!((*this)._bitfield_1),
14127 7usize,
14128 1u8,
14129 ) as u64)
14130 }
14131 }
14132 #[inline]
14133 pub unsafe fn set_uao_raw(this: *mut Self, val: __u64) {
14134 unsafe {
14135 let val: u64 = ::std::mem::transmute(val);
14136 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14137 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14138 7usize,
14139 1u8,
14140 val as u64,
14141 )
14142 }
14143 }
14144 #[inline]
14145 pub fn el0_aarch32(&self) -> __u64 {
14146 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u64) }
14147 }
14148 #[inline]
14149 pub fn set_el0_aarch32(&mut self, val: __u64) {
14150 unsafe {
14151 let val: u64 = ::std::mem::transmute(val);
14152 self._bitfield_1.set(8usize, 1u8, val as u64)
14153 }
14154 }
14155 #[inline]
14156 pub unsafe fn el0_aarch32_raw(this: *const Self) -> __u64 {
14157 unsafe {
14158 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14159 ::std::ptr::addr_of!((*this)._bitfield_1),
14160 8usize,
14161 1u8,
14162 ) as u64)
14163 }
14164 }
14165 #[inline]
14166 pub unsafe fn set_el0_aarch32_raw(this: *mut Self, val: __u64) {
14167 unsafe {
14168 let val: u64 = ::std::mem::transmute(val);
14169 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14170 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14171 8usize,
14172 1u8,
14173 val as u64,
14174 )
14175 }
14176 }
14177 #[inline]
14178 pub fn fp(&self) -> __u64 {
14179 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u64) }
14180 }
14181 #[inline]
14182 pub fn set_fp(&mut self, val: __u64) {
14183 unsafe {
14184 let val: u64 = ::std::mem::transmute(val);
14185 self._bitfield_1.set(9usize, 1u8, val as u64)
14186 }
14187 }
14188 #[inline]
14189 pub unsafe fn fp_raw(this: *const Self) -> __u64 {
14190 unsafe {
14191 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14192 ::std::ptr::addr_of!((*this)._bitfield_1),
14193 9usize,
14194 1u8,
14195 ) as u64)
14196 }
14197 }
14198 #[inline]
14199 pub unsafe fn set_fp_raw(this: *mut Self, val: __u64) {
14200 unsafe {
14201 let val: u64 = ::std::mem::transmute(val);
14202 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14203 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14204 9usize,
14205 1u8,
14206 val as u64,
14207 )
14208 }
14209 }
14210 #[inline]
14211 pub fn fp_hp(&self) -> __u64 {
14212 unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u64) }
14213 }
14214 #[inline]
14215 pub fn set_fp_hp(&mut self, val: __u64) {
14216 unsafe {
14217 let val: u64 = ::std::mem::transmute(val);
14218 self._bitfield_1.set(10usize, 1u8, val as u64)
14219 }
14220 }
14221 #[inline]
14222 pub unsafe fn fp_hp_raw(this: *const Self) -> __u64 {
14223 unsafe {
14224 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14225 ::std::ptr::addr_of!((*this)._bitfield_1),
14226 10usize,
14227 1u8,
14228 ) as u64)
14229 }
14230 }
14231 #[inline]
14232 pub unsafe fn set_fp_hp_raw(this: *mut Self, val: __u64) {
14233 unsafe {
14234 let val: u64 = ::std::mem::transmute(val);
14235 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14236 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14237 10usize,
14238 1u8,
14239 val as u64,
14240 )
14241 }
14242 }
14243 #[inline]
14244 pub fn adv_simd(&self) -> __u64 {
14245 unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u64) }
14246 }
14247 #[inline]
14248 pub fn set_adv_simd(&mut self, val: __u64) {
14249 unsafe {
14250 let val: u64 = ::std::mem::transmute(val);
14251 self._bitfield_1.set(11usize, 1u8, val as u64)
14252 }
14253 }
14254 #[inline]
14255 pub unsafe fn adv_simd_raw(this: *const Self) -> __u64 {
14256 unsafe {
14257 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14258 ::std::ptr::addr_of!((*this)._bitfield_1),
14259 11usize,
14260 1u8,
14261 ) as u64)
14262 }
14263 }
14264 #[inline]
14265 pub unsafe fn set_adv_simd_raw(this: *mut Self, val: __u64) {
14266 unsafe {
14267 let val: u64 = ::std::mem::transmute(val);
14268 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14269 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14270 11usize,
14271 1u8,
14272 val as u64,
14273 )
14274 }
14275 }
14276 #[inline]
14277 pub fn adv_simd_hp(&self) -> __u64 {
14278 unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u64) }
14279 }
14280 #[inline]
14281 pub fn set_adv_simd_hp(&mut self, val: __u64) {
14282 unsafe {
14283 let val: u64 = ::std::mem::transmute(val);
14284 self._bitfield_1.set(12usize, 1u8, val as u64)
14285 }
14286 }
14287 #[inline]
14288 pub unsafe fn adv_simd_hp_raw(this: *const Self) -> __u64 {
14289 unsafe {
14290 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14291 ::std::ptr::addr_of!((*this)._bitfield_1),
14292 12usize,
14293 1u8,
14294 ) as u64)
14295 }
14296 }
14297 #[inline]
14298 pub unsafe fn set_adv_simd_hp_raw(this: *mut Self, val: __u64) {
14299 unsafe {
14300 let val: u64 = ::std::mem::transmute(val);
14301 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14302 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14303 12usize,
14304 1u8,
14305 val as u64,
14306 )
14307 }
14308 }
14309 #[inline]
14310 pub fn gic_v3v4(&self) -> __u64 {
14311 unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u64) }
14312 }
14313 #[inline]
14314 pub fn set_gic_v3v4(&mut self, val: __u64) {
14315 unsafe {
14316 let val: u64 = ::std::mem::transmute(val);
14317 self._bitfield_1.set(13usize, 1u8, val as u64)
14318 }
14319 }
14320 #[inline]
14321 pub unsafe fn gic_v3v4_raw(this: *const Self) -> __u64 {
14322 unsafe {
14323 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14324 ::std::ptr::addr_of!((*this)._bitfield_1),
14325 13usize,
14326 1u8,
14327 ) as u64)
14328 }
14329 }
14330 #[inline]
14331 pub unsafe fn set_gic_v3v4_raw(this: *mut Self, val: __u64) {
14332 unsafe {
14333 let val: u64 = ::std::mem::transmute(val);
14334 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14335 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14336 13usize,
14337 1u8,
14338 val as u64,
14339 )
14340 }
14341 }
14342 #[inline]
14343 pub fn gic_v4p1(&self) -> __u64 {
14344 unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u64) }
14345 }
14346 #[inline]
14347 pub fn set_gic_v4p1(&mut self, val: __u64) {
14348 unsafe {
14349 let val: u64 = ::std::mem::transmute(val);
14350 self._bitfield_1.set(14usize, 1u8, val as u64)
14351 }
14352 }
14353 #[inline]
14354 pub unsafe fn gic_v4p1_raw(this: *const Self) -> __u64 {
14355 unsafe {
14356 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14357 ::std::ptr::addr_of!((*this)._bitfield_1),
14358 14usize,
14359 1u8,
14360 ) as u64)
14361 }
14362 }
14363 #[inline]
14364 pub unsafe fn set_gic_v4p1_raw(this: *mut Self, val: __u64) {
14365 unsafe {
14366 let val: u64 = ::std::mem::transmute(val);
14367 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14368 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14369 14usize,
14370 1u8,
14371 val as u64,
14372 )
14373 }
14374 }
14375 #[inline]
14376 pub fn ras(&self) -> __u64 {
14377 unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u64) }
14378 }
14379 #[inline]
14380 pub fn set_ras(&mut self, val: __u64) {
14381 unsafe {
14382 let val: u64 = ::std::mem::transmute(val);
14383 self._bitfield_1.set(15usize, 1u8, val as u64)
14384 }
14385 }
14386 #[inline]
14387 pub unsafe fn ras_raw(this: *const Self) -> __u64 {
14388 unsafe {
14389 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14390 ::std::ptr::addr_of!((*this)._bitfield_1),
14391 15usize,
14392 1u8,
14393 ) as u64)
14394 }
14395 }
14396 #[inline]
14397 pub unsafe fn set_ras_raw(this: *mut Self, val: __u64) {
14398 unsafe {
14399 let val: u64 = ::std::mem::transmute(val);
14400 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14401 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14402 15usize,
14403 1u8,
14404 val as u64,
14405 )
14406 }
14407 }
14408 #[inline]
14409 pub fn pmu_v3(&self) -> __u64 {
14410 unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u64) }
14411 }
14412 #[inline]
14413 pub fn set_pmu_v3(&mut self, val: __u64) {
14414 unsafe {
14415 let val: u64 = ::std::mem::transmute(val);
14416 self._bitfield_1.set(16usize, 1u8, val as u64)
14417 }
14418 }
14419 #[inline]
14420 pub unsafe fn pmu_v3_raw(this: *const Self) -> __u64 {
14421 unsafe {
14422 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14423 ::std::ptr::addr_of!((*this)._bitfield_1),
14424 16usize,
14425 1u8,
14426 ) as u64)
14427 }
14428 }
14429 #[inline]
14430 pub unsafe fn set_pmu_v3_raw(this: *mut Self, val: __u64) {
14431 unsafe {
14432 let val: u64 = ::std::mem::transmute(val);
14433 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14434 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14435 16usize,
14436 1u8,
14437 val as u64,
14438 )
14439 }
14440 }
14441 #[inline]
14442 pub fn pmu_v3_arm_v81(&self) -> __u64 {
14443 unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u64) }
14444 }
14445 #[inline]
14446 pub fn set_pmu_v3_arm_v81(&mut self, val: __u64) {
14447 unsafe {
14448 let val: u64 = ::std::mem::transmute(val);
14449 self._bitfield_1.set(17usize, 1u8, val as u64)
14450 }
14451 }
14452 #[inline]
14453 pub unsafe fn pmu_v3_arm_v81_raw(this: *const Self) -> __u64 {
14454 unsafe {
14455 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14456 ::std::ptr::addr_of!((*this)._bitfield_1),
14457 17usize,
14458 1u8,
14459 ) as u64)
14460 }
14461 }
14462 #[inline]
14463 pub unsafe fn set_pmu_v3_arm_v81_raw(this: *mut Self, val: __u64) {
14464 unsafe {
14465 let val: u64 = ::std::mem::transmute(val);
14466 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14467 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14468 17usize,
14469 1u8,
14470 val as u64,
14471 )
14472 }
14473 }
14474 #[inline]
14475 pub fn pmu_v3_arm_v84(&self) -> __u64 {
14476 unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u64) }
14477 }
14478 #[inline]
14479 pub fn set_pmu_v3_arm_v84(&mut self, val: __u64) {
14480 unsafe {
14481 let val: u64 = ::std::mem::transmute(val);
14482 self._bitfield_1.set(18usize, 1u8, val as u64)
14483 }
14484 }
14485 #[inline]
14486 pub unsafe fn pmu_v3_arm_v84_raw(this: *const Self) -> __u64 {
14487 unsafe {
14488 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14489 ::std::ptr::addr_of!((*this)._bitfield_1),
14490 18usize,
14491 1u8,
14492 ) as u64)
14493 }
14494 }
14495 #[inline]
14496 pub unsafe fn set_pmu_v3_arm_v84_raw(this: *mut Self, val: __u64) {
14497 unsafe {
14498 let val: u64 = ::std::mem::transmute(val);
14499 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14500 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14501 18usize,
14502 1u8,
14503 val as u64,
14504 )
14505 }
14506 }
14507 #[inline]
14508 pub fn pmu_v3_arm_v85(&self) -> __u64 {
14509 unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u64) }
14510 }
14511 #[inline]
14512 pub fn set_pmu_v3_arm_v85(&mut self, val: __u64) {
14513 unsafe {
14514 let val: u64 = ::std::mem::transmute(val);
14515 self._bitfield_1.set(19usize, 1u8, val as u64)
14516 }
14517 }
14518 #[inline]
14519 pub unsafe fn pmu_v3_arm_v85_raw(this: *const Self) -> __u64 {
14520 unsafe {
14521 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14522 ::std::ptr::addr_of!((*this)._bitfield_1),
14523 19usize,
14524 1u8,
14525 ) as u64)
14526 }
14527 }
14528 #[inline]
14529 pub unsafe fn set_pmu_v3_arm_v85_raw(this: *mut Self, val: __u64) {
14530 unsafe {
14531 let val: u64 = ::std::mem::transmute(val);
14532 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14533 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14534 19usize,
14535 1u8,
14536 val as u64,
14537 )
14538 }
14539 }
14540 #[inline]
14541 pub fn aes(&self) -> __u64 {
14542 unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u64) }
14543 }
14544 #[inline]
14545 pub fn set_aes(&mut self, val: __u64) {
14546 unsafe {
14547 let val: u64 = ::std::mem::transmute(val);
14548 self._bitfield_1.set(20usize, 1u8, val as u64)
14549 }
14550 }
14551 #[inline]
14552 pub unsafe fn aes_raw(this: *const Self) -> __u64 {
14553 unsafe {
14554 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14555 ::std::ptr::addr_of!((*this)._bitfield_1),
14556 20usize,
14557 1u8,
14558 ) as u64)
14559 }
14560 }
14561 #[inline]
14562 pub unsafe fn set_aes_raw(this: *mut Self, val: __u64) {
14563 unsafe {
14564 let val: u64 = ::std::mem::transmute(val);
14565 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14566 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14567 20usize,
14568 1u8,
14569 val as u64,
14570 )
14571 }
14572 }
14573 #[inline]
14574 pub fn poly_mul(&self) -> __u64 {
14575 unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u64) }
14576 }
14577 #[inline]
14578 pub fn set_poly_mul(&mut self, val: __u64) {
14579 unsafe {
14580 let val: u64 = ::std::mem::transmute(val);
14581 self._bitfield_1.set(21usize, 1u8, val as u64)
14582 }
14583 }
14584 #[inline]
14585 pub unsafe fn poly_mul_raw(this: *const Self) -> __u64 {
14586 unsafe {
14587 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14588 ::std::ptr::addr_of!((*this)._bitfield_1),
14589 21usize,
14590 1u8,
14591 ) as u64)
14592 }
14593 }
14594 #[inline]
14595 pub unsafe fn set_poly_mul_raw(this: *mut Self, val: __u64) {
14596 unsafe {
14597 let val: u64 = ::std::mem::transmute(val);
14598 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14599 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14600 21usize,
14601 1u8,
14602 val as u64,
14603 )
14604 }
14605 }
14606 #[inline]
14607 pub fn sha1(&self) -> __u64 {
14608 unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u64) }
14609 }
14610 #[inline]
14611 pub fn set_sha1(&mut self, val: __u64) {
14612 unsafe {
14613 let val: u64 = ::std::mem::transmute(val);
14614 self._bitfield_1.set(22usize, 1u8, val as u64)
14615 }
14616 }
14617 #[inline]
14618 pub unsafe fn sha1_raw(this: *const Self) -> __u64 {
14619 unsafe {
14620 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14621 ::std::ptr::addr_of!((*this)._bitfield_1),
14622 22usize,
14623 1u8,
14624 ) as u64)
14625 }
14626 }
14627 #[inline]
14628 pub unsafe fn set_sha1_raw(this: *mut Self, val: __u64) {
14629 unsafe {
14630 let val: u64 = ::std::mem::transmute(val);
14631 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14632 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14633 22usize,
14634 1u8,
14635 val as u64,
14636 )
14637 }
14638 }
14639 #[inline]
14640 pub fn sha256(&self) -> __u64 {
14641 unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u64) }
14642 }
14643 #[inline]
14644 pub fn set_sha256(&mut self, val: __u64) {
14645 unsafe {
14646 let val: u64 = ::std::mem::transmute(val);
14647 self._bitfield_1.set(23usize, 1u8, val as u64)
14648 }
14649 }
14650 #[inline]
14651 pub unsafe fn sha256_raw(this: *const Self) -> __u64 {
14652 unsafe {
14653 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14654 ::std::ptr::addr_of!((*this)._bitfield_1),
14655 23usize,
14656 1u8,
14657 ) as u64)
14658 }
14659 }
14660 #[inline]
14661 pub unsafe fn set_sha256_raw(this: *mut Self, val: __u64) {
14662 unsafe {
14663 let val: u64 = ::std::mem::transmute(val);
14664 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14665 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14666 23usize,
14667 1u8,
14668 val as u64,
14669 )
14670 }
14671 }
14672 #[inline]
14673 pub fn sha512(&self) -> __u64 {
14674 unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 1u8) as u64) }
14675 }
14676 #[inline]
14677 pub fn set_sha512(&mut self, val: __u64) {
14678 unsafe {
14679 let val: u64 = ::std::mem::transmute(val);
14680 self._bitfield_1.set(24usize, 1u8, val as u64)
14681 }
14682 }
14683 #[inline]
14684 pub unsafe fn sha512_raw(this: *const Self) -> __u64 {
14685 unsafe {
14686 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14687 ::std::ptr::addr_of!((*this)._bitfield_1),
14688 24usize,
14689 1u8,
14690 ) as u64)
14691 }
14692 }
14693 #[inline]
14694 pub unsafe fn set_sha512_raw(this: *mut Self, val: __u64) {
14695 unsafe {
14696 let val: u64 = ::std::mem::transmute(val);
14697 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14698 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14699 24usize,
14700 1u8,
14701 val as u64,
14702 )
14703 }
14704 }
14705 #[inline]
14706 pub fn crc32(&self) -> __u64 {
14707 unsafe { ::std::mem::transmute(self._bitfield_1.get(25usize, 1u8) as u64) }
14708 }
14709 #[inline]
14710 pub fn set_crc32(&mut self, val: __u64) {
14711 unsafe {
14712 let val: u64 = ::std::mem::transmute(val);
14713 self._bitfield_1.set(25usize, 1u8, val as u64)
14714 }
14715 }
14716 #[inline]
14717 pub unsafe fn crc32_raw(this: *const Self) -> __u64 {
14718 unsafe {
14719 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14720 ::std::ptr::addr_of!((*this)._bitfield_1),
14721 25usize,
14722 1u8,
14723 ) as u64)
14724 }
14725 }
14726 #[inline]
14727 pub unsafe fn set_crc32_raw(this: *mut Self, val: __u64) {
14728 unsafe {
14729 let val: u64 = ::std::mem::transmute(val);
14730 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14731 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14732 25usize,
14733 1u8,
14734 val as u64,
14735 )
14736 }
14737 }
14738 #[inline]
14739 pub fn atomic(&self) -> __u64 {
14740 unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 1u8) as u64) }
14741 }
14742 #[inline]
14743 pub fn set_atomic(&mut self, val: __u64) {
14744 unsafe {
14745 let val: u64 = ::std::mem::transmute(val);
14746 self._bitfield_1.set(26usize, 1u8, val as u64)
14747 }
14748 }
14749 #[inline]
14750 pub unsafe fn atomic_raw(this: *const Self) -> __u64 {
14751 unsafe {
14752 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14753 ::std::ptr::addr_of!((*this)._bitfield_1),
14754 26usize,
14755 1u8,
14756 ) as u64)
14757 }
14758 }
14759 #[inline]
14760 pub unsafe fn set_atomic_raw(this: *mut Self, val: __u64) {
14761 unsafe {
14762 let val: u64 = ::std::mem::transmute(val);
14763 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14764 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14765 26usize,
14766 1u8,
14767 val as u64,
14768 )
14769 }
14770 }
14771 #[inline]
14772 pub fn rdm(&self) -> __u64 {
14773 unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u64) }
14774 }
14775 #[inline]
14776 pub fn set_rdm(&mut self, val: __u64) {
14777 unsafe {
14778 let val: u64 = ::std::mem::transmute(val);
14779 self._bitfield_1.set(27usize, 1u8, val as u64)
14780 }
14781 }
14782 #[inline]
14783 pub unsafe fn rdm_raw(this: *const Self) -> __u64 {
14784 unsafe {
14785 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14786 ::std::ptr::addr_of!((*this)._bitfield_1),
14787 27usize,
14788 1u8,
14789 ) as u64)
14790 }
14791 }
14792 #[inline]
14793 pub unsafe fn set_rdm_raw(this: *mut Self, val: __u64) {
14794 unsafe {
14795 let val: u64 = ::std::mem::transmute(val);
14796 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14797 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14798 27usize,
14799 1u8,
14800 val as u64,
14801 )
14802 }
14803 }
14804 #[inline]
14805 pub fn sha3(&self) -> __u64 {
14806 unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u64) }
14807 }
14808 #[inline]
14809 pub fn set_sha3(&mut self, val: __u64) {
14810 unsafe {
14811 let val: u64 = ::std::mem::transmute(val);
14812 self._bitfield_1.set(28usize, 1u8, val as u64)
14813 }
14814 }
14815 #[inline]
14816 pub unsafe fn sha3_raw(this: *const Self) -> __u64 {
14817 unsafe {
14818 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14819 ::std::ptr::addr_of!((*this)._bitfield_1),
14820 28usize,
14821 1u8,
14822 ) as u64)
14823 }
14824 }
14825 #[inline]
14826 pub unsafe fn set_sha3_raw(this: *mut Self, val: __u64) {
14827 unsafe {
14828 let val: u64 = ::std::mem::transmute(val);
14829 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14830 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14831 28usize,
14832 1u8,
14833 val as u64,
14834 )
14835 }
14836 }
14837 #[inline]
14838 pub fn sm3(&self) -> __u64 {
14839 unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u64) }
14840 }
14841 #[inline]
14842 pub fn set_sm3(&mut self, val: __u64) {
14843 unsafe {
14844 let val: u64 = ::std::mem::transmute(val);
14845 self._bitfield_1.set(29usize, 1u8, val as u64)
14846 }
14847 }
14848 #[inline]
14849 pub unsafe fn sm3_raw(this: *const Self) -> __u64 {
14850 unsafe {
14851 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14852 ::std::ptr::addr_of!((*this)._bitfield_1),
14853 29usize,
14854 1u8,
14855 ) as u64)
14856 }
14857 }
14858 #[inline]
14859 pub unsafe fn set_sm3_raw(this: *mut Self, val: __u64) {
14860 unsafe {
14861 let val: u64 = ::std::mem::transmute(val);
14862 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14863 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14864 29usize,
14865 1u8,
14866 val as u64,
14867 )
14868 }
14869 }
14870 #[inline]
14871 pub fn sm4(&self) -> __u64 {
14872 unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u64) }
14873 }
14874 #[inline]
14875 pub fn set_sm4(&mut self, val: __u64) {
14876 unsafe {
14877 let val: u64 = ::std::mem::transmute(val);
14878 self._bitfield_1.set(30usize, 1u8, val as u64)
14879 }
14880 }
14881 #[inline]
14882 pub unsafe fn sm4_raw(this: *const Self) -> __u64 {
14883 unsafe {
14884 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14885 ::std::ptr::addr_of!((*this)._bitfield_1),
14886 30usize,
14887 1u8,
14888 ) as u64)
14889 }
14890 }
14891 #[inline]
14892 pub unsafe fn set_sm4_raw(this: *mut Self, val: __u64) {
14893 unsafe {
14894 let val: u64 = ::std::mem::transmute(val);
14895 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14896 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14897 30usize,
14898 1u8,
14899 val as u64,
14900 )
14901 }
14902 }
14903 #[inline]
14904 pub fn dp(&self) -> __u64 {
14905 unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u64) }
14906 }
14907 #[inline]
14908 pub fn set_dp(&mut self, val: __u64) {
14909 unsafe {
14910 let val: u64 = ::std::mem::transmute(val);
14911 self._bitfield_1.set(31usize, 1u8, val as u64)
14912 }
14913 }
14914 #[inline]
14915 pub unsafe fn dp_raw(this: *const Self) -> __u64 {
14916 unsafe {
14917 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14918 ::std::ptr::addr_of!((*this)._bitfield_1),
14919 31usize,
14920 1u8,
14921 ) as u64)
14922 }
14923 }
14924 #[inline]
14925 pub unsafe fn set_dp_raw(this: *mut Self, val: __u64) {
14926 unsafe {
14927 let val: u64 = ::std::mem::transmute(val);
14928 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14929 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14930 31usize,
14931 1u8,
14932 val as u64,
14933 )
14934 }
14935 }
14936 #[inline]
14937 pub fn fhm(&self) -> __u64 {
14938 unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u64) }
14939 }
14940 #[inline]
14941 pub fn set_fhm(&mut self, val: __u64) {
14942 unsafe {
14943 let val: u64 = ::std::mem::transmute(val);
14944 self._bitfield_1.set(32usize, 1u8, val as u64)
14945 }
14946 }
14947 #[inline]
14948 pub unsafe fn fhm_raw(this: *const Self) -> __u64 {
14949 unsafe {
14950 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14951 ::std::ptr::addr_of!((*this)._bitfield_1),
14952 32usize,
14953 1u8,
14954 ) as u64)
14955 }
14956 }
14957 #[inline]
14958 pub unsafe fn set_fhm_raw(this: *mut Self, val: __u64) {
14959 unsafe {
14960 let val: u64 = ::std::mem::transmute(val);
14961 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14962 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14963 32usize,
14964 1u8,
14965 val as u64,
14966 )
14967 }
14968 }
14969 #[inline]
14970 pub fn dc_cvap(&self) -> __u64 {
14971 unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u64) }
14972 }
14973 #[inline]
14974 pub fn set_dc_cvap(&mut self, val: __u64) {
14975 unsafe {
14976 let val: u64 = ::std::mem::transmute(val);
14977 self._bitfield_1.set(33usize, 1u8, val as u64)
14978 }
14979 }
14980 #[inline]
14981 pub unsafe fn dc_cvap_raw(this: *const Self) -> __u64 {
14982 unsafe {
14983 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
14984 ::std::ptr::addr_of!((*this)._bitfield_1),
14985 33usize,
14986 1u8,
14987 ) as u64)
14988 }
14989 }
14990 #[inline]
14991 pub unsafe fn set_dc_cvap_raw(this: *mut Self, val: __u64) {
14992 unsafe {
14993 let val: u64 = ::std::mem::transmute(val);
14994 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
14995 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
14996 33usize,
14997 1u8,
14998 val as u64,
14999 )
15000 }
15001 }
15002 #[inline]
15003 pub fn dc_cvadp(&self) -> __u64 {
15004 unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u64) }
15005 }
15006 #[inline]
15007 pub fn set_dc_cvadp(&mut self, val: __u64) {
15008 unsafe {
15009 let val: u64 = ::std::mem::transmute(val);
15010 self._bitfield_1.set(34usize, 1u8, val as u64)
15011 }
15012 }
15013 #[inline]
15014 pub unsafe fn dc_cvadp_raw(this: *const Self) -> __u64 {
15015 unsafe {
15016 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15017 ::std::ptr::addr_of!((*this)._bitfield_1),
15018 34usize,
15019 1u8,
15020 ) as u64)
15021 }
15022 }
15023 #[inline]
15024 pub unsafe fn set_dc_cvadp_raw(this: *mut Self, val: __u64) {
15025 unsafe {
15026 let val: u64 = ::std::mem::transmute(val);
15027 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15028 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15029 34usize,
15030 1u8,
15031 val as u64,
15032 )
15033 }
15034 }
15035 #[inline]
15036 pub fn apa_base(&self) -> __u64 {
15037 unsafe { ::std::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u64) }
15038 }
15039 #[inline]
15040 pub fn set_apa_base(&mut self, val: __u64) {
15041 unsafe {
15042 let val: u64 = ::std::mem::transmute(val);
15043 self._bitfield_1.set(35usize, 1u8, val as u64)
15044 }
15045 }
15046 #[inline]
15047 pub unsafe fn apa_base_raw(this: *const Self) -> __u64 {
15048 unsafe {
15049 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15050 ::std::ptr::addr_of!((*this)._bitfield_1),
15051 35usize,
15052 1u8,
15053 ) as u64)
15054 }
15055 }
15056 #[inline]
15057 pub unsafe fn set_apa_base_raw(this: *mut Self, val: __u64) {
15058 unsafe {
15059 let val: u64 = ::std::mem::transmute(val);
15060 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15061 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15062 35usize,
15063 1u8,
15064 val as u64,
15065 )
15066 }
15067 }
15068 #[inline]
15069 pub fn apa_ep(&self) -> __u64 {
15070 unsafe { ::std::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u64) }
15071 }
15072 #[inline]
15073 pub fn set_apa_ep(&mut self, val: __u64) {
15074 unsafe {
15075 let val: u64 = ::std::mem::transmute(val);
15076 self._bitfield_1.set(36usize, 1u8, val as u64)
15077 }
15078 }
15079 #[inline]
15080 pub unsafe fn apa_ep_raw(this: *const Self) -> __u64 {
15081 unsafe {
15082 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15083 ::std::ptr::addr_of!((*this)._bitfield_1),
15084 36usize,
15085 1u8,
15086 ) as u64)
15087 }
15088 }
15089 #[inline]
15090 pub unsafe fn set_apa_ep_raw(this: *mut Self, val: __u64) {
15091 unsafe {
15092 let val: u64 = ::std::mem::transmute(val);
15093 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15094 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15095 36usize,
15096 1u8,
15097 val as u64,
15098 )
15099 }
15100 }
15101 #[inline]
15102 pub fn apa_ep2(&self) -> __u64 {
15103 unsafe { ::std::mem::transmute(self._bitfield_1.get(37usize, 1u8) as u64) }
15104 }
15105 #[inline]
15106 pub fn set_apa_ep2(&mut self, val: __u64) {
15107 unsafe {
15108 let val: u64 = ::std::mem::transmute(val);
15109 self._bitfield_1.set(37usize, 1u8, val as u64)
15110 }
15111 }
15112 #[inline]
15113 pub unsafe fn apa_ep2_raw(this: *const Self) -> __u64 {
15114 unsafe {
15115 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15116 ::std::ptr::addr_of!((*this)._bitfield_1),
15117 37usize,
15118 1u8,
15119 ) as u64)
15120 }
15121 }
15122 #[inline]
15123 pub unsafe fn set_apa_ep2_raw(this: *mut Self, val: __u64) {
15124 unsafe {
15125 let val: u64 = ::std::mem::transmute(val);
15126 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15127 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15128 37usize,
15129 1u8,
15130 val as u64,
15131 )
15132 }
15133 }
15134 #[inline]
15135 pub fn apa_ep2_fp(&self) -> __u64 {
15136 unsafe { ::std::mem::transmute(self._bitfield_1.get(38usize, 1u8) as u64) }
15137 }
15138 #[inline]
15139 pub fn set_apa_ep2_fp(&mut self, val: __u64) {
15140 unsafe {
15141 let val: u64 = ::std::mem::transmute(val);
15142 self._bitfield_1.set(38usize, 1u8, val as u64)
15143 }
15144 }
15145 #[inline]
15146 pub unsafe fn apa_ep2_fp_raw(this: *const Self) -> __u64 {
15147 unsafe {
15148 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15149 ::std::ptr::addr_of!((*this)._bitfield_1),
15150 38usize,
15151 1u8,
15152 ) as u64)
15153 }
15154 }
15155 #[inline]
15156 pub unsafe fn set_apa_ep2_fp_raw(this: *mut Self, val: __u64) {
15157 unsafe {
15158 let val: u64 = ::std::mem::transmute(val);
15159 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15160 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15161 38usize,
15162 1u8,
15163 val as u64,
15164 )
15165 }
15166 }
15167 #[inline]
15168 pub fn apa_ep2_fpc(&self) -> __u64 {
15169 unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 1u8) as u64) }
15170 }
15171 #[inline]
15172 pub fn set_apa_ep2_fpc(&mut self, val: __u64) {
15173 unsafe {
15174 let val: u64 = ::std::mem::transmute(val);
15175 self._bitfield_1.set(39usize, 1u8, val as u64)
15176 }
15177 }
15178 #[inline]
15179 pub unsafe fn apa_ep2_fpc_raw(this: *const Self) -> __u64 {
15180 unsafe {
15181 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15182 ::std::ptr::addr_of!((*this)._bitfield_1),
15183 39usize,
15184 1u8,
15185 ) as u64)
15186 }
15187 }
15188 #[inline]
15189 pub unsafe fn set_apa_ep2_fpc_raw(this: *mut Self, val: __u64) {
15190 unsafe {
15191 let val: u64 = ::std::mem::transmute(val);
15192 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15193 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15194 39usize,
15195 1u8,
15196 val as u64,
15197 )
15198 }
15199 }
15200 #[inline]
15201 pub fn jscvt(&self) -> __u64 {
15202 unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u64) }
15203 }
15204 #[inline]
15205 pub fn set_jscvt(&mut self, val: __u64) {
15206 unsafe {
15207 let val: u64 = ::std::mem::transmute(val);
15208 self._bitfield_1.set(40usize, 1u8, val as u64)
15209 }
15210 }
15211 #[inline]
15212 pub unsafe fn jscvt_raw(this: *const Self) -> __u64 {
15213 unsafe {
15214 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15215 ::std::ptr::addr_of!((*this)._bitfield_1),
15216 40usize,
15217 1u8,
15218 ) as u64)
15219 }
15220 }
15221 #[inline]
15222 pub unsafe fn set_jscvt_raw(this: *mut Self, val: __u64) {
15223 unsafe {
15224 let val: u64 = ::std::mem::transmute(val);
15225 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15226 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15227 40usize,
15228 1u8,
15229 val as u64,
15230 )
15231 }
15232 }
15233 #[inline]
15234 pub fn fcma(&self) -> __u64 {
15235 unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 1u8) as u64) }
15236 }
15237 #[inline]
15238 pub fn set_fcma(&mut self, val: __u64) {
15239 unsafe {
15240 let val: u64 = ::std::mem::transmute(val);
15241 self._bitfield_1.set(41usize, 1u8, val as u64)
15242 }
15243 }
15244 #[inline]
15245 pub unsafe fn fcma_raw(this: *const Self) -> __u64 {
15246 unsafe {
15247 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15248 ::std::ptr::addr_of!((*this)._bitfield_1),
15249 41usize,
15250 1u8,
15251 ) as u64)
15252 }
15253 }
15254 #[inline]
15255 pub unsafe fn set_fcma_raw(this: *mut Self, val: __u64) {
15256 unsafe {
15257 let val: u64 = ::std::mem::transmute(val);
15258 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15259 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15260 41usize,
15261 1u8,
15262 val as u64,
15263 )
15264 }
15265 }
15266 #[inline]
15267 pub fn rcpc_v83(&self) -> __u64 {
15268 unsafe { ::std::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u64) }
15269 }
15270 #[inline]
15271 pub fn set_rcpc_v83(&mut self, val: __u64) {
15272 unsafe {
15273 let val: u64 = ::std::mem::transmute(val);
15274 self._bitfield_1.set(42usize, 1u8, val as u64)
15275 }
15276 }
15277 #[inline]
15278 pub unsafe fn rcpc_v83_raw(this: *const Self) -> __u64 {
15279 unsafe {
15280 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15281 ::std::ptr::addr_of!((*this)._bitfield_1),
15282 42usize,
15283 1u8,
15284 ) as u64)
15285 }
15286 }
15287 #[inline]
15288 pub unsafe fn set_rcpc_v83_raw(this: *mut Self, val: __u64) {
15289 unsafe {
15290 let val: u64 = ::std::mem::transmute(val);
15291 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15292 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15293 42usize,
15294 1u8,
15295 val as u64,
15296 )
15297 }
15298 }
15299 #[inline]
15300 pub fn rcpc_v84(&self) -> __u64 {
15301 unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 1u8) as u64) }
15302 }
15303 #[inline]
15304 pub fn set_rcpc_v84(&mut self, val: __u64) {
15305 unsafe {
15306 let val: u64 = ::std::mem::transmute(val);
15307 self._bitfield_1.set(43usize, 1u8, val as u64)
15308 }
15309 }
15310 #[inline]
15311 pub unsafe fn rcpc_v84_raw(this: *const Self) -> __u64 {
15312 unsafe {
15313 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15314 ::std::ptr::addr_of!((*this)._bitfield_1),
15315 43usize,
15316 1u8,
15317 ) as u64)
15318 }
15319 }
15320 #[inline]
15321 pub unsafe fn set_rcpc_v84_raw(this: *mut Self, val: __u64) {
15322 unsafe {
15323 let val: u64 = ::std::mem::transmute(val);
15324 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15325 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15326 43usize,
15327 1u8,
15328 val as u64,
15329 )
15330 }
15331 }
15332 #[inline]
15333 pub fn gpa(&self) -> __u64 {
15334 unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 1u8) as u64) }
15335 }
15336 #[inline]
15337 pub fn set_gpa(&mut self, val: __u64) {
15338 unsafe {
15339 let val: u64 = ::std::mem::transmute(val);
15340 self._bitfield_1.set(44usize, 1u8, val as u64)
15341 }
15342 }
15343 #[inline]
15344 pub unsafe fn gpa_raw(this: *const Self) -> __u64 {
15345 unsafe {
15346 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15347 ::std::ptr::addr_of!((*this)._bitfield_1),
15348 44usize,
15349 1u8,
15350 ) as u64)
15351 }
15352 }
15353 #[inline]
15354 pub unsafe fn set_gpa_raw(this: *mut Self, val: __u64) {
15355 unsafe {
15356 let val: u64 = ::std::mem::transmute(val);
15357 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15358 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15359 44usize,
15360 1u8,
15361 val as u64,
15362 )
15363 }
15364 }
15365 #[inline]
15366 pub fn l1ip_pipt(&self) -> __u64 {
15367 unsafe { ::std::mem::transmute(self._bitfield_1.get(45usize, 1u8) as u64) }
15368 }
15369 #[inline]
15370 pub fn set_l1ip_pipt(&mut self, val: __u64) {
15371 unsafe {
15372 let val: u64 = ::std::mem::transmute(val);
15373 self._bitfield_1.set(45usize, 1u8, val as u64)
15374 }
15375 }
15376 #[inline]
15377 pub unsafe fn l1ip_pipt_raw(this: *const Self) -> __u64 {
15378 unsafe {
15379 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15380 ::std::ptr::addr_of!((*this)._bitfield_1),
15381 45usize,
15382 1u8,
15383 ) as u64)
15384 }
15385 }
15386 #[inline]
15387 pub unsafe fn set_l1ip_pipt_raw(this: *mut Self, val: __u64) {
15388 unsafe {
15389 let val: u64 = ::std::mem::transmute(val);
15390 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15391 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15392 45usize,
15393 1u8,
15394 val as u64,
15395 )
15396 }
15397 }
15398 #[inline]
15399 pub fn dz_permitted(&self) -> __u64 {
15400 unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 1u8) as u64) }
15401 }
15402 #[inline]
15403 pub fn set_dz_permitted(&mut self, val: __u64) {
15404 unsafe {
15405 let val: u64 = ::std::mem::transmute(val);
15406 self._bitfield_1.set(46usize, 1u8, val as u64)
15407 }
15408 }
15409 #[inline]
15410 pub unsafe fn dz_permitted_raw(this: *const Self) -> __u64 {
15411 unsafe {
15412 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15413 ::std::ptr::addr_of!((*this)._bitfield_1),
15414 46usize,
15415 1u8,
15416 ) as u64)
15417 }
15418 }
15419 #[inline]
15420 pub unsafe fn set_dz_permitted_raw(this: *mut Self, val: __u64) {
15421 unsafe {
15422 let val: u64 = ::std::mem::transmute(val);
15423 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15424 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15425 46usize,
15426 1u8,
15427 val as u64,
15428 )
15429 }
15430 }
15431 #[inline]
15432 pub fn ssbs(&self) -> __u64 {
15433 unsafe { ::std::mem::transmute(self._bitfield_1.get(47usize, 1u8) as u64) }
15434 }
15435 #[inline]
15436 pub fn set_ssbs(&mut self, val: __u64) {
15437 unsafe {
15438 let val: u64 = ::std::mem::transmute(val);
15439 self._bitfield_1.set(47usize, 1u8, val as u64)
15440 }
15441 }
15442 #[inline]
15443 pub unsafe fn ssbs_raw(this: *const Self) -> __u64 {
15444 unsafe {
15445 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15446 ::std::ptr::addr_of!((*this)._bitfield_1),
15447 47usize,
15448 1u8,
15449 ) as u64)
15450 }
15451 }
15452 #[inline]
15453 pub unsafe fn set_ssbs_raw(this: *mut Self, val: __u64) {
15454 unsafe {
15455 let val: u64 = ::std::mem::transmute(val);
15456 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15457 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15458 47usize,
15459 1u8,
15460 val as u64,
15461 )
15462 }
15463 }
15464 #[inline]
15465 pub fn ssbs_rw(&self) -> __u64 {
15466 unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 1u8) as u64) }
15467 }
15468 #[inline]
15469 pub fn set_ssbs_rw(&mut self, val: __u64) {
15470 unsafe {
15471 let val: u64 = ::std::mem::transmute(val);
15472 self._bitfield_1.set(48usize, 1u8, val as u64)
15473 }
15474 }
15475 #[inline]
15476 pub unsafe fn ssbs_rw_raw(this: *const Self) -> __u64 {
15477 unsafe {
15478 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15479 ::std::ptr::addr_of!((*this)._bitfield_1),
15480 48usize,
15481 1u8,
15482 ) as u64)
15483 }
15484 }
15485 #[inline]
15486 pub unsafe fn set_ssbs_rw_raw(this: *mut Self, val: __u64) {
15487 unsafe {
15488 let val: u64 = ::std::mem::transmute(val);
15489 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15490 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15491 48usize,
15492 1u8,
15493 val as u64,
15494 )
15495 }
15496 }
15497 #[inline]
15498 pub fn smccc_w1_supported(&self) -> __u64 {
15499 unsafe { ::std::mem::transmute(self._bitfield_1.get(49usize, 1u8) as u64) }
15500 }
15501 #[inline]
15502 pub fn set_smccc_w1_supported(&mut self, val: __u64) {
15503 unsafe {
15504 let val: u64 = ::std::mem::transmute(val);
15505 self._bitfield_1.set(49usize, 1u8, val as u64)
15506 }
15507 }
15508 #[inline]
15509 pub unsafe fn smccc_w1_supported_raw(this: *const Self) -> __u64 {
15510 unsafe {
15511 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15512 ::std::ptr::addr_of!((*this)._bitfield_1),
15513 49usize,
15514 1u8,
15515 ) as u64)
15516 }
15517 }
15518 #[inline]
15519 pub unsafe fn set_smccc_w1_supported_raw(this: *mut Self, val: __u64) {
15520 unsafe {
15521 let val: u64 = ::std::mem::transmute(val);
15522 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15523 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15524 49usize,
15525 1u8,
15526 val as u64,
15527 )
15528 }
15529 }
15530 #[inline]
15531 pub fn smccc_w1_mitigated(&self) -> __u64 {
15532 unsafe { ::std::mem::transmute(self._bitfield_1.get(50usize, 1u8) as u64) }
15533 }
15534 #[inline]
15535 pub fn set_smccc_w1_mitigated(&mut self, val: __u64) {
15536 unsafe {
15537 let val: u64 = ::std::mem::transmute(val);
15538 self._bitfield_1.set(50usize, 1u8, val as u64)
15539 }
15540 }
15541 #[inline]
15542 pub unsafe fn smccc_w1_mitigated_raw(this: *const Self) -> __u64 {
15543 unsafe {
15544 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15545 ::std::ptr::addr_of!((*this)._bitfield_1),
15546 50usize,
15547 1u8,
15548 ) as u64)
15549 }
15550 }
15551 #[inline]
15552 pub unsafe fn set_smccc_w1_mitigated_raw(this: *mut Self, val: __u64) {
15553 unsafe {
15554 let val: u64 = ::std::mem::transmute(val);
15555 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15556 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15557 50usize,
15558 1u8,
15559 val as u64,
15560 )
15561 }
15562 }
15563 #[inline]
15564 pub fn smccc_w2_supported(&self) -> __u64 {
15565 unsafe { ::std::mem::transmute(self._bitfield_1.get(51usize, 1u8) as u64) }
15566 }
15567 #[inline]
15568 pub fn set_smccc_w2_supported(&mut self, val: __u64) {
15569 unsafe {
15570 let val: u64 = ::std::mem::transmute(val);
15571 self._bitfield_1.set(51usize, 1u8, val as u64)
15572 }
15573 }
15574 #[inline]
15575 pub unsafe fn smccc_w2_supported_raw(this: *const Self) -> __u64 {
15576 unsafe {
15577 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15578 ::std::ptr::addr_of!((*this)._bitfield_1),
15579 51usize,
15580 1u8,
15581 ) as u64)
15582 }
15583 }
15584 #[inline]
15585 pub unsafe fn set_smccc_w2_supported_raw(this: *mut Self, val: __u64) {
15586 unsafe {
15587 let val: u64 = ::std::mem::transmute(val);
15588 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15589 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15590 51usize,
15591 1u8,
15592 val as u64,
15593 )
15594 }
15595 }
15596 #[inline]
15597 pub fn smccc_w2_mitigated(&self) -> __u64 {
15598 unsafe { ::std::mem::transmute(self._bitfield_1.get(52usize, 1u8) as u64) }
15599 }
15600 #[inline]
15601 pub fn set_smccc_w2_mitigated(&mut self, val: __u64) {
15602 unsafe {
15603 let val: u64 = ::std::mem::transmute(val);
15604 self._bitfield_1.set(52usize, 1u8, val as u64)
15605 }
15606 }
15607 #[inline]
15608 pub unsafe fn smccc_w2_mitigated_raw(this: *const Self) -> __u64 {
15609 unsafe {
15610 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15611 ::std::ptr::addr_of!((*this)._bitfield_1),
15612 52usize,
15613 1u8,
15614 ) as u64)
15615 }
15616 }
15617 #[inline]
15618 pub unsafe fn set_smccc_w2_mitigated_raw(this: *mut Self, val: __u64) {
15619 unsafe {
15620 let val: u64 = ::std::mem::transmute(val);
15621 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15622 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15623 52usize,
15624 1u8,
15625 val as u64,
15626 )
15627 }
15628 }
15629 #[inline]
15630 pub fn csv2(&self) -> __u64 {
15631 unsafe { ::std::mem::transmute(self._bitfield_1.get(53usize, 1u8) as u64) }
15632 }
15633 #[inline]
15634 pub fn set_csv2(&mut self, val: __u64) {
15635 unsafe {
15636 let val: u64 = ::std::mem::transmute(val);
15637 self._bitfield_1.set(53usize, 1u8, val as u64)
15638 }
15639 }
15640 #[inline]
15641 pub unsafe fn csv2_raw(this: *const Self) -> __u64 {
15642 unsafe {
15643 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15644 ::std::ptr::addr_of!((*this)._bitfield_1),
15645 53usize,
15646 1u8,
15647 ) as u64)
15648 }
15649 }
15650 #[inline]
15651 pub unsafe fn set_csv2_raw(this: *mut Self, val: __u64) {
15652 unsafe {
15653 let val: u64 = ::std::mem::transmute(val);
15654 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15655 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15656 53usize,
15657 1u8,
15658 val as u64,
15659 )
15660 }
15661 }
15662 #[inline]
15663 pub fn csv3(&self) -> __u64 {
15664 unsafe { ::std::mem::transmute(self._bitfield_1.get(54usize, 1u8) as u64) }
15665 }
15666 #[inline]
15667 pub fn set_csv3(&mut self, val: __u64) {
15668 unsafe {
15669 let val: u64 = ::std::mem::transmute(val);
15670 self._bitfield_1.set(54usize, 1u8, val as u64)
15671 }
15672 }
15673 #[inline]
15674 pub unsafe fn csv3_raw(this: *const Self) -> __u64 {
15675 unsafe {
15676 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15677 ::std::ptr::addr_of!((*this)._bitfield_1),
15678 54usize,
15679 1u8,
15680 ) as u64)
15681 }
15682 }
15683 #[inline]
15684 pub unsafe fn set_csv3_raw(this: *mut Self, val: __u64) {
15685 unsafe {
15686 let val: u64 = ::std::mem::transmute(val);
15687 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15688 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15689 54usize,
15690 1u8,
15691 val as u64,
15692 )
15693 }
15694 }
15695 #[inline]
15696 pub fn sb(&self) -> __u64 {
15697 unsafe { ::std::mem::transmute(self._bitfield_1.get(55usize, 1u8) as u64) }
15698 }
15699 #[inline]
15700 pub fn set_sb(&mut self, val: __u64) {
15701 unsafe {
15702 let val: u64 = ::std::mem::transmute(val);
15703 self._bitfield_1.set(55usize, 1u8, val as u64)
15704 }
15705 }
15706 #[inline]
15707 pub unsafe fn sb_raw(this: *const Self) -> __u64 {
15708 unsafe {
15709 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15710 ::std::ptr::addr_of!((*this)._bitfield_1),
15711 55usize,
15712 1u8,
15713 ) as u64)
15714 }
15715 }
15716 #[inline]
15717 pub unsafe fn set_sb_raw(this: *mut Self, val: __u64) {
15718 unsafe {
15719 let val: u64 = ::std::mem::transmute(val);
15720 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15721 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15722 55usize,
15723 1u8,
15724 val as u64,
15725 )
15726 }
15727 }
15728 #[inline]
15729 pub fn idc(&self) -> __u64 {
15730 unsafe { ::std::mem::transmute(self._bitfield_1.get(56usize, 1u8) as u64) }
15731 }
15732 #[inline]
15733 pub fn set_idc(&mut self, val: __u64) {
15734 unsafe {
15735 let val: u64 = ::std::mem::transmute(val);
15736 self._bitfield_1.set(56usize, 1u8, val as u64)
15737 }
15738 }
15739 #[inline]
15740 pub unsafe fn idc_raw(this: *const Self) -> __u64 {
15741 unsafe {
15742 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15743 ::std::ptr::addr_of!((*this)._bitfield_1),
15744 56usize,
15745 1u8,
15746 ) as u64)
15747 }
15748 }
15749 #[inline]
15750 pub unsafe fn set_idc_raw(this: *mut Self, val: __u64) {
15751 unsafe {
15752 let val: u64 = ::std::mem::transmute(val);
15753 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15754 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15755 56usize,
15756 1u8,
15757 val as u64,
15758 )
15759 }
15760 }
15761 #[inline]
15762 pub fn dic(&self) -> __u64 {
15763 unsafe { ::std::mem::transmute(self._bitfield_1.get(57usize, 1u8) as u64) }
15764 }
15765 #[inline]
15766 pub fn set_dic(&mut self, val: __u64) {
15767 unsafe {
15768 let val: u64 = ::std::mem::transmute(val);
15769 self._bitfield_1.set(57usize, 1u8, val as u64)
15770 }
15771 }
15772 #[inline]
15773 pub unsafe fn dic_raw(this: *const Self) -> __u64 {
15774 unsafe {
15775 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15776 ::std::ptr::addr_of!((*this)._bitfield_1),
15777 57usize,
15778 1u8,
15779 ) as u64)
15780 }
15781 }
15782 #[inline]
15783 pub unsafe fn set_dic_raw(this: *mut Self, val: __u64) {
15784 unsafe {
15785 let val: u64 = ::std::mem::transmute(val);
15786 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15787 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15788 57usize,
15789 1u8,
15790 val as u64,
15791 )
15792 }
15793 }
15794 #[inline]
15795 pub fn tlbi_os(&self) -> __u64 {
15796 unsafe { ::std::mem::transmute(self._bitfield_1.get(58usize, 1u8) as u64) }
15797 }
15798 #[inline]
15799 pub fn set_tlbi_os(&mut self, val: __u64) {
15800 unsafe {
15801 let val: u64 = ::std::mem::transmute(val);
15802 self._bitfield_1.set(58usize, 1u8, val as u64)
15803 }
15804 }
15805 #[inline]
15806 pub unsafe fn tlbi_os_raw(this: *const Self) -> __u64 {
15807 unsafe {
15808 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15809 ::std::ptr::addr_of!((*this)._bitfield_1),
15810 58usize,
15811 1u8,
15812 ) as u64)
15813 }
15814 }
15815 #[inline]
15816 pub unsafe fn set_tlbi_os_raw(this: *mut Self, val: __u64) {
15817 unsafe {
15818 let val: u64 = ::std::mem::transmute(val);
15819 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15820 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15821 58usize,
15822 1u8,
15823 val as u64,
15824 )
15825 }
15826 }
15827 #[inline]
15828 pub fn tlbi_os_range(&self) -> __u64 {
15829 unsafe { ::std::mem::transmute(self._bitfield_1.get(59usize, 1u8) as u64) }
15830 }
15831 #[inline]
15832 pub fn set_tlbi_os_range(&mut self, val: __u64) {
15833 unsafe {
15834 let val: u64 = ::std::mem::transmute(val);
15835 self._bitfield_1.set(59usize, 1u8, val as u64)
15836 }
15837 }
15838 #[inline]
15839 pub unsafe fn tlbi_os_range_raw(this: *const Self) -> __u64 {
15840 unsafe {
15841 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15842 ::std::ptr::addr_of!((*this)._bitfield_1),
15843 59usize,
15844 1u8,
15845 ) as u64)
15846 }
15847 }
15848 #[inline]
15849 pub unsafe fn set_tlbi_os_range_raw(this: *mut Self, val: __u64) {
15850 unsafe {
15851 let val: u64 = ::std::mem::transmute(val);
15852 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15853 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15854 59usize,
15855 1u8,
15856 val as u64,
15857 )
15858 }
15859 }
15860 #[inline]
15861 pub fn flags_m(&self) -> __u64 {
15862 unsafe { ::std::mem::transmute(self._bitfield_1.get(60usize, 1u8) as u64) }
15863 }
15864 #[inline]
15865 pub fn set_flags_m(&mut self, val: __u64) {
15866 unsafe {
15867 let val: u64 = ::std::mem::transmute(val);
15868 self._bitfield_1.set(60usize, 1u8, val as u64)
15869 }
15870 }
15871 #[inline]
15872 pub unsafe fn flags_m_raw(this: *const Self) -> __u64 {
15873 unsafe {
15874 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15875 ::std::ptr::addr_of!((*this)._bitfield_1),
15876 60usize,
15877 1u8,
15878 ) as u64)
15879 }
15880 }
15881 #[inline]
15882 pub unsafe fn set_flags_m_raw(this: *mut Self, val: __u64) {
15883 unsafe {
15884 let val: u64 = ::std::mem::transmute(val);
15885 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15886 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15887 60usize,
15888 1u8,
15889 val as u64,
15890 )
15891 }
15892 }
15893 #[inline]
15894 pub fn flags_m2(&self) -> __u64 {
15895 unsafe { ::std::mem::transmute(self._bitfield_1.get(61usize, 1u8) as u64) }
15896 }
15897 #[inline]
15898 pub fn set_flags_m2(&mut self, val: __u64) {
15899 unsafe {
15900 let val: u64 = ::std::mem::transmute(val);
15901 self._bitfield_1.set(61usize, 1u8, val as u64)
15902 }
15903 }
15904 #[inline]
15905 pub unsafe fn flags_m2_raw(this: *const Self) -> __u64 {
15906 unsafe {
15907 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15908 ::std::ptr::addr_of!((*this)._bitfield_1),
15909 61usize,
15910 1u8,
15911 ) as u64)
15912 }
15913 }
15914 #[inline]
15915 pub unsafe fn set_flags_m2_raw(this: *mut Self, val: __u64) {
15916 unsafe {
15917 let val: u64 = ::std::mem::transmute(val);
15918 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15919 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15920 61usize,
15921 1u8,
15922 val as u64,
15923 )
15924 }
15925 }
15926 #[inline]
15927 pub fn bf16(&self) -> __u64 {
15928 unsafe { ::std::mem::transmute(self._bitfield_1.get(62usize, 1u8) as u64) }
15929 }
15930 #[inline]
15931 pub fn set_bf16(&mut self, val: __u64) {
15932 unsafe {
15933 let val: u64 = ::std::mem::transmute(val);
15934 self._bitfield_1.set(62usize, 1u8, val as u64)
15935 }
15936 }
15937 #[inline]
15938 pub unsafe fn bf16_raw(this: *const Self) -> __u64 {
15939 unsafe {
15940 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15941 ::std::ptr::addr_of!((*this)._bitfield_1),
15942 62usize,
15943 1u8,
15944 ) as u64)
15945 }
15946 }
15947 #[inline]
15948 pub unsafe fn set_bf16_raw(this: *mut Self, val: __u64) {
15949 unsafe {
15950 let val: u64 = ::std::mem::transmute(val);
15951 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15952 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15953 62usize,
15954 1u8,
15955 val as u64,
15956 )
15957 }
15958 }
15959 #[inline]
15960 pub fn ebf16(&self) -> __u64 {
15961 unsafe { ::std::mem::transmute(self._bitfield_1.get(63usize, 1u8) as u64) }
15962 }
15963 #[inline]
15964 pub fn set_ebf16(&mut self, val: __u64) {
15965 unsafe {
15966 let val: u64 = ::std::mem::transmute(val);
15967 self._bitfield_1.set(63usize, 1u8, val as u64)
15968 }
15969 }
15970 #[inline]
15971 pub unsafe fn ebf16_raw(this: *const Self) -> __u64 {
15972 unsafe {
15973 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15974 ::std::ptr::addr_of!((*this)._bitfield_1),
15975 63usize,
15976 1u8,
15977 ) as u64)
15978 }
15979 }
15980 #[inline]
15981 pub unsafe fn set_ebf16_raw(this: *mut Self, val: __u64) {
15982 unsafe {
15983 let val: u64 = ::std::mem::transmute(val);
15984 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15985 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
15986 63usize,
15987 1u8,
15988 val as u64,
15989 )
15990 }
15991 }
15992 #[inline]
15993 pub fn sve_bf16(&self) -> __u64 {
15994 unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 1u8) as u64) }
15995 }
15996 #[inline]
15997 pub fn set_sve_bf16(&mut self, val: __u64) {
15998 unsafe {
15999 let val: u64 = ::std::mem::transmute(val);
16000 self._bitfield_1.set(64usize, 1u8, val as u64)
16001 }
16002 }
16003 #[inline]
16004 pub unsafe fn sve_bf16_raw(this: *const Self) -> __u64 {
16005 unsafe {
16006 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16007 ::std::ptr::addr_of!((*this)._bitfield_1),
16008 64usize,
16009 1u8,
16010 ) as u64)
16011 }
16012 }
16013 #[inline]
16014 pub unsafe fn set_sve_bf16_raw(this: *mut Self, val: __u64) {
16015 unsafe {
16016 let val: u64 = ::std::mem::transmute(val);
16017 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16018 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16019 64usize,
16020 1u8,
16021 val as u64,
16022 )
16023 }
16024 }
16025 #[inline]
16026 pub fn sve_ebf16(&self) -> __u64 {
16027 unsafe { ::std::mem::transmute(self._bitfield_1.get(65usize, 1u8) as u64) }
16028 }
16029 #[inline]
16030 pub fn set_sve_ebf16(&mut self, val: __u64) {
16031 unsafe {
16032 let val: u64 = ::std::mem::transmute(val);
16033 self._bitfield_1.set(65usize, 1u8, val as u64)
16034 }
16035 }
16036 #[inline]
16037 pub unsafe fn sve_ebf16_raw(this: *const Self) -> __u64 {
16038 unsafe {
16039 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16040 ::std::ptr::addr_of!((*this)._bitfield_1),
16041 65usize,
16042 1u8,
16043 ) as u64)
16044 }
16045 }
16046 #[inline]
16047 pub unsafe fn set_sve_ebf16_raw(this: *mut Self, val: __u64) {
16048 unsafe {
16049 let val: u64 = ::std::mem::transmute(val);
16050 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16051 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16052 65usize,
16053 1u8,
16054 val as u64,
16055 )
16056 }
16057 }
16058 #[inline]
16059 pub fn i8mm(&self) -> __u64 {
16060 unsafe { ::std::mem::transmute(self._bitfield_1.get(66usize, 1u8) as u64) }
16061 }
16062 #[inline]
16063 pub fn set_i8mm(&mut self, val: __u64) {
16064 unsafe {
16065 let val: u64 = ::std::mem::transmute(val);
16066 self._bitfield_1.set(66usize, 1u8, val as u64)
16067 }
16068 }
16069 #[inline]
16070 pub unsafe fn i8mm_raw(this: *const Self) -> __u64 {
16071 unsafe {
16072 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16073 ::std::ptr::addr_of!((*this)._bitfield_1),
16074 66usize,
16075 1u8,
16076 ) as u64)
16077 }
16078 }
16079 #[inline]
16080 pub unsafe fn set_i8mm_raw(this: *mut Self, val: __u64) {
16081 unsafe {
16082 let val: u64 = ::std::mem::transmute(val);
16083 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16084 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16085 66usize,
16086 1u8,
16087 val as u64,
16088 )
16089 }
16090 }
16091 #[inline]
16092 pub fn sve_i8mm(&self) -> __u64 {
16093 unsafe { ::std::mem::transmute(self._bitfield_1.get(67usize, 1u8) as u64) }
16094 }
16095 #[inline]
16096 pub fn set_sve_i8mm(&mut self, val: __u64) {
16097 unsafe {
16098 let val: u64 = ::std::mem::transmute(val);
16099 self._bitfield_1.set(67usize, 1u8, val as u64)
16100 }
16101 }
16102 #[inline]
16103 pub unsafe fn sve_i8mm_raw(this: *const Self) -> __u64 {
16104 unsafe {
16105 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16106 ::std::ptr::addr_of!((*this)._bitfield_1),
16107 67usize,
16108 1u8,
16109 ) as u64)
16110 }
16111 }
16112 #[inline]
16113 pub unsafe fn set_sve_i8mm_raw(this: *mut Self, val: __u64) {
16114 unsafe {
16115 let val: u64 = ::std::mem::transmute(val);
16116 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16117 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16118 67usize,
16119 1u8,
16120 val as u64,
16121 )
16122 }
16123 }
16124 #[inline]
16125 pub fn frintts(&self) -> __u64 {
16126 unsafe { ::std::mem::transmute(self._bitfield_1.get(68usize, 1u8) as u64) }
16127 }
16128 #[inline]
16129 pub fn set_frintts(&mut self, val: __u64) {
16130 unsafe {
16131 let val: u64 = ::std::mem::transmute(val);
16132 self._bitfield_1.set(68usize, 1u8, val as u64)
16133 }
16134 }
16135 #[inline]
16136 pub unsafe fn frintts_raw(this: *const Self) -> __u64 {
16137 unsafe {
16138 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16139 ::std::ptr::addr_of!((*this)._bitfield_1),
16140 68usize,
16141 1u8,
16142 ) as u64)
16143 }
16144 }
16145 #[inline]
16146 pub unsafe fn set_frintts_raw(this: *mut Self, val: __u64) {
16147 unsafe {
16148 let val: u64 = ::std::mem::transmute(val);
16149 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16150 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16151 68usize,
16152 1u8,
16153 val as u64,
16154 )
16155 }
16156 }
16157 #[inline]
16158 pub fn specres(&self) -> __u64 {
16159 unsafe { ::std::mem::transmute(self._bitfield_1.get(69usize, 1u8) as u64) }
16160 }
16161 #[inline]
16162 pub fn set_specres(&mut self, val: __u64) {
16163 unsafe {
16164 let val: u64 = ::std::mem::transmute(val);
16165 self._bitfield_1.set(69usize, 1u8, val as u64)
16166 }
16167 }
16168 #[inline]
16169 pub unsafe fn specres_raw(this: *const Self) -> __u64 {
16170 unsafe {
16171 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16172 ::std::ptr::addr_of!((*this)._bitfield_1),
16173 69usize,
16174 1u8,
16175 ) as u64)
16176 }
16177 }
16178 #[inline]
16179 pub unsafe fn set_specres_raw(this: *mut Self, val: __u64) {
16180 unsafe {
16181 let val: u64 = ::std::mem::transmute(val);
16182 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16183 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16184 69usize,
16185 1u8,
16186 val as u64,
16187 )
16188 }
16189 }
16190 #[inline]
16191 pub fn mtpmu(&self) -> __u64 {
16192 unsafe { ::std::mem::transmute(self._bitfield_1.get(70usize, 1u8) as u64) }
16193 }
16194 #[inline]
16195 pub fn set_mtpmu(&mut self, val: __u64) {
16196 unsafe {
16197 let val: u64 = ::std::mem::transmute(val);
16198 self._bitfield_1.set(70usize, 1u8, val as u64)
16199 }
16200 }
16201 #[inline]
16202 pub unsafe fn mtpmu_raw(this: *const Self) -> __u64 {
16203 unsafe {
16204 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16205 ::std::ptr::addr_of!((*this)._bitfield_1),
16206 70usize,
16207 1u8,
16208 ) as u64)
16209 }
16210 }
16211 #[inline]
16212 pub unsafe fn set_mtpmu_raw(this: *mut Self, val: __u64) {
16213 unsafe {
16214 let val: u64 = ::std::mem::transmute(val);
16215 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16216 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16217 70usize,
16218 1u8,
16219 val as u64,
16220 )
16221 }
16222 }
16223 #[inline]
16224 pub fn rpres(&self) -> __u64 {
16225 unsafe { ::std::mem::transmute(self._bitfield_1.get(71usize, 1u8) as u64) }
16226 }
16227 #[inline]
16228 pub fn set_rpres(&mut self, val: __u64) {
16229 unsafe {
16230 let val: u64 = ::std::mem::transmute(val);
16231 self._bitfield_1.set(71usize, 1u8, val as u64)
16232 }
16233 }
16234 #[inline]
16235 pub unsafe fn rpres_raw(this: *const Self) -> __u64 {
16236 unsafe {
16237 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16238 ::std::ptr::addr_of!((*this)._bitfield_1),
16239 71usize,
16240 1u8,
16241 ) as u64)
16242 }
16243 }
16244 #[inline]
16245 pub unsafe fn set_rpres_raw(this: *mut Self, val: __u64) {
16246 unsafe {
16247 let val: u64 = ::std::mem::transmute(val);
16248 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16249 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16250 71usize,
16251 1u8,
16252 val as u64,
16253 )
16254 }
16255 }
16256 #[inline]
16257 pub fn exs(&self) -> __u64 {
16258 unsafe { ::std::mem::transmute(self._bitfield_1.get(72usize, 1u8) as u64) }
16259 }
16260 #[inline]
16261 pub fn set_exs(&mut self, val: __u64) {
16262 unsafe {
16263 let val: u64 = ::std::mem::transmute(val);
16264 self._bitfield_1.set(72usize, 1u8, val as u64)
16265 }
16266 }
16267 #[inline]
16268 pub unsafe fn exs_raw(this: *const Self) -> __u64 {
16269 unsafe {
16270 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16271 ::std::ptr::addr_of!((*this)._bitfield_1),
16272 72usize,
16273 1u8,
16274 ) as u64)
16275 }
16276 }
16277 #[inline]
16278 pub unsafe fn set_exs_raw(this: *mut Self, val: __u64) {
16279 unsafe {
16280 let val: u64 = ::std::mem::transmute(val);
16281 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16282 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16283 72usize,
16284 1u8,
16285 val as u64,
16286 )
16287 }
16288 }
16289 #[inline]
16290 pub fn spec_sei(&self) -> __u64 {
16291 unsafe { ::std::mem::transmute(self._bitfield_1.get(73usize, 1u8) as u64) }
16292 }
16293 #[inline]
16294 pub fn set_spec_sei(&mut self, val: __u64) {
16295 unsafe {
16296 let val: u64 = ::std::mem::transmute(val);
16297 self._bitfield_1.set(73usize, 1u8, val as u64)
16298 }
16299 }
16300 #[inline]
16301 pub unsafe fn spec_sei_raw(this: *const Self) -> __u64 {
16302 unsafe {
16303 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16304 ::std::ptr::addr_of!((*this)._bitfield_1),
16305 73usize,
16306 1u8,
16307 ) as u64)
16308 }
16309 }
16310 #[inline]
16311 pub unsafe fn set_spec_sei_raw(this: *mut Self, val: __u64) {
16312 unsafe {
16313 let val: u64 = ::std::mem::transmute(val);
16314 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16315 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16316 73usize,
16317 1u8,
16318 val as u64,
16319 )
16320 }
16321 }
16322 #[inline]
16323 pub fn ets(&self) -> __u64 {
16324 unsafe { ::std::mem::transmute(self._bitfield_1.get(74usize, 1u8) as u64) }
16325 }
16326 #[inline]
16327 pub fn set_ets(&mut self, val: __u64) {
16328 unsafe {
16329 let val: u64 = ::std::mem::transmute(val);
16330 self._bitfield_1.set(74usize, 1u8, val as u64)
16331 }
16332 }
16333 #[inline]
16334 pub unsafe fn ets_raw(this: *const Self) -> __u64 {
16335 unsafe {
16336 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16337 ::std::ptr::addr_of!((*this)._bitfield_1),
16338 74usize,
16339 1u8,
16340 ) as u64)
16341 }
16342 }
16343 #[inline]
16344 pub unsafe fn set_ets_raw(this: *mut Self, val: __u64) {
16345 unsafe {
16346 let val: u64 = ::std::mem::transmute(val);
16347 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16348 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16349 74usize,
16350 1u8,
16351 val as u64,
16352 )
16353 }
16354 }
16355 #[inline]
16356 pub fn afp(&self) -> __u64 {
16357 unsafe { ::std::mem::transmute(self._bitfield_1.get(75usize, 1u8) as u64) }
16358 }
16359 #[inline]
16360 pub fn set_afp(&mut self, val: __u64) {
16361 unsafe {
16362 let val: u64 = ::std::mem::transmute(val);
16363 self._bitfield_1.set(75usize, 1u8, val as u64)
16364 }
16365 }
16366 #[inline]
16367 pub unsafe fn afp_raw(this: *const Self) -> __u64 {
16368 unsafe {
16369 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16370 ::std::ptr::addr_of!((*this)._bitfield_1),
16371 75usize,
16372 1u8,
16373 ) as u64)
16374 }
16375 }
16376 #[inline]
16377 pub unsafe fn set_afp_raw(this: *mut Self, val: __u64) {
16378 unsafe {
16379 let val: u64 = ::std::mem::transmute(val);
16380 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16381 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16382 75usize,
16383 1u8,
16384 val as u64,
16385 )
16386 }
16387 }
16388 #[inline]
16389 pub fn iesb(&self) -> __u64 {
16390 unsafe { ::std::mem::transmute(self._bitfield_1.get(76usize, 1u8) as u64) }
16391 }
16392 #[inline]
16393 pub fn set_iesb(&mut self, val: __u64) {
16394 unsafe {
16395 let val: u64 = ::std::mem::transmute(val);
16396 self._bitfield_1.set(76usize, 1u8, val as u64)
16397 }
16398 }
16399 #[inline]
16400 pub unsafe fn iesb_raw(this: *const Self) -> __u64 {
16401 unsafe {
16402 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16403 ::std::ptr::addr_of!((*this)._bitfield_1),
16404 76usize,
16405 1u8,
16406 ) as u64)
16407 }
16408 }
16409 #[inline]
16410 pub unsafe fn set_iesb_raw(this: *mut Self, val: __u64) {
16411 unsafe {
16412 let val: u64 = ::std::mem::transmute(val);
16413 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16414 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16415 76usize,
16416 1u8,
16417 val as u64,
16418 )
16419 }
16420 }
16421 #[inline]
16422 pub fn rng(&self) -> __u64 {
16423 unsafe { ::std::mem::transmute(self._bitfield_1.get(77usize, 1u8) as u64) }
16424 }
16425 #[inline]
16426 pub fn set_rng(&mut self, val: __u64) {
16427 unsafe {
16428 let val: u64 = ::std::mem::transmute(val);
16429 self._bitfield_1.set(77usize, 1u8, val as u64)
16430 }
16431 }
16432 #[inline]
16433 pub unsafe fn rng_raw(this: *const Self) -> __u64 {
16434 unsafe {
16435 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16436 ::std::ptr::addr_of!((*this)._bitfield_1),
16437 77usize,
16438 1u8,
16439 ) as u64)
16440 }
16441 }
16442 #[inline]
16443 pub unsafe fn set_rng_raw(this: *mut Self, val: __u64) {
16444 unsafe {
16445 let val: u64 = ::std::mem::transmute(val);
16446 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16447 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16448 77usize,
16449 1u8,
16450 val as u64,
16451 )
16452 }
16453 }
16454 #[inline]
16455 pub fn lse2(&self) -> __u64 {
16456 unsafe { ::std::mem::transmute(self._bitfield_1.get(78usize, 1u8) as u64) }
16457 }
16458 #[inline]
16459 pub fn set_lse2(&mut self, val: __u64) {
16460 unsafe {
16461 let val: u64 = ::std::mem::transmute(val);
16462 self._bitfield_1.set(78usize, 1u8, val as u64)
16463 }
16464 }
16465 #[inline]
16466 pub unsafe fn lse2_raw(this: *const Self) -> __u64 {
16467 unsafe {
16468 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16469 ::std::ptr::addr_of!((*this)._bitfield_1),
16470 78usize,
16471 1u8,
16472 ) as u64)
16473 }
16474 }
16475 #[inline]
16476 pub unsafe fn set_lse2_raw(this: *mut Self, val: __u64) {
16477 unsafe {
16478 let val: u64 = ::std::mem::transmute(val);
16479 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16480 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16481 78usize,
16482 1u8,
16483 val as u64,
16484 )
16485 }
16486 }
16487 #[inline]
16488 pub fn idst(&self) -> __u64 {
16489 unsafe { ::std::mem::transmute(self._bitfield_1.get(79usize, 1u8) as u64) }
16490 }
16491 #[inline]
16492 pub fn set_idst(&mut self, val: __u64) {
16493 unsafe {
16494 let val: u64 = ::std::mem::transmute(val);
16495 self._bitfield_1.set(79usize, 1u8, val as u64)
16496 }
16497 }
16498 #[inline]
16499 pub unsafe fn idst_raw(this: *const Self) -> __u64 {
16500 unsafe {
16501 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16502 ::std::ptr::addr_of!((*this)._bitfield_1),
16503 79usize,
16504 1u8,
16505 ) as u64)
16506 }
16507 }
16508 #[inline]
16509 pub unsafe fn set_idst_raw(this: *mut Self, val: __u64) {
16510 unsafe {
16511 let val: u64 = ::std::mem::transmute(val);
16512 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16513 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16514 79usize,
16515 1u8,
16516 val as u64,
16517 )
16518 }
16519 }
16520 #[inline]
16521 pub fn ras_v1p1(&self) -> __u64 {
16522 unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 1u8) as u64) }
16523 }
16524 #[inline]
16525 pub fn set_ras_v1p1(&mut self, val: __u64) {
16526 unsafe {
16527 let val: u64 = ::std::mem::transmute(val);
16528 self._bitfield_1.set(80usize, 1u8, val as u64)
16529 }
16530 }
16531 #[inline]
16532 pub unsafe fn ras_v1p1_raw(this: *const Self) -> __u64 {
16533 unsafe {
16534 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16535 ::std::ptr::addr_of!((*this)._bitfield_1),
16536 80usize,
16537 1u8,
16538 ) as u64)
16539 }
16540 }
16541 #[inline]
16542 pub unsafe fn set_ras_v1p1_raw(this: *mut Self, val: __u64) {
16543 unsafe {
16544 let val: u64 = ::std::mem::transmute(val);
16545 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16546 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16547 80usize,
16548 1u8,
16549 val as u64,
16550 )
16551 }
16552 }
16553 #[inline]
16554 pub fn ras_frac_v1p1(&self) -> __u64 {
16555 unsafe { ::std::mem::transmute(self._bitfield_1.get(81usize, 1u8) as u64) }
16556 }
16557 #[inline]
16558 pub fn set_ras_frac_v1p1(&mut self, val: __u64) {
16559 unsafe {
16560 let val: u64 = ::std::mem::transmute(val);
16561 self._bitfield_1.set(81usize, 1u8, val as u64)
16562 }
16563 }
16564 #[inline]
16565 pub unsafe fn ras_frac_v1p1_raw(this: *const Self) -> __u64 {
16566 unsafe {
16567 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16568 ::std::ptr::addr_of!((*this)._bitfield_1),
16569 81usize,
16570 1u8,
16571 ) as u64)
16572 }
16573 }
16574 #[inline]
16575 pub unsafe fn set_ras_frac_v1p1_raw(this: *mut Self, val: __u64) {
16576 unsafe {
16577 let val: u64 = ::std::mem::transmute(val);
16578 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16579 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16580 81usize,
16581 1u8,
16582 val as u64,
16583 )
16584 }
16585 }
16586 #[inline]
16587 pub fn sel2(&self) -> __u64 {
16588 unsafe { ::std::mem::transmute(self._bitfield_1.get(82usize, 1u8) as u64) }
16589 }
16590 #[inline]
16591 pub fn set_sel2(&mut self, val: __u64) {
16592 unsafe {
16593 let val: u64 = ::std::mem::transmute(val);
16594 self._bitfield_1.set(82usize, 1u8, val as u64)
16595 }
16596 }
16597 #[inline]
16598 pub unsafe fn sel2_raw(this: *const Self) -> __u64 {
16599 unsafe {
16600 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16601 ::std::ptr::addr_of!((*this)._bitfield_1),
16602 82usize,
16603 1u8,
16604 ) as u64)
16605 }
16606 }
16607 #[inline]
16608 pub unsafe fn set_sel2_raw(this: *mut Self, val: __u64) {
16609 unsafe {
16610 let val: u64 = ::std::mem::transmute(val);
16611 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16612 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16613 82usize,
16614 1u8,
16615 val as u64,
16616 )
16617 }
16618 }
16619 #[inline]
16620 pub fn amu_v1(&self) -> __u64 {
16621 unsafe { ::std::mem::transmute(self._bitfield_1.get(83usize, 1u8) as u64) }
16622 }
16623 #[inline]
16624 pub fn set_amu_v1(&mut self, val: __u64) {
16625 unsafe {
16626 let val: u64 = ::std::mem::transmute(val);
16627 self._bitfield_1.set(83usize, 1u8, val as u64)
16628 }
16629 }
16630 #[inline]
16631 pub unsafe fn amu_v1_raw(this: *const Self) -> __u64 {
16632 unsafe {
16633 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16634 ::std::ptr::addr_of!((*this)._bitfield_1),
16635 83usize,
16636 1u8,
16637 ) as u64)
16638 }
16639 }
16640 #[inline]
16641 pub unsafe fn set_amu_v1_raw(this: *mut Self, val: __u64) {
16642 unsafe {
16643 let val: u64 = ::std::mem::transmute(val);
16644 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16645 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16646 83usize,
16647 1u8,
16648 val as u64,
16649 )
16650 }
16651 }
16652 #[inline]
16653 pub fn amu_v1p1(&self) -> __u64 {
16654 unsafe { ::std::mem::transmute(self._bitfield_1.get(84usize, 1u8) as u64) }
16655 }
16656 #[inline]
16657 pub fn set_amu_v1p1(&mut self, val: __u64) {
16658 unsafe {
16659 let val: u64 = ::std::mem::transmute(val);
16660 self._bitfield_1.set(84usize, 1u8, val as u64)
16661 }
16662 }
16663 #[inline]
16664 pub unsafe fn amu_v1p1_raw(this: *const Self) -> __u64 {
16665 unsafe {
16666 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16667 ::std::ptr::addr_of!((*this)._bitfield_1),
16668 84usize,
16669 1u8,
16670 ) as u64)
16671 }
16672 }
16673 #[inline]
16674 pub unsafe fn set_amu_v1p1_raw(this: *mut Self, val: __u64) {
16675 unsafe {
16676 let val: u64 = ::std::mem::transmute(val);
16677 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16678 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16679 84usize,
16680 1u8,
16681 val as u64,
16682 )
16683 }
16684 }
16685 #[inline]
16686 pub fn dit(&self) -> __u64 {
16687 unsafe { ::std::mem::transmute(self._bitfield_1.get(85usize, 1u8) as u64) }
16688 }
16689 #[inline]
16690 pub fn set_dit(&mut self, val: __u64) {
16691 unsafe {
16692 let val: u64 = ::std::mem::transmute(val);
16693 self._bitfield_1.set(85usize, 1u8, val as u64)
16694 }
16695 }
16696 #[inline]
16697 pub unsafe fn dit_raw(this: *const Self) -> __u64 {
16698 unsafe {
16699 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16700 ::std::ptr::addr_of!((*this)._bitfield_1),
16701 85usize,
16702 1u8,
16703 ) as u64)
16704 }
16705 }
16706 #[inline]
16707 pub unsafe fn set_dit_raw(this: *mut Self, val: __u64) {
16708 unsafe {
16709 let val: u64 = ::std::mem::transmute(val);
16710 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16711 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16712 85usize,
16713 1u8,
16714 val as u64,
16715 )
16716 }
16717 }
16718 #[inline]
16719 pub fn ccidx(&self) -> __u64 {
16720 unsafe { ::std::mem::transmute(self._bitfield_1.get(86usize, 1u8) as u64) }
16721 }
16722 #[inline]
16723 pub fn set_ccidx(&mut self, val: __u64) {
16724 unsafe {
16725 let val: u64 = ::std::mem::transmute(val);
16726 self._bitfield_1.set(86usize, 1u8, val as u64)
16727 }
16728 }
16729 #[inline]
16730 pub unsafe fn ccidx_raw(this: *const Self) -> __u64 {
16731 unsafe {
16732 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16733 ::std::ptr::addr_of!((*this)._bitfield_1),
16734 86usize,
16735 1u8,
16736 ) as u64)
16737 }
16738 }
16739 #[inline]
16740 pub unsafe fn set_ccidx_raw(this: *mut Self, val: __u64) {
16741 unsafe {
16742 let val: u64 = ::std::mem::transmute(val);
16743 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16744 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16745 86usize,
16746 1u8,
16747 val as u64,
16748 )
16749 }
16750 }
16751 #[inline]
16752 pub fn fgt_for_intercepts(&self) -> __u64 {
16753 unsafe { ::std::mem::transmute(self._bitfield_1.get(87usize, 1u8) as u64) }
16754 }
16755 #[inline]
16756 pub fn set_fgt_for_intercepts(&mut self, val: __u64) {
16757 unsafe {
16758 let val: u64 = ::std::mem::transmute(val);
16759 self._bitfield_1.set(87usize, 1u8, val as u64)
16760 }
16761 }
16762 #[inline]
16763 pub unsafe fn fgt_for_intercepts_raw(this: *const Self) -> __u64 {
16764 unsafe {
16765 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16766 ::std::ptr::addr_of!((*this)._bitfield_1),
16767 87usize,
16768 1u8,
16769 ) as u64)
16770 }
16771 }
16772 #[inline]
16773 pub unsafe fn set_fgt_for_intercepts_raw(this: *mut Self, val: __u64) {
16774 unsafe {
16775 let val: u64 = ::std::mem::transmute(val);
16776 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16777 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16778 87usize,
16779 1u8,
16780 val as u64,
16781 )
16782 }
16783 }
16784 #[inline]
16785 pub fn l1ip_vpipt(&self) -> __u64 {
16786 unsafe { ::std::mem::transmute(self._bitfield_1.get(88usize, 1u8) as u64) }
16787 }
16788 #[inline]
16789 pub fn set_l1ip_vpipt(&mut self, val: __u64) {
16790 unsafe {
16791 let val: u64 = ::std::mem::transmute(val);
16792 self._bitfield_1.set(88usize, 1u8, val as u64)
16793 }
16794 }
16795 #[inline]
16796 pub unsafe fn l1ip_vpipt_raw(this: *const Self) -> __u64 {
16797 unsafe {
16798 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16799 ::std::ptr::addr_of!((*this)._bitfield_1),
16800 88usize,
16801 1u8,
16802 ) as u64)
16803 }
16804 }
16805 #[inline]
16806 pub unsafe fn set_l1ip_vpipt_raw(this: *mut Self, val: __u64) {
16807 unsafe {
16808 let val: u64 = ::std::mem::transmute(val);
16809 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16810 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16811 88usize,
16812 1u8,
16813 val as u64,
16814 )
16815 }
16816 }
16817 #[inline]
16818 pub fn l1ip_vipt(&self) -> __u64 {
16819 unsafe { ::std::mem::transmute(self._bitfield_1.get(89usize, 1u8) as u64) }
16820 }
16821 #[inline]
16822 pub fn set_l1ip_vipt(&mut self, val: __u64) {
16823 unsafe {
16824 let val: u64 = ::std::mem::transmute(val);
16825 self._bitfield_1.set(89usize, 1u8, val as u64)
16826 }
16827 }
16828 #[inline]
16829 pub unsafe fn l1ip_vipt_raw(this: *const Self) -> __u64 {
16830 unsafe {
16831 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16832 ::std::ptr::addr_of!((*this)._bitfield_1),
16833 89usize,
16834 1u8,
16835 ) as u64)
16836 }
16837 }
16838 #[inline]
16839 pub unsafe fn set_l1ip_vipt_raw(this: *mut Self, val: __u64) {
16840 unsafe {
16841 let val: u64 = ::std::mem::transmute(val);
16842 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16843 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16844 89usize,
16845 1u8,
16846 val as u64,
16847 )
16848 }
16849 }
16850 #[inline]
16851 pub fn debug_v8(&self) -> __u64 {
16852 unsafe { ::std::mem::transmute(self._bitfield_1.get(90usize, 1u8) as u64) }
16853 }
16854 #[inline]
16855 pub fn set_debug_v8(&mut self, val: __u64) {
16856 unsafe {
16857 let val: u64 = ::std::mem::transmute(val);
16858 self._bitfield_1.set(90usize, 1u8, val as u64)
16859 }
16860 }
16861 #[inline]
16862 pub unsafe fn debug_v8_raw(this: *const Self) -> __u64 {
16863 unsafe {
16864 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16865 ::std::ptr::addr_of!((*this)._bitfield_1),
16866 90usize,
16867 1u8,
16868 ) as u64)
16869 }
16870 }
16871 #[inline]
16872 pub unsafe fn set_debug_v8_raw(this: *mut Self, val: __u64) {
16873 unsafe {
16874 let val: u64 = ::std::mem::transmute(val);
16875 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16876 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16877 90usize,
16878 1u8,
16879 val as u64,
16880 )
16881 }
16882 }
16883 #[inline]
16884 pub fn debug_v8p2(&self) -> __u64 {
16885 unsafe { ::std::mem::transmute(self._bitfield_1.get(91usize, 1u8) as u64) }
16886 }
16887 #[inline]
16888 pub fn set_debug_v8p2(&mut self, val: __u64) {
16889 unsafe {
16890 let val: u64 = ::std::mem::transmute(val);
16891 self._bitfield_1.set(91usize, 1u8, val as u64)
16892 }
16893 }
16894 #[inline]
16895 pub unsafe fn debug_v8p2_raw(this: *const Self) -> __u64 {
16896 unsafe {
16897 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16898 ::std::ptr::addr_of!((*this)._bitfield_1),
16899 91usize,
16900 1u8,
16901 ) as u64)
16902 }
16903 }
16904 #[inline]
16905 pub unsafe fn set_debug_v8p2_raw(this: *mut Self, val: __u64) {
16906 unsafe {
16907 let val: u64 = ::std::mem::transmute(val);
16908 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16909 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16910 91usize,
16911 1u8,
16912 val as u64,
16913 )
16914 }
16915 }
16916 #[inline]
16917 pub fn debug_v8p4(&self) -> __u64 {
16918 unsafe { ::std::mem::transmute(self._bitfield_1.get(92usize, 1u8) as u64) }
16919 }
16920 #[inline]
16921 pub fn set_debug_v8p4(&mut self, val: __u64) {
16922 unsafe {
16923 let val: u64 = ::std::mem::transmute(val);
16924 self._bitfield_1.set(92usize, 1u8, val as u64)
16925 }
16926 }
16927 #[inline]
16928 pub unsafe fn debug_v8p4_raw(this: *const Self) -> __u64 {
16929 unsafe {
16930 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16931 ::std::ptr::addr_of!((*this)._bitfield_1),
16932 92usize,
16933 1u8,
16934 ) as u64)
16935 }
16936 }
16937 #[inline]
16938 pub unsafe fn set_debug_v8p4_raw(this: *mut Self, val: __u64) {
16939 unsafe {
16940 let val: u64 = ::std::mem::transmute(val);
16941 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16942 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16943 92usize,
16944 1u8,
16945 val as u64,
16946 )
16947 }
16948 }
16949 #[inline]
16950 pub fn pmu_v3_arm_v87(&self) -> __u64 {
16951 unsafe { ::std::mem::transmute(self._bitfield_1.get(93usize, 1u8) as u64) }
16952 }
16953 #[inline]
16954 pub fn set_pmu_v3_arm_v87(&mut self, val: __u64) {
16955 unsafe {
16956 let val: u64 = ::std::mem::transmute(val);
16957 self._bitfield_1.set(93usize, 1u8, val as u64)
16958 }
16959 }
16960 #[inline]
16961 pub unsafe fn pmu_v3_arm_v87_raw(this: *const Self) -> __u64 {
16962 unsafe {
16963 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16964 ::std::ptr::addr_of!((*this)._bitfield_1),
16965 93usize,
16966 1u8,
16967 ) as u64)
16968 }
16969 }
16970 #[inline]
16971 pub unsafe fn set_pmu_v3_arm_v87_raw(this: *mut Self, val: __u64) {
16972 unsafe {
16973 let val: u64 = ::std::mem::transmute(val);
16974 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16975 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
16976 93usize,
16977 1u8,
16978 val as u64,
16979 )
16980 }
16981 }
16982 #[inline]
16983 pub fn double_lock(&self) -> __u64 {
16984 unsafe { ::std::mem::transmute(self._bitfield_1.get(94usize, 1u8) as u64) }
16985 }
16986 #[inline]
16987 pub fn set_double_lock(&mut self, val: __u64) {
16988 unsafe {
16989 let val: u64 = ::std::mem::transmute(val);
16990 self._bitfield_1.set(94usize, 1u8, val as u64)
16991 }
16992 }
16993 #[inline]
16994 pub unsafe fn double_lock_raw(this: *const Self) -> __u64 {
16995 unsafe {
16996 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16997 ::std::ptr::addr_of!((*this)._bitfield_1),
16998 94usize,
16999 1u8,
17000 ) as u64)
17001 }
17002 }
17003 #[inline]
17004 pub unsafe fn set_double_lock_raw(this: *mut Self, val: __u64) {
17005 unsafe {
17006 let val: u64 = ::std::mem::transmute(val);
17007 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17008 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17009 94usize,
17010 1u8,
17011 val as u64,
17012 )
17013 }
17014 }
17015 #[inline]
17016 pub fn clrbhb(&self) -> __u64 {
17017 unsafe { ::std::mem::transmute(self._bitfield_1.get(95usize, 1u8) as u64) }
17018 }
17019 #[inline]
17020 pub fn set_clrbhb(&mut self, val: __u64) {
17021 unsafe {
17022 let val: u64 = ::std::mem::transmute(val);
17023 self._bitfield_1.set(95usize, 1u8, val as u64)
17024 }
17025 }
17026 #[inline]
17027 pub unsafe fn clrbhb_raw(this: *const Self) -> __u64 {
17028 unsafe {
17029 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17030 ::std::ptr::addr_of!((*this)._bitfield_1),
17031 95usize,
17032 1u8,
17033 ) as u64)
17034 }
17035 }
17036 #[inline]
17037 pub unsafe fn set_clrbhb_raw(this: *mut Self, val: __u64) {
17038 unsafe {
17039 let val: u64 = ::std::mem::transmute(val);
17040 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17041 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17042 95usize,
17043 1u8,
17044 val as u64,
17045 )
17046 }
17047 }
17048 #[inline]
17049 pub fn spe(&self) -> __u64 {
17050 unsafe { ::std::mem::transmute(self._bitfield_1.get(96usize, 1u8) as u64) }
17051 }
17052 #[inline]
17053 pub fn set_spe(&mut self, val: __u64) {
17054 unsafe {
17055 let val: u64 = ::std::mem::transmute(val);
17056 self._bitfield_1.set(96usize, 1u8, val as u64)
17057 }
17058 }
17059 #[inline]
17060 pub unsafe fn spe_raw(this: *const Self) -> __u64 {
17061 unsafe {
17062 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17063 ::std::ptr::addr_of!((*this)._bitfield_1),
17064 96usize,
17065 1u8,
17066 ) as u64)
17067 }
17068 }
17069 #[inline]
17070 pub unsafe fn set_spe_raw(this: *mut Self, val: __u64) {
17071 unsafe {
17072 let val: u64 = ::std::mem::transmute(val);
17073 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17074 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17075 96usize,
17076 1u8,
17077 val as u64,
17078 )
17079 }
17080 }
17081 #[inline]
17082 pub fn spe_v1p1(&self) -> __u64 {
17083 unsafe { ::std::mem::transmute(self._bitfield_1.get(97usize, 1u8) as u64) }
17084 }
17085 #[inline]
17086 pub fn set_spe_v1p1(&mut self, val: __u64) {
17087 unsafe {
17088 let val: u64 = ::std::mem::transmute(val);
17089 self._bitfield_1.set(97usize, 1u8, val as u64)
17090 }
17091 }
17092 #[inline]
17093 pub unsafe fn spe_v1p1_raw(this: *const Self) -> __u64 {
17094 unsafe {
17095 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17096 ::std::ptr::addr_of!((*this)._bitfield_1),
17097 97usize,
17098 1u8,
17099 ) as u64)
17100 }
17101 }
17102 #[inline]
17103 pub unsafe fn set_spe_v1p1_raw(this: *mut Self, val: __u64) {
17104 unsafe {
17105 let val: u64 = ::std::mem::transmute(val);
17106 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17107 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17108 97usize,
17109 1u8,
17110 val as u64,
17111 )
17112 }
17113 }
17114 #[inline]
17115 pub fn spe_v1p2(&self) -> __u64 {
17116 unsafe { ::std::mem::transmute(self._bitfield_1.get(98usize, 1u8) as u64) }
17117 }
17118 #[inline]
17119 pub fn set_spe_v1p2(&mut self, val: __u64) {
17120 unsafe {
17121 let val: u64 = ::std::mem::transmute(val);
17122 self._bitfield_1.set(98usize, 1u8, val as u64)
17123 }
17124 }
17125 #[inline]
17126 pub unsafe fn spe_v1p2_raw(this: *const Self) -> __u64 {
17127 unsafe {
17128 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17129 ::std::ptr::addr_of!((*this)._bitfield_1),
17130 98usize,
17131 1u8,
17132 ) as u64)
17133 }
17134 }
17135 #[inline]
17136 pub unsafe fn set_spe_v1p2_raw(this: *mut Self, val: __u64) {
17137 unsafe {
17138 let val: u64 = ::std::mem::transmute(val);
17139 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17140 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17141 98usize,
17142 1u8,
17143 val as u64,
17144 )
17145 }
17146 }
17147 #[inline]
17148 pub fn tt_cnp(&self) -> __u64 {
17149 unsafe { ::std::mem::transmute(self._bitfield_1.get(99usize, 1u8) as u64) }
17150 }
17151 #[inline]
17152 pub fn set_tt_cnp(&mut self, val: __u64) {
17153 unsafe {
17154 let val: u64 = ::std::mem::transmute(val);
17155 self._bitfield_1.set(99usize, 1u8, val as u64)
17156 }
17157 }
17158 #[inline]
17159 pub unsafe fn tt_cnp_raw(this: *const Self) -> __u64 {
17160 unsafe {
17161 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17162 ::std::ptr::addr_of!((*this)._bitfield_1),
17163 99usize,
17164 1u8,
17165 ) as u64)
17166 }
17167 }
17168 #[inline]
17169 pub unsafe fn set_tt_cnp_raw(this: *mut Self, val: __u64) {
17170 unsafe {
17171 let val: u64 = ::std::mem::transmute(val);
17172 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17173 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17174 99usize,
17175 1u8,
17176 val as u64,
17177 )
17178 }
17179 }
17180 #[inline]
17181 pub fn hpds(&self) -> __u64 {
17182 unsafe { ::std::mem::transmute(self._bitfield_1.get(100usize, 1u8) as u64) }
17183 }
17184 #[inline]
17185 pub fn set_hpds(&mut self, val: __u64) {
17186 unsafe {
17187 let val: u64 = ::std::mem::transmute(val);
17188 self._bitfield_1.set(100usize, 1u8, val as u64)
17189 }
17190 }
17191 #[inline]
17192 pub unsafe fn hpds_raw(this: *const Self) -> __u64 {
17193 unsafe {
17194 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17195 ::std::ptr::addr_of!((*this)._bitfield_1),
17196 100usize,
17197 1u8,
17198 ) as u64)
17199 }
17200 }
17201 #[inline]
17202 pub unsafe fn set_hpds_raw(this: *mut Self, val: __u64) {
17203 unsafe {
17204 let val: u64 = ::std::mem::transmute(val);
17205 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17206 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17207 100usize,
17208 1u8,
17209 val as u64,
17210 )
17211 }
17212 }
17213 #[inline]
17214 pub fn sve(&self) -> __u64 {
17215 unsafe { ::std::mem::transmute(self._bitfield_1.get(101usize, 1u8) as u64) }
17216 }
17217 #[inline]
17218 pub fn set_sve(&mut self, val: __u64) {
17219 unsafe {
17220 let val: u64 = ::std::mem::transmute(val);
17221 self._bitfield_1.set(101usize, 1u8, val as u64)
17222 }
17223 }
17224 #[inline]
17225 pub unsafe fn sve_raw(this: *const Self) -> __u64 {
17226 unsafe {
17227 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17228 ::std::ptr::addr_of!((*this)._bitfield_1),
17229 101usize,
17230 1u8,
17231 ) as u64)
17232 }
17233 }
17234 #[inline]
17235 pub unsafe fn set_sve_raw(this: *mut Self, val: __u64) {
17236 unsafe {
17237 let val: u64 = ::std::mem::transmute(val);
17238 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17239 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17240 101usize,
17241 1u8,
17242 val as u64,
17243 )
17244 }
17245 }
17246 #[inline]
17247 pub fn sve_v2(&self) -> __u64 {
17248 unsafe { ::std::mem::transmute(self._bitfield_1.get(102usize, 1u8) as u64) }
17249 }
17250 #[inline]
17251 pub fn set_sve_v2(&mut self, val: __u64) {
17252 unsafe {
17253 let val: u64 = ::std::mem::transmute(val);
17254 self._bitfield_1.set(102usize, 1u8, val as u64)
17255 }
17256 }
17257 #[inline]
17258 pub unsafe fn sve_v2_raw(this: *const Self) -> __u64 {
17259 unsafe {
17260 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17261 ::std::ptr::addr_of!((*this)._bitfield_1),
17262 102usize,
17263 1u8,
17264 ) as u64)
17265 }
17266 }
17267 #[inline]
17268 pub unsafe fn set_sve_v2_raw(this: *mut Self, val: __u64) {
17269 unsafe {
17270 let val: u64 = ::std::mem::transmute(val);
17271 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17272 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17273 102usize,
17274 1u8,
17275 val as u64,
17276 )
17277 }
17278 }
17279 #[inline]
17280 pub fn sve_v2p1(&self) -> __u64 {
17281 unsafe { ::std::mem::transmute(self._bitfield_1.get(103usize, 1u8) as u64) }
17282 }
17283 #[inline]
17284 pub fn set_sve_v2p1(&mut self, val: __u64) {
17285 unsafe {
17286 let val: u64 = ::std::mem::transmute(val);
17287 self._bitfield_1.set(103usize, 1u8, val as u64)
17288 }
17289 }
17290 #[inline]
17291 pub unsafe fn sve_v2p1_raw(this: *const Self) -> __u64 {
17292 unsafe {
17293 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17294 ::std::ptr::addr_of!((*this)._bitfield_1),
17295 103usize,
17296 1u8,
17297 ) as u64)
17298 }
17299 }
17300 #[inline]
17301 pub unsafe fn set_sve_v2p1_raw(this: *mut Self, val: __u64) {
17302 unsafe {
17303 let val: u64 = ::std::mem::transmute(val);
17304 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17305 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17306 103usize,
17307 1u8,
17308 val as u64,
17309 )
17310 }
17311 }
17312 #[inline]
17313 pub fn spec_fpacc(&self) -> __u64 {
17314 unsafe { ::std::mem::transmute(self._bitfield_1.get(104usize, 1u8) as u64) }
17315 }
17316 #[inline]
17317 pub fn set_spec_fpacc(&mut self, val: __u64) {
17318 unsafe {
17319 let val: u64 = ::std::mem::transmute(val);
17320 self._bitfield_1.set(104usize, 1u8, val as u64)
17321 }
17322 }
17323 #[inline]
17324 pub unsafe fn spec_fpacc_raw(this: *const Self) -> __u64 {
17325 unsafe {
17326 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17327 ::std::ptr::addr_of!((*this)._bitfield_1),
17328 104usize,
17329 1u8,
17330 ) as u64)
17331 }
17332 }
17333 #[inline]
17334 pub unsafe fn set_spec_fpacc_raw(this: *mut Self, val: __u64) {
17335 unsafe {
17336 let val: u64 = ::std::mem::transmute(val);
17337 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17338 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17339 104usize,
17340 1u8,
17341 val as u64,
17342 )
17343 }
17344 }
17345 #[inline]
17346 pub fn sve_aes(&self) -> __u64 {
17347 unsafe { ::std::mem::transmute(self._bitfield_1.get(105usize, 1u8) as u64) }
17348 }
17349 #[inline]
17350 pub fn set_sve_aes(&mut self, val: __u64) {
17351 unsafe {
17352 let val: u64 = ::std::mem::transmute(val);
17353 self._bitfield_1.set(105usize, 1u8, val as u64)
17354 }
17355 }
17356 #[inline]
17357 pub unsafe fn sve_aes_raw(this: *const Self) -> __u64 {
17358 unsafe {
17359 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17360 ::std::ptr::addr_of!((*this)._bitfield_1),
17361 105usize,
17362 1u8,
17363 ) as u64)
17364 }
17365 }
17366 #[inline]
17367 pub unsafe fn set_sve_aes_raw(this: *mut Self, val: __u64) {
17368 unsafe {
17369 let val: u64 = ::std::mem::transmute(val);
17370 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17371 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17372 105usize,
17373 1u8,
17374 val as u64,
17375 )
17376 }
17377 }
17378 #[inline]
17379 pub fn sve_bit_perm(&self) -> __u64 {
17380 unsafe { ::std::mem::transmute(self._bitfield_1.get(106usize, 1u8) as u64) }
17381 }
17382 #[inline]
17383 pub fn set_sve_bit_perm(&mut self, val: __u64) {
17384 unsafe {
17385 let val: u64 = ::std::mem::transmute(val);
17386 self._bitfield_1.set(106usize, 1u8, val as u64)
17387 }
17388 }
17389 #[inline]
17390 pub unsafe fn sve_bit_perm_raw(this: *const Self) -> __u64 {
17391 unsafe {
17392 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17393 ::std::ptr::addr_of!((*this)._bitfield_1),
17394 106usize,
17395 1u8,
17396 ) as u64)
17397 }
17398 }
17399 #[inline]
17400 pub unsafe fn set_sve_bit_perm_raw(this: *mut Self, val: __u64) {
17401 unsafe {
17402 let val: u64 = ::std::mem::transmute(val);
17403 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17404 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17405 106usize,
17406 1u8,
17407 val as u64,
17408 )
17409 }
17410 }
17411 #[inline]
17412 pub fn sve_sha3(&self) -> __u64 {
17413 unsafe { ::std::mem::transmute(self._bitfield_1.get(107usize, 1u8) as u64) }
17414 }
17415 #[inline]
17416 pub fn set_sve_sha3(&mut self, val: __u64) {
17417 unsafe {
17418 let val: u64 = ::std::mem::transmute(val);
17419 self._bitfield_1.set(107usize, 1u8, val as u64)
17420 }
17421 }
17422 #[inline]
17423 pub unsafe fn sve_sha3_raw(this: *const Self) -> __u64 {
17424 unsafe {
17425 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17426 ::std::ptr::addr_of!((*this)._bitfield_1),
17427 107usize,
17428 1u8,
17429 ) as u64)
17430 }
17431 }
17432 #[inline]
17433 pub unsafe fn set_sve_sha3_raw(this: *mut Self, val: __u64) {
17434 unsafe {
17435 let val: u64 = ::std::mem::transmute(val);
17436 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17437 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17438 107usize,
17439 1u8,
17440 val as u64,
17441 )
17442 }
17443 }
17444 #[inline]
17445 pub fn sve_sm4(&self) -> __u64 {
17446 unsafe { ::std::mem::transmute(self._bitfield_1.get(108usize, 1u8) as u64) }
17447 }
17448 #[inline]
17449 pub fn set_sve_sm4(&mut self, val: __u64) {
17450 unsafe {
17451 let val: u64 = ::std::mem::transmute(val);
17452 self._bitfield_1.set(108usize, 1u8, val as u64)
17453 }
17454 }
17455 #[inline]
17456 pub unsafe fn sve_sm4_raw(this: *const Self) -> __u64 {
17457 unsafe {
17458 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17459 ::std::ptr::addr_of!((*this)._bitfield_1),
17460 108usize,
17461 1u8,
17462 ) as u64)
17463 }
17464 }
17465 #[inline]
17466 pub unsafe fn set_sve_sm4_raw(this: *mut Self, val: __u64) {
17467 unsafe {
17468 let val: u64 = ::std::mem::transmute(val);
17469 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17470 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17471 108usize,
17472 1u8,
17473 val as u64,
17474 )
17475 }
17476 }
17477 #[inline]
17478 pub fn e0_pd(&self) -> __u64 {
17479 unsafe { ::std::mem::transmute(self._bitfield_1.get(109usize, 1u8) as u64) }
17480 }
17481 #[inline]
17482 pub fn set_e0_pd(&mut self, val: __u64) {
17483 unsafe {
17484 let val: u64 = ::std::mem::transmute(val);
17485 self._bitfield_1.set(109usize, 1u8, val as u64)
17486 }
17487 }
17488 #[inline]
17489 pub unsafe fn e0_pd_raw(this: *const Self) -> __u64 {
17490 unsafe {
17491 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17492 ::std::ptr::addr_of!((*this)._bitfield_1),
17493 109usize,
17494 1u8,
17495 ) as u64)
17496 }
17497 }
17498 #[inline]
17499 pub unsafe fn set_e0_pd_raw(this: *mut Self, val: __u64) {
17500 unsafe {
17501 let val: u64 = ::std::mem::transmute(val);
17502 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17503 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17504 109usize,
17505 1u8,
17506 val as u64,
17507 )
17508 }
17509 }
17510 #[inline]
17511 pub fn gpa3(&self) -> __u64 {
17512 unsafe { ::std::mem::transmute(self._bitfield_1.get(110usize, 1u8) as u64) }
17513 }
17514 #[inline]
17515 pub fn set_gpa3(&mut self, val: __u64) {
17516 unsafe {
17517 let val: u64 = ::std::mem::transmute(val);
17518 self._bitfield_1.set(110usize, 1u8, val as u64)
17519 }
17520 }
17521 #[inline]
17522 pub unsafe fn gpa3_raw(this: *const Self) -> __u64 {
17523 unsafe {
17524 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17525 ::std::ptr::addr_of!((*this)._bitfield_1),
17526 110usize,
17527 1u8,
17528 ) as u64)
17529 }
17530 }
17531 #[inline]
17532 pub unsafe fn set_gpa3_raw(this: *mut Self, val: __u64) {
17533 unsafe {
17534 let val: u64 = ::std::mem::transmute(val);
17535 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17536 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17537 110usize,
17538 1u8,
17539 val as u64,
17540 )
17541 }
17542 }
17543 #[inline]
17544 pub fn apa3_base(&self) -> __u64 {
17545 unsafe { ::std::mem::transmute(self._bitfield_1.get(111usize, 1u8) as u64) }
17546 }
17547 #[inline]
17548 pub fn set_apa3_base(&mut self, val: __u64) {
17549 unsafe {
17550 let val: u64 = ::std::mem::transmute(val);
17551 self._bitfield_1.set(111usize, 1u8, val as u64)
17552 }
17553 }
17554 #[inline]
17555 pub unsafe fn apa3_base_raw(this: *const Self) -> __u64 {
17556 unsafe {
17557 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17558 ::std::ptr::addr_of!((*this)._bitfield_1),
17559 111usize,
17560 1u8,
17561 ) as u64)
17562 }
17563 }
17564 #[inline]
17565 pub unsafe fn set_apa3_base_raw(this: *mut Self, val: __u64) {
17566 unsafe {
17567 let val: u64 = ::std::mem::transmute(val);
17568 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17569 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17570 111usize,
17571 1u8,
17572 val as u64,
17573 )
17574 }
17575 }
17576 #[inline]
17577 pub fn apa3_ep(&self) -> __u64 {
17578 unsafe { ::std::mem::transmute(self._bitfield_1.get(112usize, 1u8) as u64) }
17579 }
17580 #[inline]
17581 pub fn set_apa3_ep(&mut self, val: __u64) {
17582 unsafe {
17583 let val: u64 = ::std::mem::transmute(val);
17584 self._bitfield_1.set(112usize, 1u8, val as u64)
17585 }
17586 }
17587 #[inline]
17588 pub unsafe fn apa3_ep_raw(this: *const Self) -> __u64 {
17589 unsafe {
17590 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17591 ::std::ptr::addr_of!((*this)._bitfield_1),
17592 112usize,
17593 1u8,
17594 ) as u64)
17595 }
17596 }
17597 #[inline]
17598 pub unsafe fn set_apa3_ep_raw(this: *mut Self, val: __u64) {
17599 unsafe {
17600 let val: u64 = ::std::mem::transmute(val);
17601 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17602 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17603 112usize,
17604 1u8,
17605 val as u64,
17606 )
17607 }
17608 }
17609 #[inline]
17610 pub fn apa3_ep2(&self) -> __u64 {
17611 unsafe { ::std::mem::transmute(self._bitfield_1.get(113usize, 1u8) as u64) }
17612 }
17613 #[inline]
17614 pub fn set_apa3_ep2(&mut self, val: __u64) {
17615 unsafe {
17616 let val: u64 = ::std::mem::transmute(val);
17617 self._bitfield_1.set(113usize, 1u8, val as u64)
17618 }
17619 }
17620 #[inline]
17621 pub unsafe fn apa3_ep2_raw(this: *const Self) -> __u64 {
17622 unsafe {
17623 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17624 ::std::ptr::addr_of!((*this)._bitfield_1),
17625 113usize,
17626 1u8,
17627 ) as u64)
17628 }
17629 }
17630 #[inline]
17631 pub unsafe fn set_apa3_ep2_raw(this: *mut Self, val: __u64) {
17632 unsafe {
17633 let val: u64 = ::std::mem::transmute(val);
17634 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17635 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17636 113usize,
17637 1u8,
17638 val as u64,
17639 )
17640 }
17641 }
17642 #[inline]
17643 pub fn apa3_ep2_fp(&self) -> __u64 {
17644 unsafe { ::std::mem::transmute(self._bitfield_1.get(114usize, 1u8) as u64) }
17645 }
17646 #[inline]
17647 pub fn set_apa3_ep2_fp(&mut self, val: __u64) {
17648 unsafe {
17649 let val: u64 = ::std::mem::transmute(val);
17650 self._bitfield_1.set(114usize, 1u8, val as u64)
17651 }
17652 }
17653 #[inline]
17654 pub unsafe fn apa3_ep2_fp_raw(this: *const Self) -> __u64 {
17655 unsafe {
17656 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17657 ::std::ptr::addr_of!((*this)._bitfield_1),
17658 114usize,
17659 1u8,
17660 ) as u64)
17661 }
17662 }
17663 #[inline]
17664 pub unsafe fn set_apa3_ep2_fp_raw(this: *mut Self, val: __u64) {
17665 unsafe {
17666 let val: u64 = ::std::mem::transmute(val);
17667 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17668 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17669 114usize,
17670 1u8,
17671 val as u64,
17672 )
17673 }
17674 }
17675 #[inline]
17676 pub fn apa3_ep2_fpc(&self) -> __u64 {
17677 unsafe { ::std::mem::transmute(self._bitfield_1.get(115usize, 1u8) as u64) }
17678 }
17679 #[inline]
17680 pub fn set_apa3_ep2_fpc(&mut self, val: __u64) {
17681 unsafe {
17682 let val: u64 = ::std::mem::transmute(val);
17683 self._bitfield_1.set(115usize, 1u8, val as u64)
17684 }
17685 }
17686 #[inline]
17687 pub unsafe fn apa3_ep2_fpc_raw(this: *const Self) -> __u64 {
17688 unsafe {
17689 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17690 ::std::ptr::addr_of!((*this)._bitfield_1),
17691 115usize,
17692 1u8,
17693 ) as u64)
17694 }
17695 }
17696 #[inline]
17697 pub unsafe fn set_apa3_ep2_fpc_raw(this: *mut Self, val: __u64) {
17698 unsafe {
17699 let val: u64 = ::std::mem::transmute(val);
17700 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17701 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17702 115usize,
17703 1u8,
17704 val as u64,
17705 )
17706 }
17707 }
17708 #[inline]
17709 pub fn lrcpc3(&self) -> __u64 {
17710 unsafe { ::std::mem::transmute(self._bitfield_1.get(116usize, 1u8) as u64) }
17711 }
17712 #[inline]
17713 pub fn set_lrcpc3(&mut self, val: __u64) {
17714 unsafe {
17715 let val: u64 = ::std::mem::transmute(val);
17716 self._bitfield_1.set(116usize, 1u8, val as u64)
17717 }
17718 }
17719 #[inline]
17720 pub unsafe fn lrcpc3_raw(this: *const Self) -> __u64 {
17721 unsafe {
17722 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17723 ::std::ptr::addr_of!((*this)._bitfield_1),
17724 116usize,
17725 1u8,
17726 ) as u64)
17727 }
17728 }
17729 #[inline]
17730 pub unsafe fn set_lrcpc3_raw(this: *mut Self, val: __u64) {
17731 unsafe {
17732 let val: u64 = ::std::mem::transmute(val);
17733 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17734 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17735 116usize,
17736 1u8,
17737 val as u64,
17738 )
17739 }
17740 }
17741 #[inline]
17742 pub fn sme(&self) -> __u64 {
17743 unsafe { ::std::mem::transmute(self._bitfield_1.get(117usize, 1u8) as u64) }
17744 }
17745 #[inline]
17746 pub fn set_sme(&mut self, val: __u64) {
17747 unsafe {
17748 let val: u64 = ::std::mem::transmute(val);
17749 self._bitfield_1.set(117usize, 1u8, val as u64)
17750 }
17751 }
17752 #[inline]
17753 pub unsafe fn sme_raw(this: *const Self) -> __u64 {
17754 unsafe {
17755 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17756 ::std::ptr::addr_of!((*this)._bitfield_1),
17757 117usize,
17758 1u8,
17759 ) as u64)
17760 }
17761 }
17762 #[inline]
17763 pub unsafe fn set_sme_raw(this: *mut Self, val: __u64) {
17764 unsafe {
17765 let val: u64 = ::std::mem::transmute(val);
17766 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17767 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17768 117usize,
17769 1u8,
17770 val as u64,
17771 )
17772 }
17773 }
17774 #[inline]
17775 pub fn sme_f32_f32(&self) -> __u64 {
17776 unsafe { ::std::mem::transmute(self._bitfield_1.get(118usize, 1u8) as u64) }
17777 }
17778 #[inline]
17779 pub fn set_sme_f32_f32(&mut self, val: __u64) {
17780 unsafe {
17781 let val: u64 = ::std::mem::transmute(val);
17782 self._bitfield_1.set(118usize, 1u8, val as u64)
17783 }
17784 }
17785 #[inline]
17786 pub unsafe fn sme_f32_f32_raw(this: *const Self) -> __u64 {
17787 unsafe {
17788 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17789 ::std::ptr::addr_of!((*this)._bitfield_1),
17790 118usize,
17791 1u8,
17792 ) as u64)
17793 }
17794 }
17795 #[inline]
17796 pub unsafe fn set_sme_f32_f32_raw(this: *mut Self, val: __u64) {
17797 unsafe {
17798 let val: u64 = ::std::mem::transmute(val);
17799 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17800 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17801 118usize,
17802 1u8,
17803 val as u64,
17804 )
17805 }
17806 }
17807 #[inline]
17808 pub fn sme_b16_f32(&self) -> __u64 {
17809 unsafe { ::std::mem::transmute(self._bitfield_1.get(119usize, 1u8) as u64) }
17810 }
17811 #[inline]
17812 pub fn set_sme_b16_f32(&mut self, val: __u64) {
17813 unsafe {
17814 let val: u64 = ::std::mem::transmute(val);
17815 self._bitfield_1.set(119usize, 1u8, val as u64)
17816 }
17817 }
17818 #[inline]
17819 pub unsafe fn sme_b16_f32_raw(this: *const Self) -> __u64 {
17820 unsafe {
17821 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17822 ::std::ptr::addr_of!((*this)._bitfield_1),
17823 119usize,
17824 1u8,
17825 ) as u64)
17826 }
17827 }
17828 #[inline]
17829 pub unsafe fn set_sme_b16_f32_raw(this: *mut Self, val: __u64) {
17830 unsafe {
17831 let val: u64 = ::std::mem::transmute(val);
17832 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17833 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17834 119usize,
17835 1u8,
17836 val as u64,
17837 )
17838 }
17839 }
17840 #[inline]
17841 pub fn sme_f16_f32(&self) -> __u64 {
17842 unsafe { ::std::mem::transmute(self._bitfield_1.get(120usize, 1u8) as u64) }
17843 }
17844 #[inline]
17845 pub fn set_sme_f16_f32(&mut self, val: __u64) {
17846 unsafe {
17847 let val: u64 = ::std::mem::transmute(val);
17848 self._bitfield_1.set(120usize, 1u8, val as u64)
17849 }
17850 }
17851 #[inline]
17852 pub unsafe fn sme_f16_f32_raw(this: *const Self) -> __u64 {
17853 unsafe {
17854 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17855 ::std::ptr::addr_of!((*this)._bitfield_1),
17856 120usize,
17857 1u8,
17858 ) as u64)
17859 }
17860 }
17861 #[inline]
17862 pub unsafe fn set_sme_f16_f32_raw(this: *mut Self, val: __u64) {
17863 unsafe {
17864 let val: u64 = ::std::mem::transmute(val);
17865 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17866 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17867 120usize,
17868 1u8,
17869 val as u64,
17870 )
17871 }
17872 }
17873 #[inline]
17874 pub fn sme_i8_i32(&self) -> __u64 {
17875 unsafe { ::std::mem::transmute(self._bitfield_1.get(121usize, 1u8) as u64) }
17876 }
17877 #[inline]
17878 pub fn set_sme_i8_i32(&mut self, val: __u64) {
17879 unsafe {
17880 let val: u64 = ::std::mem::transmute(val);
17881 self._bitfield_1.set(121usize, 1u8, val as u64)
17882 }
17883 }
17884 #[inline]
17885 pub unsafe fn sme_i8_i32_raw(this: *const Self) -> __u64 {
17886 unsafe {
17887 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17888 ::std::ptr::addr_of!((*this)._bitfield_1),
17889 121usize,
17890 1u8,
17891 ) as u64)
17892 }
17893 }
17894 #[inline]
17895 pub unsafe fn set_sme_i8_i32_raw(this: *mut Self, val: __u64) {
17896 unsafe {
17897 let val: u64 = ::std::mem::transmute(val);
17898 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17899 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17900 121usize,
17901 1u8,
17902 val as u64,
17903 )
17904 }
17905 }
17906 #[inline]
17907 pub fn sme_f64_f64(&self) -> __u64 {
17908 unsafe { ::std::mem::transmute(self._bitfield_1.get(122usize, 1u8) as u64) }
17909 }
17910 #[inline]
17911 pub fn set_sme_f64_f64(&mut self, val: __u64) {
17912 unsafe {
17913 let val: u64 = ::std::mem::transmute(val);
17914 self._bitfield_1.set(122usize, 1u8, val as u64)
17915 }
17916 }
17917 #[inline]
17918 pub unsafe fn sme_f64_f64_raw(this: *const Self) -> __u64 {
17919 unsafe {
17920 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17921 ::std::ptr::addr_of!((*this)._bitfield_1),
17922 122usize,
17923 1u8,
17924 ) as u64)
17925 }
17926 }
17927 #[inline]
17928 pub unsafe fn set_sme_f64_f64_raw(this: *mut Self, val: __u64) {
17929 unsafe {
17930 let val: u64 = ::std::mem::transmute(val);
17931 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17932 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17933 122usize,
17934 1u8,
17935 val as u64,
17936 )
17937 }
17938 }
17939 #[inline]
17940 pub fn sme_i16_i64(&self) -> __u64 {
17941 unsafe { ::std::mem::transmute(self._bitfield_1.get(123usize, 1u8) as u64) }
17942 }
17943 #[inline]
17944 pub fn set_sme_i16_i64(&mut self, val: __u64) {
17945 unsafe {
17946 let val: u64 = ::std::mem::transmute(val);
17947 self._bitfield_1.set(123usize, 1u8, val as u64)
17948 }
17949 }
17950 #[inline]
17951 pub unsafe fn sme_i16_i64_raw(this: *const Self) -> __u64 {
17952 unsafe {
17953 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17954 ::std::ptr::addr_of!((*this)._bitfield_1),
17955 123usize,
17956 1u8,
17957 ) as u64)
17958 }
17959 }
17960 #[inline]
17961 pub unsafe fn set_sme_i16_i64_raw(this: *mut Self, val: __u64) {
17962 unsafe {
17963 let val: u64 = ::std::mem::transmute(val);
17964 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17965 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17966 123usize,
17967 1u8,
17968 val as u64,
17969 )
17970 }
17971 }
17972 #[inline]
17973 pub fn reserved_bank1(&self) -> __u64 {
17974 unsafe { ::std::mem::transmute(self._bitfield_1.get(124usize, 4u8) as u64) }
17975 }
17976 #[inline]
17977 pub fn set_reserved_bank1(&mut self, val: __u64) {
17978 unsafe {
17979 let val: u64 = ::std::mem::transmute(val);
17980 self._bitfield_1.set(124usize, 4u8, val as u64)
17981 }
17982 }
17983 #[inline]
17984 pub unsafe fn reserved_bank1_raw(this: *const Self) -> __u64 {
17985 unsafe {
17986 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17987 ::std::ptr::addr_of!((*this)._bitfield_1),
17988 124usize,
17989 4u8,
17990 ) as u64)
17991 }
17992 }
17993 #[inline]
17994 pub unsafe fn set_reserved_bank1_raw(this: *mut Self, val: __u64) {
17995 unsafe {
17996 let val: u64 = ::std::mem::transmute(val);
17997 <__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17998 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
17999 124usize,
18000 4u8,
18001 val as u64,
18002 )
18003 }
18004 }
18005 #[inline]
18006 pub fn new_bitfield_1(
18007 asid16: __u64,
18008 t_gran16: __u64,
18009 t_gran64: __u64,
18010 haf: __u64,
18011 hdbs: __u64,
18012 pan: __u64,
18013 at_s1e1: __u64,
18014 uao: __u64,
18015 el0_aarch32: __u64,
18016 fp: __u64,
18017 fp_hp: __u64,
18018 adv_simd: __u64,
18019 adv_simd_hp: __u64,
18020 gic_v3v4: __u64,
18021 gic_v4p1: __u64,
18022 ras: __u64,
18023 pmu_v3: __u64,
18024 pmu_v3_arm_v81: __u64,
18025 pmu_v3_arm_v84: __u64,
18026 pmu_v3_arm_v85: __u64,
18027 aes: __u64,
18028 poly_mul: __u64,
18029 sha1: __u64,
18030 sha256: __u64,
18031 sha512: __u64,
18032 crc32: __u64,
18033 atomic: __u64,
18034 rdm: __u64,
18035 sha3: __u64,
18036 sm3: __u64,
18037 sm4: __u64,
18038 dp: __u64,
18039 fhm: __u64,
18040 dc_cvap: __u64,
18041 dc_cvadp: __u64,
18042 apa_base: __u64,
18043 apa_ep: __u64,
18044 apa_ep2: __u64,
18045 apa_ep2_fp: __u64,
18046 apa_ep2_fpc: __u64,
18047 jscvt: __u64,
18048 fcma: __u64,
18049 rcpc_v83: __u64,
18050 rcpc_v84: __u64,
18051 gpa: __u64,
18052 l1ip_pipt: __u64,
18053 dz_permitted: __u64,
18054 ssbs: __u64,
18055 ssbs_rw: __u64,
18056 smccc_w1_supported: __u64,
18057 smccc_w1_mitigated: __u64,
18058 smccc_w2_supported: __u64,
18059 smccc_w2_mitigated: __u64,
18060 csv2: __u64,
18061 csv3: __u64,
18062 sb: __u64,
18063 idc: __u64,
18064 dic: __u64,
18065 tlbi_os: __u64,
18066 tlbi_os_range: __u64,
18067 flags_m: __u64,
18068 flags_m2: __u64,
18069 bf16: __u64,
18070 ebf16: __u64,
18071 sve_bf16: __u64,
18072 sve_ebf16: __u64,
18073 i8mm: __u64,
18074 sve_i8mm: __u64,
18075 frintts: __u64,
18076 specres: __u64,
18077 mtpmu: __u64,
18078 rpres: __u64,
18079 exs: __u64,
18080 spec_sei: __u64,
18081 ets: __u64,
18082 afp: __u64,
18083 iesb: __u64,
18084 rng: __u64,
18085 lse2: __u64,
18086 idst: __u64,
18087 ras_v1p1: __u64,
18088 ras_frac_v1p1: __u64,
18089 sel2: __u64,
18090 amu_v1: __u64,
18091 amu_v1p1: __u64,
18092 dit: __u64,
18093 ccidx: __u64,
18094 fgt_for_intercepts: __u64,
18095 l1ip_vpipt: __u64,
18096 l1ip_vipt: __u64,
18097 debug_v8: __u64,
18098 debug_v8p2: __u64,
18099 debug_v8p4: __u64,
18100 pmu_v3_arm_v87: __u64,
18101 double_lock: __u64,
18102 clrbhb: __u64,
18103 spe: __u64,
18104 spe_v1p1: __u64,
18105 spe_v1p2: __u64,
18106 tt_cnp: __u64,
18107 hpds: __u64,
18108 sve: __u64,
18109 sve_v2: __u64,
18110 sve_v2p1: __u64,
18111 spec_fpacc: __u64,
18112 sve_aes: __u64,
18113 sve_bit_perm: __u64,
18114 sve_sha3: __u64,
18115 sve_sm4: __u64,
18116 e0_pd: __u64,
18117 gpa3: __u64,
18118 apa3_base: __u64,
18119 apa3_ep: __u64,
18120 apa3_ep2: __u64,
18121 apa3_ep2_fp: __u64,
18122 apa3_ep2_fpc: __u64,
18123 lrcpc3: __u64,
18124 sme: __u64,
18125 sme_f32_f32: __u64,
18126 sme_b16_f32: __u64,
18127 sme_f16_f32: __u64,
18128 sme_i8_i32: __u64,
18129 sme_f64_f64: __u64,
18130 sme_i16_i64: __u64,
18131 reserved_bank1: __u64,
18132 ) -> __BindgenBitfieldUnit<[u8; 16usize]> {
18133 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 16usize]> = Default::default();
18134 __bindgen_bitfield_unit.set(0usize, 1u8, {
18135 let asid16: u64 = unsafe { ::std::mem::transmute(asid16) };
18136 asid16 as u64
18137 });
18138 __bindgen_bitfield_unit.set(1usize, 1u8, {
18139 let t_gran16: u64 = unsafe { ::std::mem::transmute(t_gran16) };
18140 t_gran16 as u64
18141 });
18142 __bindgen_bitfield_unit.set(2usize, 1u8, {
18143 let t_gran64: u64 = unsafe { ::std::mem::transmute(t_gran64) };
18144 t_gran64 as u64
18145 });
18146 __bindgen_bitfield_unit.set(3usize, 1u8, {
18147 let haf: u64 = unsafe { ::std::mem::transmute(haf) };
18148 haf as u64
18149 });
18150 __bindgen_bitfield_unit.set(4usize, 1u8, {
18151 let hdbs: u64 = unsafe { ::std::mem::transmute(hdbs) };
18152 hdbs as u64
18153 });
18154 __bindgen_bitfield_unit.set(5usize, 1u8, {
18155 let pan: u64 = unsafe { ::std::mem::transmute(pan) };
18156 pan as u64
18157 });
18158 __bindgen_bitfield_unit.set(6usize, 1u8, {
18159 let at_s1e1: u64 = unsafe { ::std::mem::transmute(at_s1e1) };
18160 at_s1e1 as u64
18161 });
18162 __bindgen_bitfield_unit.set(7usize, 1u8, {
18163 let uao: u64 = unsafe { ::std::mem::transmute(uao) };
18164 uao as u64
18165 });
18166 __bindgen_bitfield_unit.set(8usize, 1u8, {
18167 let el0_aarch32: u64 = unsafe { ::std::mem::transmute(el0_aarch32) };
18168 el0_aarch32 as u64
18169 });
18170 __bindgen_bitfield_unit.set(9usize, 1u8, {
18171 let fp: u64 = unsafe { ::std::mem::transmute(fp) };
18172 fp as u64
18173 });
18174 __bindgen_bitfield_unit.set(10usize, 1u8, {
18175 let fp_hp: u64 = unsafe { ::std::mem::transmute(fp_hp) };
18176 fp_hp as u64
18177 });
18178 __bindgen_bitfield_unit.set(11usize, 1u8, {
18179 let adv_simd: u64 = unsafe { ::std::mem::transmute(adv_simd) };
18180 adv_simd as u64
18181 });
18182 __bindgen_bitfield_unit.set(12usize, 1u8, {
18183 let adv_simd_hp: u64 = unsafe { ::std::mem::transmute(adv_simd_hp) };
18184 adv_simd_hp as u64
18185 });
18186 __bindgen_bitfield_unit.set(13usize, 1u8, {
18187 let gic_v3v4: u64 = unsafe { ::std::mem::transmute(gic_v3v4) };
18188 gic_v3v4 as u64
18189 });
18190 __bindgen_bitfield_unit.set(14usize, 1u8, {
18191 let gic_v4p1: u64 = unsafe { ::std::mem::transmute(gic_v4p1) };
18192 gic_v4p1 as u64
18193 });
18194 __bindgen_bitfield_unit.set(15usize, 1u8, {
18195 let ras: u64 = unsafe { ::std::mem::transmute(ras) };
18196 ras as u64
18197 });
18198 __bindgen_bitfield_unit.set(16usize, 1u8, {
18199 let pmu_v3: u64 = unsafe { ::std::mem::transmute(pmu_v3) };
18200 pmu_v3 as u64
18201 });
18202 __bindgen_bitfield_unit.set(17usize, 1u8, {
18203 let pmu_v3_arm_v81: u64 = unsafe { ::std::mem::transmute(pmu_v3_arm_v81) };
18204 pmu_v3_arm_v81 as u64
18205 });
18206 __bindgen_bitfield_unit.set(18usize, 1u8, {
18207 let pmu_v3_arm_v84: u64 = unsafe { ::std::mem::transmute(pmu_v3_arm_v84) };
18208 pmu_v3_arm_v84 as u64
18209 });
18210 __bindgen_bitfield_unit.set(19usize, 1u8, {
18211 let pmu_v3_arm_v85: u64 = unsafe { ::std::mem::transmute(pmu_v3_arm_v85) };
18212 pmu_v3_arm_v85 as u64
18213 });
18214 __bindgen_bitfield_unit.set(20usize, 1u8, {
18215 let aes: u64 = unsafe { ::std::mem::transmute(aes) };
18216 aes as u64
18217 });
18218 __bindgen_bitfield_unit.set(21usize, 1u8, {
18219 let poly_mul: u64 = unsafe { ::std::mem::transmute(poly_mul) };
18220 poly_mul as u64
18221 });
18222 __bindgen_bitfield_unit.set(22usize, 1u8, {
18223 let sha1: u64 = unsafe { ::std::mem::transmute(sha1) };
18224 sha1 as u64
18225 });
18226 __bindgen_bitfield_unit.set(23usize, 1u8, {
18227 let sha256: u64 = unsafe { ::std::mem::transmute(sha256) };
18228 sha256 as u64
18229 });
18230 __bindgen_bitfield_unit.set(24usize, 1u8, {
18231 let sha512: u64 = unsafe { ::std::mem::transmute(sha512) };
18232 sha512 as u64
18233 });
18234 __bindgen_bitfield_unit.set(25usize, 1u8, {
18235 let crc32: u64 = unsafe { ::std::mem::transmute(crc32) };
18236 crc32 as u64
18237 });
18238 __bindgen_bitfield_unit.set(26usize, 1u8, {
18239 let atomic: u64 = unsafe { ::std::mem::transmute(atomic) };
18240 atomic as u64
18241 });
18242 __bindgen_bitfield_unit.set(27usize, 1u8, {
18243 let rdm: u64 = unsafe { ::std::mem::transmute(rdm) };
18244 rdm as u64
18245 });
18246 __bindgen_bitfield_unit.set(28usize, 1u8, {
18247 let sha3: u64 = unsafe { ::std::mem::transmute(sha3) };
18248 sha3 as u64
18249 });
18250 __bindgen_bitfield_unit.set(29usize, 1u8, {
18251 let sm3: u64 = unsafe { ::std::mem::transmute(sm3) };
18252 sm3 as u64
18253 });
18254 __bindgen_bitfield_unit.set(30usize, 1u8, {
18255 let sm4: u64 = unsafe { ::std::mem::transmute(sm4) };
18256 sm4 as u64
18257 });
18258 __bindgen_bitfield_unit.set(31usize, 1u8, {
18259 let dp: u64 = unsafe { ::std::mem::transmute(dp) };
18260 dp as u64
18261 });
18262 __bindgen_bitfield_unit.set(32usize, 1u8, {
18263 let fhm: u64 = unsafe { ::std::mem::transmute(fhm) };
18264 fhm as u64
18265 });
18266 __bindgen_bitfield_unit.set(33usize, 1u8, {
18267 let dc_cvap: u64 = unsafe { ::std::mem::transmute(dc_cvap) };
18268 dc_cvap as u64
18269 });
18270 __bindgen_bitfield_unit.set(34usize, 1u8, {
18271 let dc_cvadp: u64 = unsafe { ::std::mem::transmute(dc_cvadp) };
18272 dc_cvadp as u64
18273 });
18274 __bindgen_bitfield_unit.set(35usize, 1u8, {
18275 let apa_base: u64 = unsafe { ::std::mem::transmute(apa_base) };
18276 apa_base as u64
18277 });
18278 __bindgen_bitfield_unit.set(36usize, 1u8, {
18279 let apa_ep: u64 = unsafe { ::std::mem::transmute(apa_ep) };
18280 apa_ep as u64
18281 });
18282 __bindgen_bitfield_unit.set(37usize, 1u8, {
18283 let apa_ep2: u64 = unsafe { ::std::mem::transmute(apa_ep2) };
18284 apa_ep2 as u64
18285 });
18286 __bindgen_bitfield_unit.set(38usize, 1u8, {
18287 let apa_ep2_fp: u64 = unsafe { ::std::mem::transmute(apa_ep2_fp) };
18288 apa_ep2_fp as u64
18289 });
18290 __bindgen_bitfield_unit.set(39usize, 1u8, {
18291 let apa_ep2_fpc: u64 = unsafe { ::std::mem::transmute(apa_ep2_fpc) };
18292 apa_ep2_fpc as u64
18293 });
18294 __bindgen_bitfield_unit.set(40usize, 1u8, {
18295 let jscvt: u64 = unsafe { ::std::mem::transmute(jscvt) };
18296 jscvt as u64
18297 });
18298 __bindgen_bitfield_unit.set(41usize, 1u8, {
18299 let fcma: u64 = unsafe { ::std::mem::transmute(fcma) };
18300 fcma as u64
18301 });
18302 __bindgen_bitfield_unit.set(42usize, 1u8, {
18303 let rcpc_v83: u64 = unsafe { ::std::mem::transmute(rcpc_v83) };
18304 rcpc_v83 as u64
18305 });
18306 __bindgen_bitfield_unit.set(43usize, 1u8, {
18307 let rcpc_v84: u64 = unsafe { ::std::mem::transmute(rcpc_v84) };
18308 rcpc_v84 as u64
18309 });
18310 __bindgen_bitfield_unit.set(44usize, 1u8, {
18311 let gpa: u64 = unsafe { ::std::mem::transmute(gpa) };
18312 gpa as u64
18313 });
18314 __bindgen_bitfield_unit.set(45usize, 1u8, {
18315 let l1ip_pipt: u64 = unsafe { ::std::mem::transmute(l1ip_pipt) };
18316 l1ip_pipt as u64
18317 });
18318 __bindgen_bitfield_unit.set(46usize, 1u8, {
18319 let dz_permitted: u64 = unsafe { ::std::mem::transmute(dz_permitted) };
18320 dz_permitted as u64
18321 });
18322 __bindgen_bitfield_unit.set(47usize, 1u8, {
18323 let ssbs: u64 = unsafe { ::std::mem::transmute(ssbs) };
18324 ssbs as u64
18325 });
18326 __bindgen_bitfield_unit.set(48usize, 1u8, {
18327 let ssbs_rw: u64 = unsafe { ::std::mem::transmute(ssbs_rw) };
18328 ssbs_rw as u64
18329 });
18330 __bindgen_bitfield_unit.set(49usize, 1u8, {
18331 let smccc_w1_supported: u64 = unsafe { ::std::mem::transmute(smccc_w1_supported) };
18332 smccc_w1_supported as u64
18333 });
18334 __bindgen_bitfield_unit.set(50usize, 1u8, {
18335 let smccc_w1_mitigated: u64 = unsafe { ::std::mem::transmute(smccc_w1_mitigated) };
18336 smccc_w1_mitigated as u64
18337 });
18338 __bindgen_bitfield_unit.set(51usize, 1u8, {
18339 let smccc_w2_supported: u64 = unsafe { ::std::mem::transmute(smccc_w2_supported) };
18340 smccc_w2_supported as u64
18341 });
18342 __bindgen_bitfield_unit.set(52usize, 1u8, {
18343 let smccc_w2_mitigated: u64 = unsafe { ::std::mem::transmute(smccc_w2_mitigated) };
18344 smccc_w2_mitigated as u64
18345 });
18346 __bindgen_bitfield_unit.set(53usize, 1u8, {
18347 let csv2: u64 = unsafe { ::std::mem::transmute(csv2) };
18348 csv2 as u64
18349 });
18350 __bindgen_bitfield_unit.set(54usize, 1u8, {
18351 let csv3: u64 = unsafe { ::std::mem::transmute(csv3) };
18352 csv3 as u64
18353 });
18354 __bindgen_bitfield_unit.set(55usize, 1u8, {
18355 let sb: u64 = unsafe { ::std::mem::transmute(sb) };
18356 sb as u64
18357 });
18358 __bindgen_bitfield_unit.set(56usize, 1u8, {
18359 let idc: u64 = unsafe { ::std::mem::transmute(idc) };
18360 idc as u64
18361 });
18362 __bindgen_bitfield_unit.set(57usize, 1u8, {
18363 let dic: u64 = unsafe { ::std::mem::transmute(dic) };
18364 dic as u64
18365 });
18366 __bindgen_bitfield_unit.set(58usize, 1u8, {
18367 let tlbi_os: u64 = unsafe { ::std::mem::transmute(tlbi_os) };
18368 tlbi_os as u64
18369 });
18370 __bindgen_bitfield_unit.set(59usize, 1u8, {
18371 let tlbi_os_range: u64 = unsafe { ::std::mem::transmute(tlbi_os_range) };
18372 tlbi_os_range as u64
18373 });
18374 __bindgen_bitfield_unit.set(60usize, 1u8, {
18375 let flags_m: u64 = unsafe { ::std::mem::transmute(flags_m) };
18376 flags_m as u64
18377 });
18378 __bindgen_bitfield_unit.set(61usize, 1u8, {
18379 let flags_m2: u64 = unsafe { ::std::mem::transmute(flags_m2) };
18380 flags_m2 as u64
18381 });
18382 __bindgen_bitfield_unit.set(62usize, 1u8, {
18383 let bf16: u64 = unsafe { ::std::mem::transmute(bf16) };
18384 bf16 as u64
18385 });
18386 __bindgen_bitfield_unit.set(63usize, 1u8, {
18387 let ebf16: u64 = unsafe { ::std::mem::transmute(ebf16) };
18388 ebf16 as u64
18389 });
18390 __bindgen_bitfield_unit.set(64usize, 1u8, {
18391 let sve_bf16: u64 = unsafe { ::std::mem::transmute(sve_bf16) };
18392 sve_bf16 as u64
18393 });
18394 __bindgen_bitfield_unit.set(65usize, 1u8, {
18395 let sve_ebf16: u64 = unsafe { ::std::mem::transmute(sve_ebf16) };
18396 sve_ebf16 as u64
18397 });
18398 __bindgen_bitfield_unit.set(66usize, 1u8, {
18399 let i8mm: u64 = unsafe { ::std::mem::transmute(i8mm) };
18400 i8mm as u64
18401 });
18402 __bindgen_bitfield_unit.set(67usize, 1u8, {
18403 let sve_i8mm: u64 = unsafe { ::std::mem::transmute(sve_i8mm) };
18404 sve_i8mm as u64
18405 });
18406 __bindgen_bitfield_unit.set(68usize, 1u8, {
18407 let frintts: u64 = unsafe { ::std::mem::transmute(frintts) };
18408 frintts as u64
18409 });
18410 __bindgen_bitfield_unit.set(69usize, 1u8, {
18411 let specres: u64 = unsafe { ::std::mem::transmute(specres) };
18412 specres as u64
18413 });
18414 __bindgen_bitfield_unit.set(70usize, 1u8, {
18415 let mtpmu: u64 = unsafe { ::std::mem::transmute(mtpmu) };
18416 mtpmu as u64
18417 });
18418 __bindgen_bitfield_unit.set(71usize, 1u8, {
18419 let rpres: u64 = unsafe { ::std::mem::transmute(rpres) };
18420 rpres as u64
18421 });
18422 __bindgen_bitfield_unit.set(72usize, 1u8, {
18423 let exs: u64 = unsafe { ::std::mem::transmute(exs) };
18424 exs as u64
18425 });
18426 __bindgen_bitfield_unit.set(73usize, 1u8, {
18427 let spec_sei: u64 = unsafe { ::std::mem::transmute(spec_sei) };
18428 spec_sei as u64
18429 });
18430 __bindgen_bitfield_unit.set(74usize, 1u8, {
18431 let ets: u64 = unsafe { ::std::mem::transmute(ets) };
18432 ets as u64
18433 });
18434 __bindgen_bitfield_unit.set(75usize, 1u8, {
18435 let afp: u64 = unsafe { ::std::mem::transmute(afp) };
18436 afp as u64
18437 });
18438 __bindgen_bitfield_unit.set(76usize, 1u8, {
18439 let iesb: u64 = unsafe { ::std::mem::transmute(iesb) };
18440 iesb as u64
18441 });
18442 __bindgen_bitfield_unit.set(77usize, 1u8, {
18443 let rng: u64 = unsafe { ::std::mem::transmute(rng) };
18444 rng as u64
18445 });
18446 __bindgen_bitfield_unit.set(78usize, 1u8, {
18447 let lse2: u64 = unsafe { ::std::mem::transmute(lse2) };
18448 lse2 as u64
18449 });
18450 __bindgen_bitfield_unit.set(79usize, 1u8, {
18451 let idst: u64 = unsafe { ::std::mem::transmute(idst) };
18452 idst as u64
18453 });
18454 __bindgen_bitfield_unit.set(80usize, 1u8, {
18455 let ras_v1p1: u64 = unsafe { ::std::mem::transmute(ras_v1p1) };
18456 ras_v1p1 as u64
18457 });
18458 __bindgen_bitfield_unit.set(81usize, 1u8, {
18459 let ras_frac_v1p1: u64 = unsafe { ::std::mem::transmute(ras_frac_v1p1) };
18460 ras_frac_v1p1 as u64
18461 });
18462 __bindgen_bitfield_unit.set(82usize, 1u8, {
18463 let sel2: u64 = unsafe { ::std::mem::transmute(sel2) };
18464 sel2 as u64
18465 });
18466 __bindgen_bitfield_unit.set(83usize, 1u8, {
18467 let amu_v1: u64 = unsafe { ::std::mem::transmute(amu_v1) };
18468 amu_v1 as u64
18469 });
18470 __bindgen_bitfield_unit.set(84usize, 1u8, {
18471 let amu_v1p1: u64 = unsafe { ::std::mem::transmute(amu_v1p1) };
18472 amu_v1p1 as u64
18473 });
18474 __bindgen_bitfield_unit.set(85usize, 1u8, {
18475 let dit: u64 = unsafe { ::std::mem::transmute(dit) };
18476 dit as u64
18477 });
18478 __bindgen_bitfield_unit.set(86usize, 1u8, {
18479 let ccidx: u64 = unsafe { ::std::mem::transmute(ccidx) };
18480 ccidx as u64
18481 });
18482 __bindgen_bitfield_unit.set(87usize, 1u8, {
18483 let fgt_for_intercepts: u64 = unsafe { ::std::mem::transmute(fgt_for_intercepts) };
18484 fgt_for_intercepts as u64
18485 });
18486 __bindgen_bitfield_unit.set(88usize, 1u8, {
18487 let l1ip_vpipt: u64 = unsafe { ::std::mem::transmute(l1ip_vpipt) };
18488 l1ip_vpipt as u64
18489 });
18490 __bindgen_bitfield_unit.set(89usize, 1u8, {
18491 let l1ip_vipt: u64 = unsafe { ::std::mem::transmute(l1ip_vipt) };
18492 l1ip_vipt as u64
18493 });
18494 __bindgen_bitfield_unit.set(90usize, 1u8, {
18495 let debug_v8: u64 = unsafe { ::std::mem::transmute(debug_v8) };
18496 debug_v8 as u64
18497 });
18498 __bindgen_bitfield_unit.set(91usize, 1u8, {
18499 let debug_v8p2: u64 = unsafe { ::std::mem::transmute(debug_v8p2) };
18500 debug_v8p2 as u64
18501 });
18502 __bindgen_bitfield_unit.set(92usize, 1u8, {
18503 let debug_v8p4: u64 = unsafe { ::std::mem::transmute(debug_v8p4) };
18504 debug_v8p4 as u64
18505 });
18506 __bindgen_bitfield_unit.set(93usize, 1u8, {
18507 let pmu_v3_arm_v87: u64 = unsafe { ::std::mem::transmute(pmu_v3_arm_v87) };
18508 pmu_v3_arm_v87 as u64
18509 });
18510 __bindgen_bitfield_unit.set(94usize, 1u8, {
18511 let double_lock: u64 = unsafe { ::std::mem::transmute(double_lock) };
18512 double_lock as u64
18513 });
18514 __bindgen_bitfield_unit.set(95usize, 1u8, {
18515 let clrbhb: u64 = unsafe { ::std::mem::transmute(clrbhb) };
18516 clrbhb as u64
18517 });
18518 __bindgen_bitfield_unit.set(96usize, 1u8, {
18519 let spe: u64 = unsafe { ::std::mem::transmute(spe) };
18520 spe as u64
18521 });
18522 __bindgen_bitfield_unit.set(97usize, 1u8, {
18523 let spe_v1p1: u64 = unsafe { ::std::mem::transmute(spe_v1p1) };
18524 spe_v1p1 as u64
18525 });
18526 __bindgen_bitfield_unit.set(98usize, 1u8, {
18527 let spe_v1p2: u64 = unsafe { ::std::mem::transmute(spe_v1p2) };
18528 spe_v1p2 as u64
18529 });
18530 __bindgen_bitfield_unit.set(99usize, 1u8, {
18531 let tt_cnp: u64 = unsafe { ::std::mem::transmute(tt_cnp) };
18532 tt_cnp as u64
18533 });
18534 __bindgen_bitfield_unit.set(100usize, 1u8, {
18535 let hpds: u64 = unsafe { ::std::mem::transmute(hpds) };
18536 hpds as u64
18537 });
18538 __bindgen_bitfield_unit.set(101usize, 1u8, {
18539 let sve: u64 = unsafe { ::std::mem::transmute(sve) };
18540 sve as u64
18541 });
18542 __bindgen_bitfield_unit.set(102usize, 1u8, {
18543 let sve_v2: u64 = unsafe { ::std::mem::transmute(sve_v2) };
18544 sve_v2 as u64
18545 });
18546 __bindgen_bitfield_unit.set(103usize, 1u8, {
18547 let sve_v2p1: u64 = unsafe { ::std::mem::transmute(sve_v2p1) };
18548 sve_v2p1 as u64
18549 });
18550 __bindgen_bitfield_unit.set(104usize, 1u8, {
18551 let spec_fpacc: u64 = unsafe { ::std::mem::transmute(spec_fpacc) };
18552 spec_fpacc as u64
18553 });
18554 __bindgen_bitfield_unit.set(105usize, 1u8, {
18555 let sve_aes: u64 = unsafe { ::std::mem::transmute(sve_aes) };
18556 sve_aes as u64
18557 });
18558 __bindgen_bitfield_unit.set(106usize, 1u8, {
18559 let sve_bit_perm: u64 = unsafe { ::std::mem::transmute(sve_bit_perm) };
18560 sve_bit_perm as u64
18561 });
18562 __bindgen_bitfield_unit.set(107usize, 1u8, {
18563 let sve_sha3: u64 = unsafe { ::std::mem::transmute(sve_sha3) };
18564 sve_sha3 as u64
18565 });
18566 __bindgen_bitfield_unit.set(108usize, 1u8, {
18567 let sve_sm4: u64 = unsafe { ::std::mem::transmute(sve_sm4) };
18568 sve_sm4 as u64
18569 });
18570 __bindgen_bitfield_unit.set(109usize, 1u8, {
18571 let e0_pd: u64 = unsafe { ::std::mem::transmute(e0_pd) };
18572 e0_pd as u64
18573 });
18574 __bindgen_bitfield_unit.set(110usize, 1u8, {
18575 let gpa3: u64 = unsafe { ::std::mem::transmute(gpa3) };
18576 gpa3 as u64
18577 });
18578 __bindgen_bitfield_unit.set(111usize, 1u8, {
18579 let apa3_base: u64 = unsafe { ::std::mem::transmute(apa3_base) };
18580 apa3_base as u64
18581 });
18582 __bindgen_bitfield_unit.set(112usize, 1u8, {
18583 let apa3_ep: u64 = unsafe { ::std::mem::transmute(apa3_ep) };
18584 apa3_ep as u64
18585 });
18586 __bindgen_bitfield_unit.set(113usize, 1u8, {
18587 let apa3_ep2: u64 = unsafe { ::std::mem::transmute(apa3_ep2) };
18588 apa3_ep2 as u64
18589 });
18590 __bindgen_bitfield_unit.set(114usize, 1u8, {
18591 let apa3_ep2_fp: u64 = unsafe { ::std::mem::transmute(apa3_ep2_fp) };
18592 apa3_ep2_fp as u64
18593 });
18594 __bindgen_bitfield_unit.set(115usize, 1u8, {
18595 let apa3_ep2_fpc: u64 = unsafe { ::std::mem::transmute(apa3_ep2_fpc) };
18596 apa3_ep2_fpc as u64
18597 });
18598 __bindgen_bitfield_unit.set(116usize, 1u8, {
18599 let lrcpc3: u64 = unsafe { ::std::mem::transmute(lrcpc3) };
18600 lrcpc3 as u64
18601 });
18602 __bindgen_bitfield_unit.set(117usize, 1u8, {
18603 let sme: u64 = unsafe { ::std::mem::transmute(sme) };
18604 sme as u64
18605 });
18606 __bindgen_bitfield_unit.set(118usize, 1u8, {
18607 let sme_f32_f32: u64 = unsafe { ::std::mem::transmute(sme_f32_f32) };
18608 sme_f32_f32 as u64
18609 });
18610 __bindgen_bitfield_unit.set(119usize, 1u8, {
18611 let sme_b16_f32: u64 = unsafe { ::std::mem::transmute(sme_b16_f32) };
18612 sme_b16_f32 as u64
18613 });
18614 __bindgen_bitfield_unit.set(120usize, 1u8, {
18615 let sme_f16_f32: u64 = unsafe { ::std::mem::transmute(sme_f16_f32) };
18616 sme_f16_f32 as u64
18617 });
18618 __bindgen_bitfield_unit.set(121usize, 1u8, {
18619 let sme_i8_i32: u64 = unsafe { ::std::mem::transmute(sme_i8_i32) };
18620 sme_i8_i32 as u64
18621 });
18622 __bindgen_bitfield_unit.set(122usize, 1u8, {
18623 let sme_f64_f64: u64 = unsafe { ::std::mem::transmute(sme_f64_f64) };
18624 sme_f64_f64 as u64
18625 });
18626 __bindgen_bitfield_unit.set(123usize, 1u8, {
18627 let sme_i16_i64: u64 = unsafe { ::std::mem::transmute(sme_i16_i64) };
18628 sme_i16_i64 as u64
18629 });
18630 __bindgen_bitfield_unit.set(124usize, 4u8, {
18631 let reserved_bank1: u64 = unsafe { ::std::mem::transmute(reserved_bank1) };
18632 reserved_bank1 as u64
18633 });
18634 __bindgen_bitfield_unit
18635 }
18636}
18637#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18638const _: () = {
18639 ["Size of hv_partition_processor_features"]
18640 [::std::mem::size_of::<hv_partition_processor_features>() - 16usize];
18641 ["Alignment of hv_partition_processor_features"]
18642 [::std::mem::align_of::<hv_partition_processor_features>() - 8usize];
18643 ["Offset of field: hv_partition_processor_features::as_uint64"]
18644 [::std::mem::offset_of!(hv_partition_processor_features, as_uint64) - 0usize];
18645};
18646impl Default for hv_partition_processor_features {
18647 fn default() -> Self {
18648 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
18649 unsafe {
18650 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
18651 s.assume_init()
18652 }
18653 }
18654}
18655#[repr(C)]
18656#[derive(Debug, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18657pub struct mshv_vp_registers {
18658 pub count: ::std::os::raw::c_int,
18659 pub regs: *mut hv_register_assoc,
18660}
18661#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18662const _: () = {
18663 ["Size of mshv_vp_registers"][::std::mem::size_of::<mshv_vp_registers>() - 16usize];
18664 ["Alignment of mshv_vp_registers"][::std::mem::align_of::<mshv_vp_registers>() - 8usize];
18665 ["Offset of field: mshv_vp_registers::count"]
18666 [::std::mem::offset_of!(mshv_vp_registers, count) - 0usize];
18667 ["Offset of field: mshv_vp_registers::regs"]
18668 [::std::mem::offset_of!(mshv_vp_registers, regs) - 8usize];
18669};
18670impl Default for mshv_vp_registers {
18671 fn default() -> Self {
18672 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
18673 unsafe {
18674 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
18675 s.assume_init()
18676 }
18677 }
18678}
18679#[repr(C)]
18680#[derive(Copy, Clone)]
18681pub struct mshv_install_intercept {
18682 pub access_type_mask: __u32,
18683 pub intercept_type: hv_intercept_type,
18684 pub intercept_parameter: hv_intercept_parameters,
18685}
18686#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18687const _: () = {
18688 ["Size of mshv_install_intercept"][::std::mem::size_of::<mshv_install_intercept>() - 16usize];
18689 ["Alignment of mshv_install_intercept"]
18690 [::std::mem::align_of::<mshv_install_intercept>() - 8usize];
18691 ["Offset of field: mshv_install_intercept::access_type_mask"]
18692 [::std::mem::offset_of!(mshv_install_intercept, access_type_mask) - 0usize];
18693 ["Offset of field: mshv_install_intercept::intercept_type"]
18694 [::std::mem::offset_of!(mshv_install_intercept, intercept_type) - 4usize];
18695 ["Offset of field: mshv_install_intercept::intercept_parameter"]
18696 [::std::mem::offset_of!(mshv_install_intercept, intercept_parameter) - 8usize];
18697};
18698impl Default for mshv_install_intercept {
18699 fn default() -> Self {
18700 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
18701 unsafe {
18702 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
18703 s.assume_init()
18704 }
18705 }
18706}
18707#[repr(C)]
18708#[derive(Copy, Clone)]
18709pub struct mshv_assert_interrupt {
18710 pub control: hv_interrupt_control,
18711 pub dest_addr: __u64,
18712 pub vector: __u32,
18713 pub rsvd: __u32,
18714}
18715#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18716const _: () = {
18717 ["Size of mshv_assert_interrupt"][::std::mem::size_of::<mshv_assert_interrupt>() - 24usize];
18718 ["Alignment of mshv_assert_interrupt"]
18719 [::std::mem::align_of::<mshv_assert_interrupt>() - 8usize];
18720 ["Offset of field: mshv_assert_interrupt::control"]
18721 [::std::mem::offset_of!(mshv_assert_interrupt, control) - 0usize];
18722 ["Offset of field: mshv_assert_interrupt::dest_addr"]
18723 [::std::mem::offset_of!(mshv_assert_interrupt, dest_addr) - 8usize];
18724 ["Offset of field: mshv_assert_interrupt::vector"]
18725 [::std::mem::offset_of!(mshv_assert_interrupt, vector) - 16usize];
18726 ["Offset of field: mshv_assert_interrupt::rsvd"]
18727 [::std::mem::offset_of!(mshv_assert_interrupt, rsvd) - 20usize];
18728};
18729impl Default for mshv_assert_interrupt {
18730 fn default() -> Self {
18731 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
18732 unsafe {
18733 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
18734 s.assume_init()
18735 }
18736 }
18737}
18738#[repr(C)]
18739#[derive(Debug, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18740pub struct mshv_translate_gva {
18741 pub gva: __u64,
18742 pub flags: __u64,
18743 pub result: *mut hv_translate_gva_result,
18744 pub gpa: *mut __u64,
18745}
18746#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18747const _: () = {
18748 ["Size of mshv_translate_gva"][::std::mem::size_of::<mshv_translate_gva>() - 32usize];
18749 ["Alignment of mshv_translate_gva"][::std::mem::align_of::<mshv_translate_gva>() - 8usize];
18750 ["Offset of field: mshv_translate_gva::gva"]
18751 [::std::mem::offset_of!(mshv_translate_gva, gva) - 0usize];
18752 ["Offset of field: mshv_translate_gva::flags"]
18753 [::std::mem::offset_of!(mshv_translate_gva, flags) - 8usize];
18754 ["Offset of field: mshv_translate_gva::result"]
18755 [::std::mem::offset_of!(mshv_translate_gva, result) - 16usize];
18756 ["Offset of field: mshv_translate_gva::gpa"]
18757 [::std::mem::offset_of!(mshv_translate_gva, gpa) - 24usize];
18758};
18759impl Default for mshv_translate_gva {
18760 fn default() -> Self {
18761 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
18762 unsafe {
18763 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
18764 s.assume_init()
18765 }
18766 }
18767}
18768#[repr(C)]
18769#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18770pub struct mshv_signal_event_direct {
18771 pub vp: __u32,
18772 pub vtl: __u8,
18773 pub sint: __u8,
18774 pub flag: __u16,
18775 pub newly_signaled: __u8,
18776}
18777#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18778const _: () = {
18779 ["Size of mshv_signal_event_direct"]
18780 [::std::mem::size_of::<mshv_signal_event_direct>() - 12usize];
18781 ["Alignment of mshv_signal_event_direct"]
18782 [::std::mem::align_of::<mshv_signal_event_direct>() - 4usize];
18783 ["Offset of field: mshv_signal_event_direct::vp"]
18784 [::std::mem::offset_of!(mshv_signal_event_direct, vp) - 0usize];
18785 ["Offset of field: mshv_signal_event_direct::vtl"]
18786 [::std::mem::offset_of!(mshv_signal_event_direct, vtl) - 4usize];
18787 ["Offset of field: mshv_signal_event_direct::sint"]
18788 [::std::mem::offset_of!(mshv_signal_event_direct, sint) - 5usize];
18789 ["Offset of field: mshv_signal_event_direct::flag"]
18790 [::std::mem::offset_of!(mshv_signal_event_direct, flag) - 6usize];
18791 ["Offset of field: mshv_signal_event_direct::newly_signaled"]
18792 [::std::mem::offset_of!(mshv_signal_event_direct, newly_signaled) - 8usize];
18793};
18794#[repr(C)]
18795#[derive(Debug, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18796pub struct mshv_post_message_direct {
18797 pub vp: __u32,
18798 pub vtl: __u8,
18799 pub sint: __u8,
18800 pub length: __u16,
18801 pub message: *const __u8,
18802}
18803#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18804const _: () = {
18805 ["Size of mshv_post_message_direct"]
18806 [::std::mem::size_of::<mshv_post_message_direct>() - 16usize];
18807 ["Alignment of mshv_post_message_direct"]
18808 [::std::mem::align_of::<mshv_post_message_direct>() - 8usize];
18809 ["Offset of field: mshv_post_message_direct::vp"]
18810 [::std::mem::offset_of!(mshv_post_message_direct, vp) - 0usize];
18811 ["Offset of field: mshv_post_message_direct::vtl"]
18812 [::std::mem::offset_of!(mshv_post_message_direct, vtl) - 4usize];
18813 ["Offset of field: mshv_post_message_direct::sint"]
18814 [::std::mem::offset_of!(mshv_post_message_direct, sint) - 5usize];
18815 ["Offset of field: mshv_post_message_direct::length"]
18816 [::std::mem::offset_of!(mshv_post_message_direct, length) - 6usize];
18817 ["Offset of field: mshv_post_message_direct::message"]
18818 [::std::mem::offset_of!(mshv_post_message_direct, message) - 8usize];
18819};
18820impl Default for mshv_post_message_direct {
18821 fn default() -> Self {
18822 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
18823 unsafe {
18824 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
18825 s.assume_init()
18826 }
18827 }
18828}
18829#[repr(C)]
18830#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18831pub struct mshv_register_deliverabilty_notifications {
18832 pub vp: __u32,
18833 pub pad: __u32,
18834 pub flag: __u64,
18835}
18836#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18837const _: () = {
18838 ["Size of mshv_register_deliverabilty_notifications"]
18839 [::std::mem::size_of::<mshv_register_deliverabilty_notifications>() - 16usize];
18840 ["Alignment of mshv_register_deliverabilty_notifications"]
18841 [::std::mem::align_of::<mshv_register_deliverabilty_notifications>() - 8usize];
18842 ["Offset of field: mshv_register_deliverabilty_notifications::vp"]
18843 [::std::mem::offset_of!(mshv_register_deliverabilty_notifications, vp) - 0usize];
18844 ["Offset of field: mshv_register_deliverabilty_notifications::pad"]
18845 [::std::mem::offset_of!(mshv_register_deliverabilty_notifications, pad) - 4usize];
18846 ["Offset of field: mshv_register_deliverabilty_notifications::flag"]
18847 [::std::mem::offset_of!(mshv_register_deliverabilty_notifications, flag) - 8usize];
18848};
18849#[repr(C)]
18850#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18851pub struct mshv_get_vp_cpuid_values {
18852 pub function: __u32,
18853 pub index: __u32,
18854 pub xfem: __u64,
18855 pub xss: __u64,
18856 pub eax: __u32,
18857 pub ebx: __u32,
18858 pub ecx: __u32,
18859 pub edx: __u32,
18860}
18861#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18862const _: () = {
18863 ["Size of mshv_get_vp_cpuid_values"]
18864 [::std::mem::size_of::<mshv_get_vp_cpuid_values>() - 40usize];
18865 ["Alignment of mshv_get_vp_cpuid_values"]
18866 [::std::mem::align_of::<mshv_get_vp_cpuid_values>() - 8usize];
18867 ["Offset of field: mshv_get_vp_cpuid_values::function"]
18868 [::std::mem::offset_of!(mshv_get_vp_cpuid_values, function) - 0usize];
18869 ["Offset of field: mshv_get_vp_cpuid_values::index"]
18870 [::std::mem::offset_of!(mshv_get_vp_cpuid_values, index) - 4usize];
18871 ["Offset of field: mshv_get_vp_cpuid_values::xfem"]
18872 [::std::mem::offset_of!(mshv_get_vp_cpuid_values, xfem) - 8usize];
18873 ["Offset of field: mshv_get_vp_cpuid_values::xss"]
18874 [::std::mem::offset_of!(mshv_get_vp_cpuid_values, xss) - 16usize];
18875 ["Offset of field: mshv_get_vp_cpuid_values::eax"]
18876 [::std::mem::offset_of!(mshv_get_vp_cpuid_values, eax) - 24usize];
18877 ["Offset of field: mshv_get_vp_cpuid_values::ebx"]
18878 [::std::mem::offset_of!(mshv_get_vp_cpuid_values, ebx) - 28usize];
18879 ["Offset of field: mshv_get_vp_cpuid_values::ecx"]
18880 [::std::mem::offset_of!(mshv_get_vp_cpuid_values, ecx) - 32usize];
18881 ["Offset of field: mshv_get_vp_cpuid_values::edx"]
18882 [::std::mem::offset_of!(mshv_get_vp_cpuid_values, edx) - 36usize];
18883};
18884#[repr(C)]
18885#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18886pub struct mshv_read_write_gpa {
18887 pub base_gpa: __u64,
18888 pub byte_count: __u32,
18889 pub flags: __u32,
18890 pub data: [__u8; 16usize],
18891}
18892#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18893const _: () = {
18894 ["Size of mshv_read_write_gpa"][::std::mem::size_of::<mshv_read_write_gpa>() - 32usize];
18895 ["Alignment of mshv_read_write_gpa"][::std::mem::align_of::<mshv_read_write_gpa>() - 8usize];
18896 ["Offset of field: mshv_read_write_gpa::base_gpa"]
18897 [::std::mem::offset_of!(mshv_read_write_gpa, base_gpa) - 0usize];
18898 ["Offset of field: mshv_read_write_gpa::byte_count"]
18899 [::std::mem::offset_of!(mshv_read_write_gpa, byte_count) - 8usize];
18900 ["Offset of field: mshv_read_write_gpa::flags"]
18901 [::std::mem::offset_of!(mshv_read_write_gpa, flags) - 12usize];
18902 ["Offset of field: mshv_read_write_gpa::data"]
18903 [::std::mem::offset_of!(mshv_read_write_gpa, data) - 16usize];
18904};
18905#[repr(C)]
18906#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18907pub struct mshv_sev_snp_ap_create {
18908 pub vp_id: __u64,
18909 pub vmsa_gpa: __u64,
18910}
18911#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18912const _: () = {
18913 ["Size of mshv_sev_snp_ap_create"][::std::mem::size_of::<mshv_sev_snp_ap_create>() - 16usize];
18914 ["Alignment of mshv_sev_snp_ap_create"]
18915 [::std::mem::align_of::<mshv_sev_snp_ap_create>() - 8usize];
18916 ["Offset of field: mshv_sev_snp_ap_create::vp_id"]
18917 [::std::mem::offset_of!(mshv_sev_snp_ap_create, vp_id) - 0usize];
18918 ["Offset of field: mshv_sev_snp_ap_create::vmsa_gpa"]
18919 [::std::mem::offset_of!(mshv_sev_snp_ap_create, vmsa_gpa) - 8usize];
18920};
18921#[repr(C)]
18922#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18923pub struct mshv_issue_psp_guest_request {
18924 pub req_gpa: __u64,
18925 pub rsp_gpa: __u64,
18926}
18927#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18928const _: () = {
18929 ["Size of mshv_issue_psp_guest_request"]
18930 [::std::mem::size_of::<mshv_issue_psp_guest_request>() - 16usize];
18931 ["Alignment of mshv_issue_psp_guest_request"]
18932 [::std::mem::align_of::<mshv_issue_psp_guest_request>() - 8usize];
18933 ["Offset of field: mshv_issue_psp_guest_request::req_gpa"]
18934 [::std::mem::offset_of!(mshv_issue_psp_guest_request, req_gpa) - 0usize];
18935 ["Offset of field: mshv_issue_psp_guest_request::rsp_gpa"]
18936 [::std::mem::offset_of!(mshv_issue_psp_guest_request, rsp_gpa) - 8usize];
18937};
18938#[repr(C)]
18939#[derive(Copy, Clone)]
18940pub struct mshv_complete_isolated_import {
18941 pub import_data: hv_partition_complete_isolated_import_data,
18942}
18943#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18944const _: () = {
18945 ["Size of mshv_complete_isolated_import"]
18946 [::std::mem::size_of::<mshv_complete_isolated_import>() - 3334usize];
18947 ["Alignment of mshv_complete_isolated_import"]
18948 [::std::mem::align_of::<mshv_complete_isolated_import>() - 1usize];
18949 ["Offset of field: mshv_complete_isolated_import::import_data"]
18950 [::std::mem::offset_of!(mshv_complete_isolated_import, import_data) - 0usize];
18951};
18952impl Default for mshv_complete_isolated_import {
18953 fn default() -> Self {
18954 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
18955 unsafe {
18956 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
18957 s.assume_init()
18958 }
18959 }
18960}
18961pub const MSHV_VTL_CAP_BIT_REGISTER_PAGE: _bindgen_ty_1 = 0;
18962pub const MSHV_VTL_CAP_BIT_RETURN_ACTION: _bindgen_ty_1 = 1;
18963pub const MSHV_VTL_CAP_BIT_DR6_SHARED: _bindgen_ty_1 = 2;
18964pub const MSHV_VTL_CAP_BIT_COUNT: _bindgen_ty_1 = 3;
18965pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
18966#[repr(C)]
18967#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18968pub struct mshv_vtl_capabilities {
18969 pub bits: __u64,
18970}
18971#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18972const _: () = {
18973 ["Size of mshv_vtl_capabilities"][::std::mem::size_of::<mshv_vtl_capabilities>() - 8usize];
18974 ["Alignment of mshv_vtl_capabilities"]
18975 [::std::mem::align_of::<mshv_vtl_capabilities>() - 8usize];
18976 ["Offset of field: mshv_vtl_capabilities::bits"]
18977 [::std::mem::offset_of!(mshv_vtl_capabilities, bits) - 0usize];
18978};
18979pub const MSHV_PT_BIT_LAPIC: _bindgen_ty_2 = 0;
18980pub const MSHV_PT_BIT_X2APIC: _bindgen_ty_2 = 1;
18981pub const MSHV_PT_BIT_GPA_SUPER_PAGES: _bindgen_ty_2 = 2;
18982pub const MSHV_PT_BIT_CPU_AND_XSAVE_FEATURES: _bindgen_ty_2 = 3;
18983pub const MSHV_PT_BIT_NESTED_VIRTUALIZATION: _bindgen_ty_2 = 4;
18984pub const MSHV_PT_BIT_SMT_ENABLED_GUEST: _bindgen_ty_2 = 5;
18985pub const MSHV_PT_BIT_COUNT: _bindgen_ty_2 = 6;
18986pub type _bindgen_ty_2 = ::std::os::raw::c_uint;
18987pub const MSHV_PT_ISOLATION_NONE: _bindgen_ty_3 = 0;
18988pub const MSHV_PT_ISOLATION_SNP: _bindgen_ty_3 = 1;
18989pub const MSHV_PT_ISOLATION_COUNT: _bindgen_ty_3 = 2;
18990pub type _bindgen_ty_3 = ::std::os::raw::c_uint;
18991#[repr(C)]
18992#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
18993pub struct mshv_create_partition {
18994 pub pt_flags: __u64,
18995 pub pt_isolation: __u64,
18996}
18997#[allow(clippy::unnecessary_operation, clippy::identity_op)]
18998const _: () = {
18999 ["Size of mshv_create_partition"][::std::mem::size_of::<mshv_create_partition>() - 16usize];
19000 ["Alignment of mshv_create_partition"]
19001 [::std::mem::align_of::<mshv_create_partition>() - 8usize];
19002 ["Offset of field: mshv_create_partition::pt_flags"]
19003 [::std::mem::offset_of!(mshv_create_partition, pt_flags) - 0usize];
19004 ["Offset of field: mshv_create_partition::pt_isolation"]
19005 [::std::mem::offset_of!(mshv_create_partition, pt_isolation) - 8usize];
19006};
19007#[repr(C, packed)]
19008#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19009pub struct mshv_create_partition_v2 {
19010 pub pt_flags: __u64,
19011 pub pt_isolation: __u64,
19012 pub pt_num_cpu_fbanks: __u16,
19013 pub pt_rsvd: [__u8; 6usize],
19014 pub pt_cpu_fbanks: [__u64; 2usize],
19015 pub pt_rsvd1: [__u64; 2usize],
19016 pub pt_rsvd2: __u64,
19017}
19018#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19019const _: () = {
19020 ["Size of mshv_create_partition_v2"]
19021 [::std::mem::size_of::<mshv_create_partition_v2>() - 64usize];
19022 ["Alignment of mshv_create_partition_v2"]
19023 [::std::mem::align_of::<mshv_create_partition_v2>() - 1usize];
19024 ["Offset of field: mshv_create_partition_v2::pt_flags"]
19025 [::std::mem::offset_of!(mshv_create_partition_v2, pt_flags) - 0usize];
19026 ["Offset of field: mshv_create_partition_v2::pt_isolation"]
19027 [::std::mem::offset_of!(mshv_create_partition_v2, pt_isolation) - 8usize];
19028 ["Offset of field: mshv_create_partition_v2::pt_num_cpu_fbanks"]
19029 [::std::mem::offset_of!(mshv_create_partition_v2, pt_num_cpu_fbanks) - 16usize];
19030 ["Offset of field: mshv_create_partition_v2::pt_rsvd"]
19031 [::std::mem::offset_of!(mshv_create_partition_v2, pt_rsvd) - 18usize];
19032 ["Offset of field: mshv_create_partition_v2::pt_cpu_fbanks"]
19033 [::std::mem::offset_of!(mshv_create_partition_v2, pt_cpu_fbanks) - 24usize];
19034 ["Offset of field: mshv_create_partition_v2::pt_rsvd1"]
19035 [::std::mem::offset_of!(mshv_create_partition_v2, pt_rsvd1) - 40usize];
19036 ["Offset of field: mshv_create_partition_v2::pt_rsvd2"]
19037 [::std::mem::offset_of!(mshv_create_partition_v2, pt_rsvd2) - 56usize];
19038};
19039#[repr(C)]
19040#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19041pub struct mshv_partition_property {
19042 pub property_code: __u64,
19043 pub property_value: __u64,
19044}
19045#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19046const _: () = {
19047 ["Size of mshv_partition_property"][::std::mem::size_of::<mshv_partition_property>() - 16usize];
19048 ["Alignment of mshv_partition_property"]
19049 [::std::mem::align_of::<mshv_partition_property>() - 8usize];
19050 ["Offset of field: mshv_partition_property::property_code"]
19051 [::std::mem::offset_of!(mshv_partition_property, property_code) - 0usize];
19052 ["Offset of field: mshv_partition_property::property_value"]
19053 [::std::mem::offset_of!(mshv_partition_property, property_value) - 8usize];
19054};
19055#[repr(C)]
19056#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19057pub struct mshv_create_vp {
19058 pub vp_index: __u32,
19059}
19060#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19061const _: () = {
19062 ["Size of mshv_create_vp"][::std::mem::size_of::<mshv_create_vp>() - 4usize];
19063 ["Alignment of mshv_create_vp"][::std::mem::align_of::<mshv_create_vp>() - 4usize];
19064 ["Offset of field: mshv_create_vp::vp_index"]
19065 [::std::mem::offset_of!(mshv_create_vp, vp_index) - 0usize];
19066};
19067pub const MSHV_SET_MEM_BIT_WRITABLE: _bindgen_ty_4 = 0;
19068pub const MSHV_SET_MEM_BIT_EXECUTABLE: _bindgen_ty_4 = 1;
19069pub const MSHV_SET_MEM_BIT_UNMAP: _bindgen_ty_4 = 2;
19070pub const MSHV_SET_MEM_BIT_COUNT: _bindgen_ty_4 = 3;
19071pub type _bindgen_ty_4 = ::std::os::raw::c_uint;
19072#[repr(C)]
19073#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19074pub struct mshv_user_mem_region {
19075 pub size: __u64,
19076 pub guest_pfn: __u64,
19077 pub userspace_addr: __u64,
19078 pub flags: __u8,
19079 pub rsvd: [__u8; 7usize],
19080}
19081#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19082const _: () = {
19083 ["Size of mshv_user_mem_region"][::std::mem::size_of::<mshv_user_mem_region>() - 32usize];
19084 ["Alignment of mshv_user_mem_region"][::std::mem::align_of::<mshv_user_mem_region>() - 8usize];
19085 ["Offset of field: mshv_user_mem_region::size"]
19086 [::std::mem::offset_of!(mshv_user_mem_region, size) - 0usize];
19087 ["Offset of field: mshv_user_mem_region::guest_pfn"]
19088 [::std::mem::offset_of!(mshv_user_mem_region, guest_pfn) - 8usize];
19089 ["Offset of field: mshv_user_mem_region::userspace_addr"]
19090 [::std::mem::offset_of!(mshv_user_mem_region, userspace_addr) - 16usize];
19091 ["Offset of field: mshv_user_mem_region::flags"]
19092 [::std::mem::offset_of!(mshv_user_mem_region, flags) - 24usize];
19093 ["Offset of field: mshv_user_mem_region::rsvd"]
19094 [::std::mem::offset_of!(mshv_user_mem_region, rsvd) - 25usize];
19095};
19096pub const MSHV_IRQFD_BIT_DEASSIGN: _bindgen_ty_5 = 0;
19097pub const MSHV_IRQFD_BIT_RESAMPLE: _bindgen_ty_5 = 1;
19098pub const MSHV_IRQFD_BIT_COUNT: _bindgen_ty_5 = 2;
19099pub type _bindgen_ty_5 = ::std::os::raw::c_uint;
19100#[repr(C)]
19101#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19102pub struct mshv_user_irqfd {
19103 pub fd: __s32,
19104 pub resamplefd: __s32,
19105 pub gsi: __u32,
19106 pub flags: __u32,
19107}
19108#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19109const _: () = {
19110 ["Size of mshv_user_irqfd"][::std::mem::size_of::<mshv_user_irqfd>() - 16usize];
19111 ["Alignment of mshv_user_irqfd"][::std::mem::align_of::<mshv_user_irqfd>() - 4usize];
19112 ["Offset of field: mshv_user_irqfd::fd"][::std::mem::offset_of!(mshv_user_irqfd, fd) - 0usize];
19113 ["Offset of field: mshv_user_irqfd::resamplefd"]
19114 [::std::mem::offset_of!(mshv_user_irqfd, resamplefd) - 4usize];
19115 ["Offset of field: mshv_user_irqfd::gsi"]
19116 [::std::mem::offset_of!(mshv_user_irqfd, gsi) - 8usize];
19117 ["Offset of field: mshv_user_irqfd::flags"]
19118 [::std::mem::offset_of!(mshv_user_irqfd, flags) - 12usize];
19119};
19120pub const MSHV_IOEVENTFD_BIT_DATAMATCH: _bindgen_ty_6 = 0;
19121pub const MSHV_IOEVENTFD_BIT_PIO: _bindgen_ty_6 = 1;
19122pub const MSHV_IOEVENTFD_BIT_DEASSIGN: _bindgen_ty_6 = 2;
19123pub const MSHV_IOEVENTFD_BIT_COUNT: _bindgen_ty_6 = 3;
19124pub type _bindgen_ty_6 = ::std::os::raw::c_uint;
19125#[repr(C)]
19126#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19127pub struct mshv_user_ioeventfd {
19128 pub datamatch: __u64,
19129 pub addr: __u64,
19130 pub len: __u32,
19131 pub fd: __s32,
19132 pub flags: __u32,
19133 pub rsvd: [__u8; 4usize],
19134}
19135#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19136const _: () = {
19137 ["Size of mshv_user_ioeventfd"][::std::mem::size_of::<mshv_user_ioeventfd>() - 32usize];
19138 ["Alignment of mshv_user_ioeventfd"][::std::mem::align_of::<mshv_user_ioeventfd>() - 8usize];
19139 ["Offset of field: mshv_user_ioeventfd::datamatch"]
19140 [::std::mem::offset_of!(mshv_user_ioeventfd, datamatch) - 0usize];
19141 ["Offset of field: mshv_user_ioeventfd::addr"]
19142 [::std::mem::offset_of!(mshv_user_ioeventfd, addr) - 8usize];
19143 ["Offset of field: mshv_user_ioeventfd::len"]
19144 [::std::mem::offset_of!(mshv_user_ioeventfd, len) - 16usize];
19145 ["Offset of field: mshv_user_ioeventfd::fd"]
19146 [::std::mem::offset_of!(mshv_user_ioeventfd, fd) - 20usize];
19147 ["Offset of field: mshv_user_ioeventfd::flags"]
19148 [::std::mem::offset_of!(mshv_user_ioeventfd, flags) - 24usize];
19149 ["Offset of field: mshv_user_ioeventfd::rsvd"]
19150 [::std::mem::offset_of!(mshv_user_ioeventfd, rsvd) - 28usize];
19151};
19152#[repr(C)]
19153#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19154pub struct mshv_user_irq_entry {
19155 pub gsi: __u32,
19156 pub address_lo: __u32,
19157 pub address_hi: __u32,
19158 pub data: __u32,
19159}
19160#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19161const _: () = {
19162 ["Size of mshv_user_irq_entry"][::std::mem::size_of::<mshv_user_irq_entry>() - 16usize];
19163 ["Alignment of mshv_user_irq_entry"][::std::mem::align_of::<mshv_user_irq_entry>() - 4usize];
19164 ["Offset of field: mshv_user_irq_entry::gsi"]
19165 [::std::mem::offset_of!(mshv_user_irq_entry, gsi) - 0usize];
19166 ["Offset of field: mshv_user_irq_entry::address_lo"]
19167 [::std::mem::offset_of!(mshv_user_irq_entry, address_lo) - 4usize];
19168 ["Offset of field: mshv_user_irq_entry::address_hi"]
19169 [::std::mem::offset_of!(mshv_user_irq_entry, address_hi) - 8usize];
19170 ["Offset of field: mshv_user_irq_entry::data"]
19171 [::std::mem::offset_of!(mshv_user_irq_entry, data) - 12usize];
19172};
19173#[repr(C)]
19174#[derive(Debug, Default)]
19175pub struct mshv_user_irq_table {
19176 pub nr: __u32,
19177 pub rsvd: __u32,
19178 pub entries: __IncompleteArrayField<mshv_user_irq_entry>,
19179}
19180#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19181const _: () = {
19182 ["Size of mshv_user_irq_table"][::std::mem::size_of::<mshv_user_irq_table>() - 8usize];
19183 ["Alignment of mshv_user_irq_table"][::std::mem::align_of::<mshv_user_irq_table>() - 4usize];
19184 ["Offset of field: mshv_user_irq_table::nr"]
19185 [::std::mem::offset_of!(mshv_user_irq_table, nr) - 0usize];
19186 ["Offset of field: mshv_user_irq_table::rsvd"]
19187 [::std::mem::offset_of!(mshv_user_irq_table, rsvd) - 4usize];
19188 ["Offset of field: mshv_user_irq_table::entries"]
19189 [::std::mem::offset_of!(mshv_user_irq_table, entries) - 8usize];
19190};
19191pub const MSHV_GPAP_ACCESS_TYPE_ACCESSED: _bindgen_ty_7 = 0;
19192pub const MSHV_GPAP_ACCESS_TYPE_DIRTY: _bindgen_ty_7 = 1;
19193pub const MSHV_GPAP_ACCESS_TYPE_COUNT: _bindgen_ty_7 = 2;
19194pub type _bindgen_ty_7 = ::std::os::raw::c_uint;
19195pub const MSHV_GPAP_ACCESS_OP_NOOP: _bindgen_ty_8 = 0;
19196pub const MSHV_GPAP_ACCESS_OP_CLEAR: _bindgen_ty_8 = 1;
19197pub const MSHV_GPAP_ACCESS_OP_SET: _bindgen_ty_8 = 2;
19198pub const MSHV_GPAP_ACCESS_OP_COUNT: _bindgen_ty_8 = 3;
19199pub type _bindgen_ty_8 = ::std::os::raw::c_uint;
19200#[repr(C)]
19201#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19202pub struct mshv_gpap_access_bitmap {
19203 pub access_type: __u8,
19204 pub access_op: __u8,
19205 pub rsvd: [__u8; 6usize],
19206 pub page_count: __u64,
19207 pub gpap_base: __u64,
19208 pub bitmap_ptr: __u64,
19209}
19210#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19211const _: () = {
19212 ["Size of mshv_gpap_access_bitmap"][::std::mem::size_of::<mshv_gpap_access_bitmap>() - 32usize];
19213 ["Alignment of mshv_gpap_access_bitmap"]
19214 [::std::mem::align_of::<mshv_gpap_access_bitmap>() - 8usize];
19215 ["Offset of field: mshv_gpap_access_bitmap::access_type"]
19216 [::std::mem::offset_of!(mshv_gpap_access_bitmap, access_type) - 0usize];
19217 ["Offset of field: mshv_gpap_access_bitmap::access_op"]
19218 [::std::mem::offset_of!(mshv_gpap_access_bitmap, access_op) - 1usize];
19219 ["Offset of field: mshv_gpap_access_bitmap::rsvd"]
19220 [::std::mem::offset_of!(mshv_gpap_access_bitmap, rsvd) - 2usize];
19221 ["Offset of field: mshv_gpap_access_bitmap::page_count"]
19222 [::std::mem::offset_of!(mshv_gpap_access_bitmap, page_count) - 8usize];
19223 ["Offset of field: mshv_gpap_access_bitmap::gpap_base"]
19224 [::std::mem::offset_of!(mshv_gpap_access_bitmap, gpap_base) - 16usize];
19225 ["Offset of field: mshv_gpap_access_bitmap::bitmap_ptr"]
19226 [::std::mem::offset_of!(mshv_gpap_access_bitmap, bitmap_ptr) - 24usize];
19227};
19228pub const MSHV_GPA_HOST_ACCESS_BIT_ACQUIRE: _bindgen_ty_9 = 0;
19229pub const MSHV_GPA_HOST_ACCESS_BIT_READABLE: _bindgen_ty_9 = 1;
19230pub const MSHV_GPA_HOST_ACCESS_BIT_WRITABLE: _bindgen_ty_9 = 2;
19231pub const MSHV_GPA_HOST_ACCESS_BIT_LARGE_PAGE: _bindgen_ty_9 = 3;
19232pub const MSHV_GPA_HOST_ACCESS_BIT_COUNT: _bindgen_ty_9 = 4;
19233pub type _bindgen_ty_9 = ::std::os::raw::c_uint;
19234#[repr(C)]
19235#[derive(Debug, Default)]
19236pub struct mshv_modify_gpa_host_access {
19237 pub flags: __u8,
19238 pub rsvd: [__u8; 7usize],
19239 pub page_count: __u64,
19240 pub guest_pfns: __IncompleteArrayField<__u64>,
19241}
19242#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19243const _: () = {
19244 ["Size of mshv_modify_gpa_host_access"]
19245 [::std::mem::size_of::<mshv_modify_gpa_host_access>() - 16usize];
19246 ["Alignment of mshv_modify_gpa_host_access"]
19247 [::std::mem::align_of::<mshv_modify_gpa_host_access>() - 8usize];
19248 ["Offset of field: mshv_modify_gpa_host_access::flags"]
19249 [::std::mem::offset_of!(mshv_modify_gpa_host_access, flags) - 0usize];
19250 ["Offset of field: mshv_modify_gpa_host_access::rsvd"]
19251 [::std::mem::offset_of!(mshv_modify_gpa_host_access, rsvd) - 1usize];
19252 ["Offset of field: mshv_modify_gpa_host_access::page_count"]
19253 [::std::mem::offset_of!(mshv_modify_gpa_host_access, page_count) - 8usize];
19254 ["Offset of field: mshv_modify_gpa_host_access::guest_pfns"]
19255 [::std::mem::offset_of!(mshv_modify_gpa_host_access, guest_pfns) - 16usize];
19256};
19257pub const MSHV_ISOLATED_PAGE_NORMAL: _bindgen_ty_10 = 0;
19258pub const MSHV_ISOLATED_PAGE_VMSA: _bindgen_ty_10 = 1;
19259pub const MSHV_ISOLATED_PAGE_ZERO: _bindgen_ty_10 = 2;
19260pub const MSHV_ISOLATED_PAGE_UNMEASURED: _bindgen_ty_10 = 3;
19261pub const MSHV_ISOLATED_PAGE_SECRETS: _bindgen_ty_10 = 4;
19262pub const MSHV_ISOLATED_PAGE_CPUID: _bindgen_ty_10 = 5;
19263pub const MSHV_ISOLATED_PAGE_COUNT: _bindgen_ty_10 = 6;
19264pub type _bindgen_ty_10 = ::std::os::raw::c_uint;
19265#[repr(C)]
19266#[derive(Debug, Default)]
19267pub struct mshv_import_isolated_pages {
19268 pub page_type: __u8,
19269 pub rsvd: [__u8; 7usize],
19270 pub page_count: __u64,
19271 pub guest_pfns: __IncompleteArrayField<__u64>,
19272}
19273#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19274const _: () = {
19275 ["Size of mshv_import_isolated_pages"]
19276 [::std::mem::size_of::<mshv_import_isolated_pages>() - 16usize];
19277 ["Alignment of mshv_import_isolated_pages"]
19278 [::std::mem::align_of::<mshv_import_isolated_pages>() - 8usize];
19279 ["Offset of field: mshv_import_isolated_pages::page_type"]
19280 [::std::mem::offset_of!(mshv_import_isolated_pages, page_type) - 0usize];
19281 ["Offset of field: mshv_import_isolated_pages::rsvd"]
19282 [::std::mem::offset_of!(mshv_import_isolated_pages, rsvd) - 1usize];
19283 ["Offset of field: mshv_import_isolated_pages::page_count"]
19284 [::std::mem::offset_of!(mshv_import_isolated_pages, page_count) - 8usize];
19285 ["Offset of field: mshv_import_isolated_pages::guest_pfns"]
19286 [::std::mem::offset_of!(mshv_import_isolated_pages, guest_pfns) - 16usize];
19287};
19288#[repr(C)]
19289#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19290pub struct mshv_root_hvcall {
19291 pub code: __u16,
19292 pub reps: __u16,
19293 pub in_sz: __u16,
19294 pub out_sz: __u16,
19295 pub status: __u16,
19296 pub rsvd: [__u8; 6usize],
19297 pub in_ptr: __u64,
19298 pub out_ptr: __u64,
19299}
19300#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19301const _: () = {
19302 ["Size of mshv_root_hvcall"][::std::mem::size_of::<mshv_root_hvcall>() - 32usize];
19303 ["Alignment of mshv_root_hvcall"][::std::mem::align_of::<mshv_root_hvcall>() - 8usize];
19304 ["Offset of field: mshv_root_hvcall::code"]
19305 [::std::mem::offset_of!(mshv_root_hvcall, code) - 0usize];
19306 ["Offset of field: mshv_root_hvcall::reps"]
19307 [::std::mem::offset_of!(mshv_root_hvcall, reps) - 2usize];
19308 ["Offset of field: mshv_root_hvcall::in_sz"]
19309 [::std::mem::offset_of!(mshv_root_hvcall, in_sz) - 4usize];
19310 ["Offset of field: mshv_root_hvcall::out_sz"]
19311 [::std::mem::offset_of!(mshv_root_hvcall, out_sz) - 6usize];
19312 ["Offset of field: mshv_root_hvcall::status"]
19313 [::std::mem::offset_of!(mshv_root_hvcall, status) - 8usize];
19314 ["Offset of field: mshv_root_hvcall::rsvd"]
19315 [::std::mem::offset_of!(mshv_root_hvcall, rsvd) - 10usize];
19316 ["Offset of field: mshv_root_hvcall::in_ptr"]
19317 [::std::mem::offset_of!(mshv_root_hvcall, in_ptr) - 16usize];
19318 ["Offset of field: mshv_root_hvcall::out_ptr"]
19319 [::std::mem::offset_of!(mshv_root_hvcall, out_ptr) - 24usize];
19320};
19321pub const MSHV_VP_MMAP_OFFSET_REGISTERS: _bindgen_ty_11 = 0;
19322pub const MSHV_VP_MMAP_OFFSET_INTERCEPT_MESSAGE: _bindgen_ty_11 = 1;
19323pub const MSHV_VP_MMAP_OFFSET_GHCB: _bindgen_ty_11 = 2;
19324pub const MSHV_VP_MMAP_OFFSET_COUNT: _bindgen_ty_11 = 3;
19325pub type _bindgen_ty_11 = ::std::os::raw::c_uint;
19326#[repr(C)]
19327#[derive(Debug, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19328pub struct mshv_run_vp {
19329 pub msg_buf: [__u8; 256usize],
19330}
19331#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19332const _: () = {
19333 ["Size of mshv_run_vp"][::std::mem::size_of::<mshv_run_vp>() - 256usize];
19334 ["Alignment of mshv_run_vp"][::std::mem::align_of::<mshv_run_vp>() - 1usize];
19335 ["Offset of field: mshv_run_vp::msg_buf"]
19336 [::std::mem::offset_of!(mshv_run_vp, msg_buf) - 0usize];
19337};
19338impl Default for mshv_run_vp {
19339 fn default() -> Self {
19340 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
19341 unsafe {
19342 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
19343 s.assume_init()
19344 }
19345 }
19346}
19347pub const MSHV_DEV_TYPE_VFIO: _bindgen_ty_12 = 0;
19348pub const MSHV_DEV_TYPE_MAX: _bindgen_ty_12 = 1;
19349pub type _bindgen_ty_12 = ::std::os::raw::c_uint;
19350#[repr(C)]
19351#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19352pub struct mshv_create_device {
19353 pub type_: __u32,
19354 pub fd: __u32,
19355 pub flags: __u32,
19356}
19357#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19358const _: () = {
19359 ["Size of mshv_create_device"][::std::mem::size_of::<mshv_create_device>() - 12usize];
19360 ["Alignment of mshv_create_device"][::std::mem::align_of::<mshv_create_device>() - 4usize];
19361 ["Offset of field: mshv_create_device::type_"]
19362 [::std::mem::offset_of!(mshv_create_device, type_) - 0usize];
19363 ["Offset of field: mshv_create_device::fd"]
19364 [::std::mem::offset_of!(mshv_create_device, fd) - 4usize];
19365 ["Offset of field: mshv_create_device::flags"]
19366 [::std::mem::offset_of!(mshv_create_device, flags) - 8usize];
19367};
19368#[repr(C)]
19369#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19370pub struct mshv_device_attr {
19371 pub flags: __u32,
19372 pub group: __u32,
19373 pub attr: __u64,
19374 pub addr: __u64,
19375}
19376#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19377const _: () = {
19378 ["Size of mshv_device_attr"][::std::mem::size_of::<mshv_device_attr>() - 24usize];
19379 ["Alignment of mshv_device_attr"][::std::mem::align_of::<mshv_device_attr>() - 8usize];
19380 ["Offset of field: mshv_device_attr::flags"]
19381 [::std::mem::offset_of!(mshv_device_attr, flags) - 0usize];
19382 ["Offset of field: mshv_device_attr::group"]
19383 [::std::mem::offset_of!(mshv_device_attr, group) - 4usize];
19384 ["Offset of field: mshv_device_attr::attr"]
19385 [::std::mem::offset_of!(mshv_device_attr, attr) - 8usize];
19386 ["Offset of field: mshv_device_attr::addr"]
19387 [::std::mem::offset_of!(mshv_device_attr, addr) - 16usize];
19388};
19389#[repr(C)]
19390#[derive(Debug, Default, Copy, Clone, PartialOrd, Ord, PartialEq, Eq)]
19391pub struct mshv_trace_config {
19392 pub mode: __u32,
19393 pub max_buffers_count: __u32,
19394 pub pages_per_buffer: __u32,
19395 pub buffers_threshold: __u32,
19396 pub time_basis: __u32,
19397 pub system_time: __u64,
19398}
19399#[allow(clippy::unnecessary_operation, clippy::identity_op)]
19400const _: () = {
19401 ["Size of mshv_trace_config"][::std::mem::size_of::<mshv_trace_config>() - 32usize];
19402 ["Alignment of mshv_trace_config"][::std::mem::align_of::<mshv_trace_config>() - 8usize];
19403 ["Offset of field: mshv_trace_config::mode"]
19404 [::std::mem::offset_of!(mshv_trace_config, mode) - 0usize];
19405 ["Offset of field: mshv_trace_config::max_buffers_count"]
19406 [::std::mem::offset_of!(mshv_trace_config, max_buffers_count) - 4usize];
19407 ["Offset of field: mshv_trace_config::pages_per_buffer"]
19408 [::std::mem::offset_of!(mshv_trace_config, pages_per_buffer) - 8usize];
19409 ["Offset of field: mshv_trace_config::buffers_threshold"]
19410 [::std::mem::offset_of!(mshv_trace_config, buffers_threshold) - 12usize];
19411 ["Offset of field: mshv_trace_config::time_basis"]
19412 [::std::mem::offset_of!(mshv_trace_config, time_basis) - 16usize];
19413 ["Offset of field: mshv_trace_config::system_time"]
19414 [::std::mem::offset_of!(mshv_trace_config, system_time) - 24usize];
19415};