BSDL Device Tree Compiler
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
dtc::dtb::header Struct Reference

Public Member Functions

void write (output_writer &out)
 
bool read_dtb (input_buffer &input)
 
 header ()
 

Public Attributes

uint32_t magic
 
uint32_t totalsize
 
uint32_t off_dt_struct
 
uint32_t off_dt_strings
 
uint32_t off_mem_rsvmap
 
uint32_t version
 
uint32_t last_comp_version
 
uint32_t boot_cpuid_phys
 
uint32_t size_dt_strings
 
uint32_t size_dt_struct
 

Detailed Description

Class encapsulating the device tree blob header. This class stores all of the values found in the header and is responsible for writing them to the output.

Constructor & Destructor Documentation

dtc::dtb::header::header ( )
inline

Default constructor. Initialises the values that have sensible defaults, leaves the others blank.

Member Function Documentation

bool dtc::dtb::header::read_dtb ( input_buffer input)
inline

Reads the header from bits binary representation in a blob.

void dtc::dtb::header::write ( output_writer out)
inline

Writes the entire header to the specified output buffer.

Member Data Documentation

uint32_t dtc::dtb::header::boot_cpuid_phys

The ID of the CPU where this boots.

uint32_t dtc::dtb::header::last_comp_version

The earliest version of the DTB specification with which this blob is backwards compatible. This should always be 16.

uint32_t dtc::dtb::header::magic

Magic value, used to validate that this really is a device tree blob. Should always be set to 0xd00dfeed.

uint32_t dtc::dtb::header::off_dt_strings

The offset from the start of the blob of the strings table.

uint32_t dtc::dtb::header::off_dt_struct

The offset from the start of the blob of the struct table (i.e. the part of the blob containing the entire device tree).

uint32_t dtc::dtb::header::off_mem_rsvmap

The offset of the reservation map from the start of the blob.

uint32_t dtc::dtb::header::size_dt_strings

The size of the strings table.

uint32_t dtc::dtb::header::size_dt_struct

The size of the struct table.

uint32_t dtc::dtb::header::totalsize

The total size of the blob, including header, reservations, strings table, and padding.

uint32_t dtc::dtb::header::version

The version of the blob. This should always be 17.


The documentation for this struct was generated from the following file: