sec_boot_lib.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef SEC_BOOT_LIB_H
  2. #define SEC_BOOT_LIB_H
  3. /**************************************************************************
  4. * INCLUDE LINUX HEADER
  5. **************************************************************************/
  6. #include "sec_osal_light.h"
  7. /**************************************************************************
  8. * INCLUDE MTK HEADERS
  9. **************************************************************************/
  10. #include "masp_version.h"
  11. #include "sec_aes.h"
  12. #include "aes_legacy.h"
  13. #include "sec_sign_header.h"
  14. #include "sec_cfg.h"
  15. #include "sec_typedef.h"
  16. #include "sec_rom_info.h"
  17. #include "sec_secroimg.h"
  18. #include "sec_mtd.h"
  19. #include "sec_usbdl.h"
  20. #include "sec_mtd_util.h"
  21. #include "sec_boot.h"
  22. #include "sec_fsutil_inter.h"
  23. #include "sec_log.h"
  24. #include "sec_wrapper.h"
  25. #include "sec_boot_core.h"
  26. #include "sec_hdr.h"
  27. #include "sec_cfg_ver.h"
  28. #include "sec_usif.h"
  29. #include "sec_usif_util.h"
  30. #include "sec_dev.h"
  31. #include "sec_dev_util.h"
  32. #include "sec_sign_extension.h"
  33. #include "sec_signfmt_util.h"
  34. #include "sec_signfmt_v2.h"
  35. #include "sec_signfmt_v3.h"
  36. #include "sec_signfmt_v4.h"
  37. #include "sec_signfmt_core.h"
  38. #include "sec_cipherfmt_core.h"
  39. #include "sec_cipher_header.h"
  40. #include "sec_error.h"
  41. #include "sec_nvram.h"
  42. /******************************************************************************
  43. * INTERNAL CONFIGURATION
  44. ******************************************************************************/
  45. typedef struct {
  46. bool bKeyInitDis;
  47. bool bUsifEn;
  48. char bMsg;
  49. } SECURE_INFO;
  50. /**************************************************************************
  51. * EXTERNAL VARIABLE
  52. **************************************************************************/
  53. extern AND_ROMINFO_T rom_info;
  54. extern SECURE_INFO sec_info;
  55. extern SECCFG_U seccfg;
  56. extern AND_SECROIMG_T secroimg;
  57. /**************************************************************************
  58. * sec boot util function
  59. **************************************************************************/
  60. extern char *asf_get_build_info(void);
  61. #endif /* SEC_BOOT_LIB_H */