Decoupling Architectural-specific Code (#35)
[lunaix-os.git] / lunaix-os / arch / i386 / includes / sys / pci_hba.h
index 0546dcacc658ccc4b277a2fc2b55c97ec20955fb..74d9c033a9b605c52d62a71b406ba8dee91e6ef1 100644 (file)
@@ -23,15 +23,15 @@ pci_write_cspace(ptr_t base, int offset, pci_reg_t data)
     port_wrdword(PCI_CONFIG_DATA, data);
 }
 
-/**
- * @brief 配置并启用设备MSI支持。
- * 参阅:PCI LB Spec. (Rev 3) Section 6.8 & 6.8.1
- * 以及:Intel Manual, Vol 3, Section 10.11
- *
- * @param device PCI device
- * @param vector interrupt vector.
- */
-void
-pci_setup_msi(struct pci_device* device, int vector);
+static inline u16_t 
+pci_config_msi_data(int vector) {
+    return vector;
+}
+
+static inline ptr_t 
+pci_get_msi_base() {
+    return 0xFEE00000;
+}
+
 
 #endif /* __LUNAIX_PCI_HBA_H */