at_cmd_simlock.h 491 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __AT_CMD_SIMLOCK_H__
  2. #define __AT_CMD_SIMLOCK_H__
  3. #ifdef CONFIG_SRV_SIMLOCK_ENABLE
  4. #define S_ATC_DISCARD 2
  5. #define S_ATC_SUCCESS 1
  6. #define S_ATC_FAIL 0
  7. #define ATC_STATUS uint32_t
  8. #ifdef CONFIG_SOC_8850
  9. #define SIMLOCK_RPC_MAX_SIZE 512
  10. #define SIMLOCK_DATA_MAX_SIZE 12 * 1024
  11. typedef struct
  12. {
  13. uint8_t *data;
  14. uint32_t length;
  15. } simlock_data_async_t;
  16. #else
  17. typedef struct
  18. {
  19. uint32_t pos;
  20. uint32_t size;
  21. char *mem;
  22. } simlockAsyncCtx_t;
  23. #endif
  24. #endif
  25. #endif