diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-08-17 15:32:51 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-08-30 16:59:47 +1000 |
commit | 9070ae9817ccca570a1c80132c92374f57aa62ac (patch) | |
tree | 35aa576b293e9fe07c8857fdb0028ad8fe0087fb /include/nvram.h | |
parent | e9833175edd7a5a63841bd6c7e8e63c50604e480 (diff) | |
download | skiboot-9070ae9817ccca570a1c80132c92374f57aa62ac.zip skiboot-9070ae9817ccca570a1c80132c92374f57aa62ac.tar.gz skiboot-9070ae9817ccca570a1c80132c92374f57aa62ac.tar.bz2 |
core/nvram: add support for skiboot config strings
This allows the ibm,skiboot partition to be used to store NUL terminated
key=value OF configuration strings. These strings can be written using
the nvram utility found in the linux powerpc-utils package. Currently
the only use case for this is passing command line arguments to the
boot kernel so only ASCII strings are supported. The 0xFF binary
escaping mechanism for configuration strings is not supported.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/nvram.h')
-rw-r--r-- | include/nvram.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/nvram.h b/include/nvram.h index c90c571..19f8eff 100644 --- a/include/nvram.h +++ b/include/nvram.h @@ -21,4 +21,6 @@ int nvram_format(void *nvram_image, uint32_t nvram_size); int nvram_check(void *nvram_image, uint32_t nvram_size); void nvram_reinit(void); +const char *nvram_query(const char *name); + #endif /* __NVRAM_H */ |