pub struct SramConfig {
pub ctrl_base: usize,
pub ctrl_offset: usize,
pub owner_mask: u32,
pub de2_owner: u32,
}Expand description
Configuration of the Allwinner SRAM controller (SRAMC) region that the Display Engine 2 must own to operate.
The exact register layout differs across sunxi SoC generations; platform
code (board support / DeviceTree) supplies it explicitly : mirroring the
sunxi_sram_claim() DT-driven flow in Linux (drivers/soc/sunxi/sunxi_sram.c).
Fields§
§ctrl_base: usizePhysical base address of the SRAM controller register block
(A64: 0x01C0_0000).
ctrl_offset: usizeOffset of the control register owning the DE2 SRAM region.
owner_mask: u32Mask of the ownership field inside the control register.
de2_owner: u32Value within the field selecting the display engine as owner.
Implementations§
Source§impl SramConfig
impl SramConfig
Sourcefn apply_field(current: u32, cfg: &Self) -> u32
fn apply_field(current: u32, cfg: &Self) -> u32
Applies de2_owner into the masked field of current.
Trait Implementations§
Source§impl Clone for SramConfig
impl Clone for SramConfig
Source§fn clone(&self) -> SramConfig
fn clone(&self) -> SramConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SramConfig
Auto Trait Implementations§
impl Freeze for SramConfig
impl RefUnwindSafe for SramConfig
impl Send for SramConfig
impl Sync for SramConfig
impl Unpin for SramConfig
impl UnsafeUnpin for SramConfig
impl UnwindSafe for SramConfig
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