pub struct HisiLpc {
regs: MmioRegion,
power_state: PowerState,
children: Vec<BusChild>,
}Fields§
§regs: MmioRegion§power_state: PowerState§children: Vec<BusChild>Implementations§
Source§impl HisiLpc
impl HisiLpc
Sourcefn wait_finish(&self) -> Result<(), BusError>
fn wait_finish(&self) -> Result<(), BusError>
Performs the wait finish operation.
Sourcepub fn lpc_read(&self, addr: u32, width: u32) -> Result<u32, BusError>
pub fn lpc_read(&self, addr: u32, width: u32) -> Result<u32, BusError>
Performs the lpc read operation.
Sourcepub fn lpc_write(
&self,
addr: u32,
width: u32,
data: u32,
) -> Result<(), BusError>
pub fn lpc_write( &self, addr: u32, width: u32, data: u32, ) -> Result<(), BusError>
Performs the lpc write operation.
Sourcepub fn io_write8(&self, port: u16, val: u8) -> Result<(), BusError>
pub fn io_write8(&self, port: u16, val: u8) -> Result<(), BusError>
Performs the io write8 operation.
Sourcepub fn io_write16(&self, port: u16, val: u16) -> Result<(), BusError>
pub fn io_write16(&self, port: u16, val: u16) -> Result<(), BusError>
Performs the io write16 operation.
Trait Implementations§
Source§impl BusDriver for HisiLpc
impl BusDriver for HisiLpc
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 HisiLpc
impl RefUnwindSafe for HisiLpc
impl Send for HisiLpc
impl Sync for HisiLpc
impl Unpin for HisiLpc
impl UnsafeUnpin for HisiLpc
impl UnwindSafe for HisiLpc
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