ieee1275: encode-unit command for 4 addr cell devs
authorEric Snowberg <eric.snowberg@oracle.com>
Tue, 27 Feb 2018 01:34:15 +0000 (17:34 -0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 5 Mar 2018 14:00:12 +0000 (15:00 +0100)
commit820c64e4c002090bcd9df10ab79d5851b28ac503
treedbe6b41f48283d67d2398d7cd914a4582127a890
parent6003eb2feabdae1a79b496c3d010b6d1363f1fac
ieee1275: encode-unit command for 4 addr cell devs

Convert physical address to text unit-string.

Convert phys.lo ... phys-high, the numerical representation, to unit-string,
the text string representation of a physical address within the address
space defined by this device node. The number of cells in the list
phys.lo ... phys.hi is determined by the value of the #address-cells property
of this node.

This function is for devices with #address-cells == 4

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/ieee1275/ieee1275.c
include/grub/ieee1275/ieee1275.h