aboutsummaryrefslogtreecommitdiff
path: root/include/skiboot.h
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/skiboot.h
parent4a6d1a70f0fe50ceb8176f2d6d0fc612f8e32589 (diff)
downloadskiboot-67265323132888e8b12788542fc7b33b340cc28b.zip
skiboot-67265323132888e8b12788542fc7b33b340cc28b.tar.gz
skiboot-67265323132888e8b12788542fc7b33b340cc28b.tar.bz2
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/skiboot.h')
-rw-r--r--include/skiboot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 3f7c077..2ea64de 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 */