RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
syscon.h
浏览该文件的文档.
1/*
2 * Copyright (c) 2006-2023, RT-Thread Development Team
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Change Logs:
7 * Date Author Notes
8 * 2023-02-25 GuEe-GUI the first version
9 */
10
11#ifndef __SYSCON_H__
12#define __SYSCON_H__
13
14#include <drivers/ofw.h>
15
26
27rt_err_t rt_syscon_read(struct rt_syscon *syscon, rt_off_t offset, rt_uint32_t *out_val);
30
32struct rt_syscon *rt_syscon_find_by_ofw_compatible(const char *compatible);
33struct rt_syscon *rt_syscon_find_by_ofw_phandle(struct rt_ofw_node *np, const char *propname);
34
35#endif /* __SYSCON_H__ */
rt_base_t rt_off_t
rt_base_t rt_err_t
rt_ubase_t rt_size_t
struct rt_list_node rt_list_t
unsigned int rt_uint32_t
rt_list_t list
struct rt_ofw_node * np
void * iomem_base
struct rt_spinlock rw_lock
rt_size_t iomem_size
rt_err_t rt_syscon_write(struct rt_syscon *syscon, rt_off_t offset, rt_uint32_t val)
struct rt_syscon * rt_syscon_find_by_ofw_node(struct rt_ofw_node *np)
rt_err_t rt_syscon_read(struct rt_syscon *syscon, rt_off_t offset, rt_uint32_t *out_val)
struct rt_syscon * rt_syscon_find_by_ofw_compatible(const char *compatible)
struct rt_syscon * rt_syscon_find_by_ofw_phandle(struct rt_ofw_node *np, const char *propname)
rt_err_t rt_syscon_update_bits(struct rt_syscon *syscon, rt_off_t offset, rt_uint32_t mask, rt_uint32_t val)