Package pyfdt :: Module pyfdt :: Class FdtBlobParse
[hide private]
[frames] | no frames]

Class FdtBlobParse

source code

object --+
         |
        FdtBlobParse

Parse from file input

Instance Methods [hide private]
 
__extract_fdt_header(self)
Extract DTB header
source code
 
__extract_fdt_reserve_entries(self)
Extract reserved memory entries
source code
 
__extract_fdt_nodename(self)
Extract node name
source code
 
__extract_fdt_string(self, prop_string_pos)
Extract string from string pool
source code
 
__extract_fdt_prop(self)
Extract property
source code
 
__extract_fdt_dt(self)
Extract tags
source code
 
__init__(self, infile)
Init with file input
source code
 
__to_nodes(self)
Represent fdt as Node and properties structure Returns a set with the pre-node Nops, the Root Node, and the post-node Nops.
source code
 
to_fdt(self)
Create a fdt object Returns a Fdt object
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __fdt_header_format = '>IIIIIII'
  __fdt_header_names = ('magic', 'totalsize', 'off_dt_struct', '...
  __fdt_reserve_entry_format = '>QQ'
  __fdt_reserve_entry_names = ('address', 'size')
  __fdt_dt_cell_format = '>I'
  __fdt_dt_prop_format = '>II'
  __fdt_dt_tag_name = {1: 'node_begin', 2: 'node_end', 3: 'prop'...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, infile)
(Constructor)

source code 

Init with file input

Overrides: object.__init__

Class Variable Details [hide private]

__fdt_header_names

Value:
('magic',
 'totalsize',
 'off_dt_struct',
 'off_dt_strings',
 'off_mem_rsvmap',
 'version',
 'last_comp_version')

__fdt_dt_tag_name

Value:
{1: 'node_begin', 2: 'node_end', 3: 'prop', 4: 'nop', 9: 'end'}