summaryrefslogtreecommitdiff
path: root/components/drivers/include/rtdevice.h
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-12-11 19:28:20 +0800
committerRbb666 <[email protected]>2024-12-13 10:39:20 +0800
commitd248a3a2887dc4ec56c5d9cf8ffa535665f42eeb (patch)
tree7f0e03b6cf9353e8ffb072ce2011c803d9b14af8 /components/drivers/include/rtdevice.h
parent76d3cf3b8688f170a0cef4d3816488f54de8c756 (diff)
[DM/FIXUP] Fixup PCI build
1. Add PCI include in rtdevice.h 2. Fixup `RT_KEY_ENABLED` loss. 3. remove waring type of `dw_pcie_ep_get_func_from_ep` return. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include/rtdevice.h')
-rw-r--r--components/drivers/include/rtdevice.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h
index 1f007630df..09f5e455f7 100644
--- a/components/drivers/include/rtdevice.h
+++ b/components/drivers/include/rtdevice.h
@@ -89,6 +89,16 @@ extern "C" {
#include "drivers/pic.h"
#endif /* RT_USING_PIC */
+#ifdef RT_USING_PCI
+#include "drivers/pci.h"
+#ifdef RT_PCI_MSI
+#include "drivers/pci_msi.h"
+#endif /* RT_PCI_MSI */
+#ifdef RT_PCI_ENDPOINT
+#include "drivers/pci_endpoint.h"
+#endif /* RT_PCI_ENDPOINT */
+#endif /* RT_USING_PCI */
+
#ifdef RT_USING_REGULATOR
#include "drivers/regulator.h"
#endif /* RT_USING_REGULATOR */