diff options
| author | GUI <[email protected]> | 2024-05-28 09:54:03 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-28 09:54:03 +0800 |
| commit | f0351880943c392b8e439c196721060e66d4945a (patch) | |
| tree | f4d981d3bafc80de2003ab643ede5eb75ff5bb6c /components/drivers/include | |
| parent | 8c6c9205b01b14e99d41ddbc608fb4eef5d0362f (diff) | |
[OFW] Support ID map interface (#8994)
The OFW map id is always use in DMA, PCI, IOMMU
bus system to find the device identity. this is
a access interface.
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/ofw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/ofw.h b/components/drivers/include/drivers/ofw.h index 4ee2049e8f..809a84d4a4 100644 --- a/components/drivers/include/drivers/ofw.h +++ b/components/drivers/include/drivers/ofw.h @@ -205,6 +205,9 @@ struct rt_ofw_node *rt_ofw_get_alias_node(const char *tag, int id); int rt_ofw_get_alias_id(struct rt_ofw_node *np, const char *tag); int rt_ofw_get_alias_last_id(const char *tag); +rt_err_t rt_ofw_map_id(struct rt_ofw_node *np, rt_uint32_t id, const char *map_name, const char *map_mask_name, + struct rt_ofw_node **ref_np, rt_uint32_t *out_id); + struct rt_ofw_node *rt_ofw_append_child(struct rt_ofw_node *parent, const char *full_name); rt_err_t rt_ofw_append_prop(struct rt_ofw_node *np, const char *name, int length, void *value); |
