#[repr(C)]pub struct DcfgSimple {
pub mmio_phys: u64,
pub irq: u32,
pub flags: u32,
}
Expand description
Kernel driver struct that can be used for simple drivers. Used by ZBI_KERNEL_DRIVER_PL011_UART, ZBI_KERNEL_DRIVER_AMLOGIC_UART, and ZBI_KERNEL_DRIVER_GENI_UART, ZBI_KERNEL_DRIVER_I8250_MMIO_UART.
Fields§
§mmio_phys: u64
§irq: u32
§flags: u32
Trait Implementations§
Source§impl Clone for DcfgSimple
impl Clone for DcfgSimple
Source§fn clone(&self) -> DcfgSimple
fn clone(&self) -> DcfgSimple
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 Debug for DcfgSimple
impl Debug for DcfgSimple
Source§impl FromBytes for DcfgSimple
impl FromBytes for DcfgSimple
Source§impl FromZeros for DcfgSimple
impl FromZeros for DcfgSimple
Source§impl IntoBytes for DcfgSimple
impl IntoBytes for DcfgSimple
§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 DcfgSimple
impl PartialEq for DcfgSimple
Source§impl TryFromBytes for DcfgSimple
impl TryFromBytes for DcfgSimple
§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 DcfgSimple
impl Eq for DcfgSimple
impl StructuralPartialEq for DcfgSimple
Auto Trait Implementations§
impl Freeze for DcfgSimple
impl RefUnwindSafe for DcfgSimple
impl Send for DcfgSimple
impl Sync for DcfgSimple
impl Unpin for DcfgSimple
impl UnwindSafe for DcfgSimple
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)