pub struct Plic {
base: usize,
manager: SpinLock<IrqManager>,
}Expand description
Platform Level Interrupt Controller (PLIC) 结构体
Fields§
§base: usize§manager: SpinLock<IrqManager>Trait Implementations§
Source§impl Driver for Plic
impl Driver for Plic
Source§fn try_handle_interrupt(&self, _irq: Option<usize>) -> bool
fn try_handle_interrupt(&self, _irq: Option<usize>) -> bool
Source§fn device_type(&self) -> DeviceType
fn device_type(&self) -> DeviceType
Source§fn as_net_arc(self: Arc<Self>) -> Option<Arc<dyn NetDevice>>
fn as_net_arc(self: Arc<Self>) -> Option<Arc<dyn NetDevice>>
将驱动程序转换为网络驱动程序 Arc(如果适用)
Source§fn as_block(&self) -> Option<&dyn BlockDriver>
fn as_block(&self) -> Option<&dyn BlockDriver>
将驱动程序转换为块设备驱动程序(如果适用)
Source§fn as_block_arc(self: Arc<Self>) -> Option<Arc<dyn BlockDriver>>
fn as_block_arc(self: Arc<Self>) -> Option<Arc<dyn BlockDriver>>
将驱动程序转换为块设备驱动程序 Arc(如果适用)
Source§fn as_rtc_arc(self: Arc<Self>) -> Option<Arc<dyn RtcDriver>>
fn as_rtc_arc(self: Arc<Self>) -> Option<Arc<dyn RtcDriver>>
将驱动程序转换为实时时钟驱动程序 Arc(如果适用)
Source§fn as_serial(&self) -> Option<&dyn SerialDriver>
fn as_serial(&self) -> Option<&dyn SerialDriver>
将驱动程序转换为串口驱动程序(如果适用)