summaryrefslogtreecommitdiffstats
path: root/include/hw/nvram/chrp_nvram.h
Commit message (Collapse)AuthorAgeFilesLines
* nvram: Move the remaining CHRP NVRAM related code to chrp_nvram.[ch]Thomas Huth2016-10-281-0/+30
| | | | | | | | | Everything that is related to CHRP NVRAM should rather reside in chrp_nvram.c / chrp_nvram.h instead of openbios_firmware_abi.h. Signed-off-by: Thomas Huth <thuth@redhat.com> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* nvram: Introduce helper functions for CHRP "system" and "free space" partitionsThomas Huth2016-10-281-0/+24
The "system partition" and "free space" partition layouts are defined by the CHRP and LoPAPR specification, and used by OpenBIOS and SLOF. We can re-use this code for other machines that use OpenBIOS and SLOF, too. So let's make this code independent from the MAC NVRAM environment and put it into two proper helper functions. Signed-off-by: Thomas Huth <thuth@redhat.com> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>