TEEI.h 928 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #define RPMB_IOCTL_SOTER_WRITE_DATA 5
  2. #define RPMB_IOCTL_SOTER_READ_DATA 6
  3. #define RPMB_IOCTL_SOTER_GET_CNT 7
  4. #define RPMB_BUFF_SIZE 512
  5. #define PAGE_SIZE_4K (0x1000)
  6. struct TEEI_vfs_command {
  7. int func;
  8. int cmd_size;
  9. union func_arg {
  10. struct func_open {
  11. int flags;
  12. int mode;
  13. } func_open_args;
  14. struct func_send {
  15. int fd;
  16. int count;
  17. } func_read_args;
  18. struct func_recv {
  19. int fd;
  20. int count;
  21. } func_write_args;
  22. struct func_ioctl {
  23. int fd;
  24. int cmd;
  25. int arg;
  26. } func_ioctl_args;
  27. struct func_close {
  28. int fd;
  29. } func_close_args;
  30. struct func_trunc {
  31. int fd;
  32. int length;
  33. } func_trunc_args;
  34. struct func_lseek {
  35. int fd;
  36. int offset;
  37. int origin;
  38. } func_lseek_args;
  39. struct func_mkdir {
  40. int mode;
  41. } func_mkdir_args;
  42. } args;
  43. };
  44. union TEEI_vfs_response {
  45. int value;
  46. };
  47. extern char *daulOS_VFS_share_mem;
  48. extern char *daulOS_VFS_write_share_mem;