pub struct MvebuMbus {
mbus_regs: MmioRegion,
sdram_regs: MmioRegion,
bridge_regs: MmioRegion,
num_wins: usize,
has_bridge: bool,
hw_io_coherency: bool,
saved_wins: [MbusWindowData; 20],
power_state: PowerState,
}Fields§
§mbus_regs: MmioRegion§sdram_regs: MmioRegion§bridge_regs: MmioRegion§num_wins: usize§has_bridge: bool§hw_io_coherency: bool§saved_wins: [MbusWindowData; 20]§power_state: PowerStateImplementations§
Source§impl MvebuMbus
impl MvebuMbus
Sourcepub fn init_sdram_regs(&mut self, base: usize, size: usize)
pub fn init_sdram_regs(&mut self, base: usize, size: usize)
Initializes sdram regs.
Sourcepub fn init_bridge_regs(&mut self, base: usize, size: usize)
pub fn init_bridge_regs(&mut self, base: usize, size: usize)
Initializes bridge regs.
Sourcepub fn set_hw_io_coherency(&mut self, enable: bool)
pub fn set_hw_io_coherency(&mut self, enable: bool)
Sets hw io coherency.
Sourcefn win_offset(&self, win: usize) -> usize
fn win_offset(&self, win: usize) -> usize
Performs the win offset operation.
Sourcepub fn read_window(&self, win: usize) -> MbusWindowData
pub fn read_window(&self, win: usize) -> MbusWindowData
Reads window.
Sourcepub fn setup_window(
&self,
win: usize,
base: u32,
size: u32,
target: u8,
attr: u8,
remap: Option<u64>,
)
pub fn setup_window( &self, win: usize, base: u32, size: u32, target: u8, attr: u8, remap: Option<u64>, )
Performs the setup window operation.
Sourcepub fn disable_window(&self, win: usize)
pub fn disable_window(&self, win: usize)
Disables window.
Sourcepub fn save_windows(&mut self)
pub fn save_windows(&mut self)
Performs the save windows operation.
Sourcepub fn restore_windows(&self)
pub fn restore_windows(&self)
Performs the restore windows operation.
Trait Implementations§
Source§impl BusDriver for MvebuMbus
impl BusDriver for MvebuMbus
Source§fn compatible(&self) -> &[&str]
fn compatible(&self) -> &[&str]
Performs the compatible operation.
Source§fn as_firewall(&self) -> Option<&dyn FirewallController>
fn as_firewall(&self) -> Option<&dyn FirewallController>
Returns the optional [
FirewallController] capability, if any. Read moreSource§fn probe(&self) -> bool
fn probe(&self) -> bool
Returns
true if the driver believes the hardware is present. Read moreSource§fn error_count(&self) -> u64
fn error_count(&self) -> u64
Performs the error count operation.
Source§fn handle_irq(&mut self) -> bool
fn handle_irq(&mut self) -> bool
Handles irq.
Auto Trait Implementations§
impl Freeze for MvebuMbus
impl RefUnwindSafe for MvebuMbus
impl Send for MvebuMbus
impl Sync for MvebuMbus
impl Unpin for MvebuMbus
impl UnsafeUnpin for MvebuMbus
impl UnwindSafe for MvebuMbus
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