/* According to the Device Tree specification, s2.3.5 "#address-cells and
#size-cells": "If missing, a client program should assume a default value of 2 for
#address-cells, and a value of 1 for #size-cells." */
EFI_STATUS EFIAPI FdtGetParentAddressInfo(IN CONST VOID *Fdt, IN INT32 Node, OUT INT32 *AddressCells, OPTIONAL OUT INT32 *SizeCells OPTIONAL)
/* According to the Device Tree specification, s2.3.5 "#address-cells and
#size-cells": "If missing, a client program should assume a default value of 2 for
#address-cells, and a value of 1 for #size-cells." */
EFI_STATUS EFIAPI FdtGetParentAddressInfo(IN CONST VOID *Fdt, IN INT32 Node, OUT INT32 *AddressCells, OPTIONAL OUT INT32 *SizeCells OPTIONAL)
{
  if (Fdt == NULL) {
    ASSERT (0);
    return EFI_INVALID_PARAMETER;
  }
  Node = fdt_parent_offset (Fdt, Node);
  if (Node < 0) {
    ASSERT (0);
    return EFI_ABORTED;
  }
  return FdtGetAddressInfo (Fdt, Node, AddressCells, SizeCells);
}