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