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

decode-unit ( addr len -- phys.lo ... phys.hi )

Convert text unit-string to physical address.

Convert unit-string, the text string representation, to phys.lo ... phys.hi,
the numerical 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