gfdt_add_reg()

Generate a reg property (ARM)

Synopsis:

#include <qvm/firmware.h>
void gfdt_add_reg(int parent,
                  int node,
                  ...)

Arguments:

parent
The offset of the parent of the FDT node for which a property is being generated.
node
The offset of the FDT node itself.
...
A QSL_NO_LOCATION-terminated list of address ranges.

Description:

This function generates a reg property and adds it to the FDT node specified in node.

The reg property is generated by extracting the existing address-cells and size-cells properties from the parent node (parent) and combining them in turn with each address-length value pair from the given address ranges list. In this list, the addresses are uint64_t values; the lengths are unsigned values. These address-length pairs specify the register ranges of the device described by node.

Page updated: