XenevaOS
Loading...
Searching...
No Matches
dtb.h
Go to the documentation of this file.
1
32#ifndef __AA64_DTB_H__
33#define __AA64_DTB_H__
34
35#include <stdint.h>
36#include <aurora.h>
37
50
57
63
64
70
82
88
95
102
109
123
124
129extern void AuDeviceTreeMapMMIO();
130
131#endif
#define AU_EXTERN
Definition aurora.h:50
#define AU_EXPORT
Definition aurora.h:38
void AuDeviceTreeInitialize(KERNEL_BOOT_INFO *info)
AuDeviceTreeInitialize – initialize the device tree.
Definition dtb.c:260
AU_EXTERN AU_EXPORT uint16_t AuDTBSwap16(uint16_t from)
AuDTBSwap16 – swaps 16 bit value.
Definition dtb.c:81
AU_EXTERN AU_EXPORT uint32_t * AuDeviceTreeFindProperty(uint32_t *node, const char *property)
AuDeviceTreeFindProperty – searches for a property within a node.
Definition dtb.c:168
AU_EXTERN AU_EXPORT uint32_t AuDeviceTreeGetAddressCells(uint32_t *node)
AuDeviceTreeGetAddressCells – get the value from address cells property.
Definition dtb.c:183
AU_EXTERN AU_EXPORT uint64_t AuDeviceTreeGetRegAddress(uint32_t *node, uint32_t addressCell)
AuDeviceTreeGetRegAddress – get the MMIO address from reg property.
Definition dtb.c:223
AU_EXTERN AU_EXPORT uint32_t * AuDeviceTreeGetNode(const char *name)
AuDeviceTreeGetNode – searches and get the offset of the node.
Definition dtb.c:151
AU_EXTERN AU_EXPORT uint32_t AuDTBSwap32(uint32_t from)
AuDTBSwap32 – swaps 32 bit value.
Definition dtb.c:52
AU_EXTERN AU_EXPORT uint64_t AuDTBSwap64(uint64_t from)
AuDTBSwap64 – swaps 64 bit value.
Definition dtb.c:64
AU_EXTERN AU_EXPORT uint64_t AuDeviceTreeGetRegSize(uint32_t *node, uint32_t addressCell, uint32_t sizeCell)
AuDeviceTreeGetRegSize – get the size value from reg property.
Definition dtb.c:242
void AuDeviceTreeMapMMIO()
AuDeviceTreeMapMMIO – Maps the physical device tree address to MMIO address range.
Definition dtb.c:285
struct _fdt_prop_ fdt_property_t
AU_EXTERN AU_EXPORT uint32_t AuDeviceTreeGetSizeCells(uint32_t *node)
AuDeviceTreeGetSizeCells – get the value from size cells property.
Definition dtb.c:201
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
unsigned short int uint16_t
Definition acefiex.h:162
unsigned int uint32_t
Definition littleboot.h:40
Definition aurora.h:99
Definition dtb.h:51
uint32_t len
Definition dtb.h:53
uint32_t tag
Definition dtb.h:52
uint8_t value[]
Definition dtb.h:55
uint32_t nameoff
Definition dtb.h:54
Definition dtb.h:38
uint32_t off_dt_struct
Definition dtb.h:41
uint32_t magic
Definition dtb.h:39
uint32_t off_mem_rsvmap
Definition dtb.h:43
uint32_t boot_cpuid_phys
Definition dtb.h:46
uint32_t size_dt_strings
Definition dtb.h:47
uint32_t totalSize
Definition dtb.h:40
uint32_t version
Definition dtb.h:44
uint32_t off_dt_strings
Definition dtb.h:42
uint32_t size_dt_struct
Definition dtb.h:48
uint32_t last_comp_version
Definition dtb.h:45