summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2025-12-09 17:23:24 +0800
committerR b b666 <[email protected]>2025-12-09 21:04:16 +0800
commit056ae364cbea3185281c9130b9e840cef37a1418 (patch)
treef6b97a2c17039125dbfd435b155f8683d0dc12ce /components/drivers/include
parentc857e035440681bca0010b35418bdb3a9ca62d52 (diff)
[dm][core] add new API for DM
1. rt_dm_dev_is_big_endian 2. rt_dm_dev_get_prop_fuzzy_name Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/core/dm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/core/dm.h b/components/drivers/include/drivers/core/dm.h
index 7743aa0bb2..a6c0ec93f1 100644
--- a/components/drivers/include/drivers/core/dm.h
+++ b/components/drivers/include/drivers/core/dm.h
@@ -70,6 +70,8 @@ int rt_dm_dev_get_name_id(rt_device_t dev);
int rt_dm_dev_set_name(rt_device_t dev, const char *format, ...);
const char *rt_dm_dev_get_name(rt_device_t dev);
+rt_bool_t rt_dm_dev_is_big_endian(rt_device_t dev);
+
int rt_dm_dev_get_address_count(rt_device_t dev);
rt_err_t rt_dm_dev_get_address(rt_device_t dev, int index,
rt_uint64_t *out_address, rt_uint64_t *out_size);
@@ -87,6 +89,8 @@ int rt_dm_dev_get_irq_by_name(rt_device_t dev, const char *name);
void rt_dm_dev_bind_fwdata(rt_device_t dev, void *fw_np, void *data);
void rt_dm_dev_unbind_fwdata(rt_device_t dev, void *fw_np);
+const char *rt_dm_dev_get_prop_fuzzy_name(rt_device_t dev, const char *name);
+
int rt_dm_dev_prop_read_u8_array_index(rt_device_t dev, const char *propname,
int index, int nr, rt_uint8_t *out_values);
int rt_dm_dev_prop_read_u16_array_index(rt_device_t dev, const char *propname,