RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
ofw_fdt.h 文件参考
#include <mm_page.h>
#include <drivers/ofw.h>
+ ofw_fdt.h 的引用(Include)关系图:

浏览该文件的源代码.

结构体

struct  rt_fdt_earlycon
 
struct  rt_fdt_earlycon_id
 

宏定义

#define FDT_EARLYCON_KICK_UPDATE   0
 
#define FDT_EARLYCON_KICK_COMPLETED   1
 
#define RT_FDT_EARLYCON_EXPORT(_name, _type, _compatible, _setup)
 

函数

const char * rt_fdt_node_name (const char *full_name)
 
rt_uint64_t rt_fdt_read_number (const fdt32_t *cell, int size)
 
rt_uint64_t rt_fdt_next_cell (const fdt32_t **cellptr, int size)
 
rt_uint64_t rt_fdt_translate_address (void *fdt, int nodeoffset, rt_uint64_t address)
 
rt_bool_t rt_fdt_device_is_available (void *fdt, int nodeoffset)
 
rt_err_t rt_fdt_commit_memregion_early (rt_region_t *region, rt_bool_t is_reserved)
 
rt_err_t rt_fdt_commit_memregion_request (rt_region_t **out_region, rt_size_t *out_nr, rt_bool_t is_reserved)
 
rt_err_t rt_fdt_prefetch (void *fdt)
 
rt_err_t rt_fdt_scan_root (void)
 
rt_err_t rt_fdt_scan_memory (void)
 
rt_err_t rt_fdt_scan_initrd (rt_uint64_t *ranges)
 
rt_err_t rt_fdt_model_dump (void)
 
rt_err_t rt_fdt_boot_dump (void)
 
void rt_fdt_earlycon_output (const char *str)
 
void rt_fdt_earlycon_kick (int why)
 
rt_err_t rt_fdt_scan_chosen_stdout (void)
 
rt_err_t rt_fdt_bootargs_select (const char *key, int index, const char **out_result)
 
rt_err_t rt_fdt_unflatten (void)
 
struct rt_ofw_nodert_fdt_unflatten_single (void *fdt)
 

宏定义说明

◆ FDT_EARLYCON_KICK_UPDATE

#define FDT_EARLYCON_KICK_UPDATE   0

在文件 ofw_fdt.h29 行定义.

◆ FDT_EARLYCON_KICK_COMPLETED

#define FDT_EARLYCON_KICK_COMPLETED   1

在文件 ofw_fdt.h30 行定义.

◆ RT_FDT_EARLYCON_EXPORT

#define RT_FDT_EARLYCON_EXPORT ( _name,
_type,
_compatible,
_setup )
值:
static const struct rt_fdt_earlycon_id __rt_fdt_##_name##_earlycon \
rt_used RT_OFW_SYMBOL(earlycon, _) = \
{ \
.name = #_name, \
.type = _type, \
.compatible = _compatible, \
.setup = _setup, \
}
#define RT_OFW_SYMBOL(_class, _level)
定义 ofw.h:96

在文件 ofw_fdt.h45 行定义.

45#define RT_FDT_EARLYCON_EXPORT(_name, _type, _compatible, _setup) \
46static const struct rt_fdt_earlycon_id __rt_fdt_##_name##_earlycon \
47rt_used RT_OFW_SYMBOL(earlycon, _) = \
48{ \
49 .name = #_name, \
50 .type = _type, \
51 .compatible = _compatible, \
52 .setup = _setup, \
53}

函数说明

◆ rt_fdt_node_name()

const char * rt_fdt_node_name ( const char * full_name)

◆ rt_fdt_read_number()

rt_uint64_t rt_fdt_read_number ( const fdt32_t * cell,
int size )

◆ rt_fdt_next_cell()

rt_uint64_t rt_fdt_next_cell ( const fdt32_t ** cellptr,
int size )

◆ rt_fdt_translate_address()

rt_uint64_t rt_fdt_translate_address ( void * fdt,
int nodeoffset,
rt_uint64_t address )

◆ rt_fdt_device_is_available()

rt_bool_t rt_fdt_device_is_available ( void * fdt,
int nodeoffset )

◆ rt_fdt_commit_memregion_early()

rt_err_t rt_fdt_commit_memregion_early ( rt_region_t * region,
rt_bool_t is_reserved )

◆ rt_fdt_commit_memregion_request()

rt_err_t rt_fdt_commit_memregion_request ( rt_region_t ** out_region,
rt_size_t * out_nr,
rt_bool_t is_reserved )

◆ rt_fdt_prefetch()

rt_err_t rt_fdt_prefetch ( void * fdt)

◆ rt_fdt_scan_root()

rt_err_t rt_fdt_scan_root ( void )

◆ rt_fdt_scan_memory()

rt_err_t rt_fdt_scan_memory ( void )

◆ rt_fdt_scan_initrd()

rt_err_t rt_fdt_scan_initrd ( rt_uint64_t * ranges)

◆ rt_fdt_model_dump()

rt_err_t rt_fdt_model_dump ( void )

◆ rt_fdt_boot_dump()

rt_err_t rt_fdt_boot_dump ( void )

◆ rt_fdt_earlycon_output()

void rt_fdt_earlycon_output ( const char * str)

◆ rt_fdt_earlycon_kick()

void rt_fdt_earlycon_kick ( int why)

◆ rt_fdt_scan_chosen_stdout()

rt_err_t rt_fdt_scan_chosen_stdout ( void )

◆ rt_fdt_bootargs_select()

rt_err_t rt_fdt_bootargs_select ( const char * key,
int index,
const char ** out_result )

◆ rt_fdt_unflatten()

rt_err_t rt_fdt_unflatten ( void )

◆ rt_fdt_unflatten_single()

struct rt_ofw_node * rt_fdt_unflatten_single ( void * fdt)