summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJack Miller <distroguy@gmail.com>2016-11-29 14:18:22 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-12-13 16:49:45 +1100
commit67265323132888e8b12788542fc7b33b340cc28b (patch)
tree0e253d5270f4ce63d4aed1a3389cf5d717aca21b /include
parent4a6d1a70f0fe50ceb8176f2d6d0fc612f8e32589 (diff)
downloadblackbird-skiboot-67265323132888e8b12788542fc7b33b340cc28b.tar.gz
blackbird-skiboot-67265323132888e8b12788542fc7b33b340cc28b.zip
mambo: Add Fake NVRAM driver
Implement a fake NVRAM device based on arbitrary memory reserves. This allows NVRAM images to be preloaded without the FSP. Signed-off-by: Jack Miller <jack@codezen.org> Tested-by: Chris Smart <chris@distroguy.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/skiboot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 3f7c0778..2ea64de3 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -292,4 +292,9 @@ extern void enter_pm_state(bool winkle);
extern uint32_t reset_patch_start;
extern uint32_t reset_patch_end;
+/* Fallback fake NVRAM */
+extern int fake_nvram_info(uint32_t *total_size);
+extern int fake_nvram_start_read(void *dst, uint32_t src, uint32_t len);
+extern int fake_nvram_write(uint32_t offset, void *src, uint32_t size);
+
#endif /* __SKIBOOT_H */
OpenPOWER on IntegriCloud