trusty_core.h 880 B

123456789101112131415161718192021222324252627
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef TRUSTY_CORE_H_
  13. #define TRUSTY_CORE_H_
  14. struct trusty_state {
  15. char *version_str;
  16. struct trusty_dev *tdev;
  17. };
  18. extern struct trusty_state *ts;
  19. extern osiMutex_t *smc_lock;
  20. const char *trusty_version_str_get(struct trusty_state *s);
  21. int trusty_core_init(void);
  22. #endif /* TRUSTY_CORE_H_ */