lock_state.h 622 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _LOCK_STATE_H_
  2. #define _LOCK_STATE_H_
  3. #include <pal_typedefs.h>
  4. /* LKS means "Lock State" */
  5. typedef enum {
  6. LKS_DEFAULT = 0x01,
  7. LKS_MP_DEFAULT,
  8. LKS_UNLOCK,
  9. LKS_LOCK,
  10. LKS_VERIFIED,
  11. LKS_CUSTOM,
  12. } LKS;
  13. /* LKCS means "LocK Crtitical State" */
  14. typedef enum {
  15. LKCS_UNLOCK = 0x01,
  16. LKCS_LOCK,
  17. } LKCS;
  18. /* Secure boot runtime switch (preseved switch for customization) */
  19. typedef enum {
  20. SBOOT_RUNTIME_OFF = 0,
  21. SBOOT_RUNTIME_ON = 1
  22. } SBOOT_RUNTIME;
  23. uint32_t seccfg_get_lock_state(uint32_t *lock_state);
  24. uint32_t seccfg_set_lock_state(uint32_t lock_state);
  25. #endif