summaryrefslogtreecommitdiff
path: root/components/drivers/include/rtdevice.h
diff options
context:
space:
mode:
authorwusongjie <[email protected]>2023-07-05 13:50:18 +0800
committerwusongjie <[email protected]>2023-07-05 16:45:16 +0800
commit8aa4366cb2910c2c61729608d9f2a90868d16deb (patch)
treee6eca929c54cd5eda0b71c7b3582c3b663be668b /components/drivers/include/rtdevice.h
parent950d71e1accaee3e4aa76438601715395015943f (diff)
Drivers: Support Open Firmware API and model of PIC
We support OFW API to replace fdt old API, and add IRQ, IO, Platform-Bus, CPUs ... OFW node contorl. To support work with Device Tree or ACPI in drivers that use IRQ, we make a programmable interrupt controller driver's model. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include/rtdevice.h')
-rw-r--r--components/drivers/include/rtdevice.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h
index 60da08f8b1..06e5c7158a 100644
--- a/components/drivers/include/rtdevice.h
+++ b/components/drivers/include/rtdevice.h
@@ -171,6 +171,18 @@ extern "C" {
#ifdef RT_USING_DM
#include "drivers/core/rtdm.h"
+
+#ifdef RT_USING_OFW
+#include "drivers/ofw.h"
+#include "drivers/ofw_fdt.h"
+#include "drivers/ofw_io.h"
+#include "drivers/ofw_irq.h"
+#include "drivers/ofw_raw.h"
+#endif /* RT_USING_OFW */
+
+#ifdef RT_USING_PIC
+#include "drivers/pic.h"
+#endif
#endif /* RT_USING_DM */
#ifdef __cplusplus