uh.h 816 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifdef CONFIG_HDM_UH
  24. unsigned long uh_call(u64 app_id, u64 command, u64 arg0, u64 arg1, u64 arg2, u64 arg3);
  25. #else
  26. unsigned long uh_call(u64 app_id, u64 command, u64 arg0, u64 arg1, u64 arg2, u64 arg3)
  27. {
  28. return 0;
  29. }
  30. #endif
  31. #endif //__ASSEMBLY__
  32. #endif //__UH_H__