#[repr(C)]pub struct DcfgArmGenericTimerMmioDriver {
pub mmio_phys: u64,
pub frequency: u32,
pub active_frames_mask: u8,
pub reserved0: [u8; 3],
pub frames: [DcfgArmGenericTimerMmioFrame; 8],
}
Expand description
for ZBI_KERNEL_DRIVER_ARM_GENERIC_TIMER_MMIO
Fields§
§mmio_phys: u64
Base address of CNTCTLBase
frame.
frequency: u32
The frequency of the main counter for the timer.
active_frames_mask: u8
Bitmask containing the set of active frames.
The i-th
frame is considered active iff the i
-th bit is set.
Note: While there may be up to 8 frames, both missing and disabled frames are treated
as inactive. Disabled frame information will be present, while missing frames will be zeroed.
reserved0: [u8; 3]
§frames: [DcfgArmGenericTimerMmioFrame; 8]
Information for each individual frame. Inactive frames must be zero-filled.
Trait Implementations§
Source§impl Clone for DcfgArmGenericTimerMmioDriver
impl Clone for DcfgArmGenericTimerMmioDriver
Source§fn clone(&self) -> DcfgArmGenericTimerMmioDriver
fn clone(&self) -> DcfgArmGenericTimerMmioDriver
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl FromBytes for DcfgArmGenericTimerMmioDriver
impl FromBytes for DcfgArmGenericTimerMmioDriver
Source§impl FromZeros for DcfgArmGenericTimerMmioDriver
impl FromZeros for DcfgArmGenericTimerMmioDriver
Source§impl IntoBytes for DcfgArmGenericTimerMmioDriver
impl IntoBytes for DcfgArmGenericTimerMmioDriver
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl PartialEq for DcfgArmGenericTimerMmioDriver
impl PartialEq for DcfgArmGenericTimerMmioDriver
Source§fn eq(&self, other: &DcfgArmGenericTimerMmioDriver) -> bool
fn eq(&self, other: &DcfgArmGenericTimerMmioDriver) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl TryFromBytes for DcfgArmGenericTimerMmioDriver
impl TryFromBytes for DcfgArmGenericTimerMmioDriver
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for DcfgArmGenericTimerMmioDriver
impl Eq for DcfgArmGenericTimerMmioDriver
impl StructuralPartialEq for DcfgArmGenericTimerMmioDriver
Auto Trait Implementations§
impl Freeze for DcfgArmGenericTimerMmioDriver
impl RefUnwindSafe for DcfgArmGenericTimerMmioDriver
impl Send for DcfgArmGenericTimerMmioDriver
impl Sync for DcfgArmGenericTimerMmioDriver
impl Unpin for DcfgArmGenericTimerMmioDriver
impl UnwindSafe for DcfgArmGenericTimerMmioDriver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more