xref: /DragonOS/kernel/src/arch/riscv64/msi.rs (revision 1ea2daad8121b77ed704e6d7c3a09f478147441d)
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