uh.h 680 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __UH_H__
  2. #define __UH_H__
  3. #ifndef __ASSEMBLY__
  4. /* For uH Command */
  5. #define APP_INIT 0
  6. #define APP_RKP 1
  7. #define APP_KDP 2
  8. #define APP_HDM 6
  9. #define UH_PREFIX UL(0xc300c000)
  10. #define UH_APPID(APP_ID) ((UL(APP_ID) & UL(0xFF)) | UH_PREFIX)
  11. enum __UH_APP_ID {
  12. UH_APP_INIT = UH_APPID(APP_INIT),
  13. UH_APP_RKP = UH_APPID(APP_RKP),
  14. UH_APP_KDP = UH_APPID(APP_KDP),
  15. UH_APP_HDM = UH_APPID(APP_HDM),
  16. };
  17. struct test_case_struct {
  18. int (*fn)(void);
  19. char *describe;
  20. };
  21. #define UH_LOG_START 0xB0200000
  22. #define UH_LOG_SIZE 0x40000
  23. unsigned long uh_call(u64 app_id, u64 command, u64 arg0, u64 arg1, u64 arg2, u64 arg3);
  24. #endif //__ASSEMBLY__
  25. #endif //__UH_H__