diff options
| author | GUI <[email protected]> | 2024-11-25 11:00:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-25 11:00:04 +0800 |
| commit | f849afb5ca40f4843d86d6bd55253b2db57a7ad4 (patch) | |
| tree | 5ea0287d22459c1df3753d29a2247fc336fb0347 /components/drivers/include/rtdevice.h | |
| parent | 8ed4ae144fda951d7a3f5ffbfbf810b1ce1bf2c8 (diff) | |
[DM/FEATURE] Support hardware mailbox (#9599)
* [DM/FEATURE] Support hardware mailbox
* [MAILBOX/PIC] Add PIC Mailbox drivers.
The mailbox device(s) may be instantiated in one of three equivalent way:
Device Tree node, eg.:
```dts
interrupt-controller@0 {
interrupt-controller;
#interrupt-cells = <1>;
};
pic_mailbox@10000 {
compatible = "rt-thread,pic-mailbox";
reg = <0x10000 0x100>;
position = <0>;
interrupts = <34>;
peer-interrupts = <35>;
uid = <0>;
#mbox-cells = <1>;
};
```
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include/rtdevice.h')
| -rw-r--r-- | components/drivers/include/rtdevice.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index ceb02485e3..aa56b6820c 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -45,19 +45,23 @@ extern "C" { #include "drivers/core/power_domain.h" #include "drivers/platform.h" +#ifdef RT_USING_MBOX +#include "drivers/mailbox.h" +#endif /* RT_USING_MBOX */ + #ifdef RT_USING_BLK #include "drivers/blk.h" -#endif +#endif /* RT_USING_BLK */ #ifdef RT_USING_DMA #include "drivers/dma.h" -#endif +#endif /* RT_USING_DMA */ #include "drivers/iio.h" #ifdef RT_USING_NVME #include "drivers/nvme.h" -#endif +#endif /* RT_USING_NVME */ #ifdef RT_USING_OFW #include "drivers/ofw.h" @@ -69,26 +73,26 @@ extern "C" { #ifdef RT_USING_PHYE #include "drivers/phye.h" -#endif +#endif /* RT_USING_PHYE */ #ifdef RT_USING_PIC #include "drivers/pic.h" -#endif +#endif /* RT_USING_PIC */ #ifdef RT_USING_SCSI #include "drivers/scsi.h" -#endif +#endif /* RT_USING_SCSI */ #ifdef RT_MFD_SYSCON #include "drivers/syscon.h" -#endif +#endif /* RT_MFD_SYSCON */ #endif /* RT_USING_DM */ #ifdef RT_USING_RTC #include "drivers/dev_rtc.h" #ifdef RT_USING_ALARM #include "drivers/dev_alarm.h" -#endif +#endif /* RT_USING_ALARM */ #endif /* RT_USING_RTC */ #ifdef RT_USING_SPI |
