rt-thread/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc
Shell b73396681a
[bsp/allwinner] feat: porting to RT_USING_DEVICE_OPS (#9142)
* [bsp/allwinner] feat: porting to RT_USING_DEVICE_OPS

This patch ports the codebase to use the RT_USING_DEVICE_OPS structure,
which is required by v5.1.0 Smart kernel, improves modularity and makes
it easier to manage device operations by consolidating them into a
single structure, enhancing maintainability and future scalability.

Changes:
- Added RT_USING_DEVICE_OPS conditionals to partition.c and drv_sdmmc.c.
- Defined rt_device_ops structures for partition and sdmmc drivers.
- Updated device initialization to use the ops structure if defined.
- Replaced direct function calls with rt_dev_control, rt_dev_read, and
  rt_dev_write macros where applicable.
- Removed redundant us_delay function from os.c.

Signed-off-by: Shell <smokewood@qq.com>

* feat: update configuration

* feat: fixup compiler warning

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-07-09 13:35:03 +08:00
..
cmd sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
hal sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
osal [Kernel] message 可以返回消息的实际大小 (#7709) 2023-06-21 18:22:42 +08:00
platform sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
Kconfig format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
Makefile sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
_core.h sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
_mmc.h sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
_sd.h sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
_sd_define.h sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
_sdhost.h sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
_sdio.h sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
blkpart.c [bsp/allwinner] feat: porting to RT_USING_DEVICE_OPS (#9142) 2024-07-09 13:35:03 +08:00
core.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
hal_sdhost.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
hal_sdpin.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
mmc.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
platform_mmc.h sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
quirks.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
sd.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
sdio.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
sdio_irq.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00
test.c sync branch rt-smart. (#6641) 2022-12-03 12:07:44 +08:00