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>
This commit is contained in:
parent
856004c85b
commit
8d68e13b22
2 changed files with 51 additions and 0 deletions
|
@ -216,6 +216,12 @@ int EXPORT_FUNC(grub_ieee1275_decode_unit4) (grub_ieee1275_ihandle_t ihandle,
|
|||
grub_uint32_t *phy_hi,
|
||||
grub_uint32_t *lun_lo,
|
||||
grub_uint32_t *lun_hi);
|
||||
char *EXPORT_FUNC(grub_ieee1275_encode_uint4) (grub_ieee1275_ihandle_t ihandle,
|
||||
grub_uint32_t phy_lo,
|
||||
grub_uint32_t phy_hi,
|
||||
grub_uint32_t lun_lo,
|
||||
grub_uint32_t lun_hi,
|
||||
grub_size_t *size);
|
||||
|
||||
grub_err_t EXPORT_FUNC(grub_claimmap) (grub_addr_t addr, grub_size_t size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue