lflash.h 961 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. ** lflashe.h
  3. ** See Copyright Notice in lua.h
  4. */
  5. #if defined(LUA_FLASH_STORE) && !defined(lflash_h)
  6. #define lflash_h
  7. #include "lobject.h"
  8. #include "lstate.h"
  9. #include "lzio.h"
  10. #define FLASH_SIG 0xfafaaf00
  11. typedef lu_int32 FlashAddr;
  12. typedef struct {
  13. lu_int32 flash_sig; /* a stabdard fingerprint identifying an LFS image */
  14. lu_int32 flash_size; /* Size of LFS image */
  15. FlashAddr mainProto; /* address of main Proto in Proto hierarchy */
  16. FlashAddr pROhash; /* address of ROstrt hash */
  17. lu_int32 nROuse; /* number of elements in ROstrt */
  18. int nROsize; /* size of ROstrt */
  19. lu_int32 fill1; /* reserved */
  20. lu_int32 fill2; /* reserved */
  21. } FlashHeader;
  22. void luaN_user_init(void);
  23. LUAI_FUNC void luaN_init (lua_State *L);
  24. LUAI_FUNC int luaN_flashSetup (lua_State *L);
  25. LUAI_FUNC int luaN_reload_reboot (lua_State *L);
  26. LUAI_FUNC int luaN_index (lua_State *L);
  27. #endif