xref: /DragonOS/kernel/src/arch/riscv64/msi.rs (revision 352ee04918f4585ad4f8a896ca6e18b1ef7d7934)
1 use crate::driver::pci::pci_irq::TriggerMode;
2 
3 /// @brief 获得MSI Message Address
4 /// @param processor 目标CPU ID号
5 /// @return MSI Message Address
6 pub fn arch_msi_message_address(_processor: u16) -> u32 {
7     unimplemented!("riscv64::arch_msi_message_address()")
8 }
9 /// @brief 获得MSI Message Data
10 /// @param vector 分配的中断向量号
11 /// @param processor 目标CPU ID号
12 /// @param trigger  申请中断的触发模式,MSI默认为边沿触发
13 /// @return MSI Message Address
14 pub fn arch_msi_message_data(_vector: u16, _processor: u16, _trigger: TriggerMode) -> u32 {
15     unimplemented!("riscv64::arch_msi_message_data()")
16 }
17