43#define FDT_MAGIC 0xd00dfeed
52#define FDT_BEGIN_NODE 0x00000001
55#define FDT_END_NODE 0x00000002
58#define FDT_PROP 0x00000003
69#define FDT_NOP 0x00000004
72#define FDT_END 0x00000009
75#define FDT_STRUCTURE_ALIGN ( sizeof ( fdt_token_t ) )
78#define FDT_MAX_ALIGN 8
147#define FDT_DEFAULT_ADDRESS_CELLS 2
150#define FDT_DEFAULT_SIZE_CELLS 1
168#define for_each_fdt_reservation( rsv, fdt ) \
169 for ( rsv = fdt_reservations ( (fdt) ) ; \
170 ( (rsv)->start || (rsv)->size ) ; rsv++ )
175 unsigned int *parent );
struct golan_inbox_hdr hdr
Message header.
pseudo_bit_t value[0x00020]
unsigned long long uint64_t
uint16_t offset
Offset to command line.
uint64_t address
Base address.
struct ena_llq_option desc
Descriptor counts.
struct fdt sysfdt
The system flattened device tree (if present)
static struct net_device * netdev
uint16_t size
Buffer size.
static unsigned int count
Number of entries.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define __image_tag
An image tag.
int fdt_u64(struct fdt *fdt, unsigned int offset, const char *name, uint64_t *value)
Get 64-bit integer property.
int fdt_describe(struct fdt *fdt, unsigned int offset, struct fdt_descriptor *desc)
Describe device tree token.
void fdt_remove(struct fdt_header *hdr)
Remove device tree.
int fdt_mac(struct fdt *fdt, unsigned int offset, struct net_device *netdev)
Get MAC address from property.
const char * fdt_string(struct fdt *fdt, unsigned int offset, const char *name)
Find string property.
uint32_t fdt_phandle(struct fdt *fdt, unsigned int offset)
Get package handle (phandle) property.
int fdt_parse(struct fdt *fdt, struct fdt_header *hdr, size_t max_len)
Parse device tree.
int fdt_reg(struct fdt *fdt, unsigned int offset, uint64_t *region)
Get unsized single-entry region address.
const char * fdt_strings(struct fdt *fdt, unsigned int offset, const char *name, unsigned int *count)
Find strings property.
int fdt_reg_count(struct fdt *fdt, unsigned int offset, struct fdt_reg_cells *regs)
Get number of regions.
int fdt_u32(struct fdt *fdt, unsigned int offset, const char *name, uint32_t *value)
Get 32-bit integer property.
int fdt_cells(struct fdt *fdt, unsigned int offset, const char *name, unsigned int index, unsigned int count, uint64_t *value)
Get integer property.
int fdt_reg_size(struct fdt *fdt, unsigned int offset, struct fdt_reg_cells *regs, unsigned int index, uint64_t *size)
Get region size.
int fdt_create(struct fdt_header **hdr, const char *cmdline, physaddr_t initrd, size_t initrd_len)
Create device tree.
int fdt_alias(struct fdt *fdt, const char *name, unsigned int *offset)
Find node by alias.
int fdt_reg_address(struct fdt *fdt, unsigned int offset, struct fdt_reg_cells *regs, unsigned int index, uint64_t *address)
Get region address.
static const struct fdt_reservation * fdt_reservations(struct fdt *fdt)
Get memory reservations.
uint32_t fdt_token_t
Device tree token.
int fdt_path(struct fdt *fdt, const char *path, unsigned int *offset)
Find node by path.
void fdt_reg_cells(struct fdt *fdt, unsigned int offset, struct fdt_reg_cells *regs)
Get region cell size specification.
int fdt_parent_reg_cells(struct fdt *fdt, unsigned int offset, struct fdt_reg_cells *regs)
Get parent region cell size specification.
int fdt_parent(struct fdt *fdt, unsigned int offset, unsigned int *parent)
Find parent node.
A device tree token descriptor.
unsigned int next
Next offset within structure block.
const char * name
Node or property name (if applicable)
size_t len
Length of property data (if applicable)
unsigned int offset
Offset within structure block.
const void * data
Property data (if applicable)
uint32_t name_off
Name offset.
A device tree region cell size specification.
unsigned int stride
Number of address cells plus number of size cells.
uint32_t address_cells
Number of address cells.
uint32_t size_cells
Number of size cells.
uint64_t start
Starting address.
uint64_t size
Length of reservation.
size_t len
Length of tree.
size_t structure_len
Length of structure block.
int(* realloc)(struct fdt *fdt, size_t len)
Reallocate device tree.
size_t strings_len
Length of strings block.
unsigned int strings
Offset to strings block.
struct fdt_header * hdr
Tree header.
unsigned int structure
Offset to structure block.
size_t used
Used length of tree.
unsigned int reservations
Offset to memory reservation block.