5#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOT_SVC_BOOT_SVC_OWNERSHIP_UNLOCK_H_
6#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOT_SVC_BOOT_SVC_OWNERSHIP_UNLOCK_H_
12#include "sw/device/silicon_creator/lib/boot_svc/boot_svc_header.h"
13#include "sw/device/silicon_creator/lib/error.h"
14#include "sw/device/silicon_creator/lib/nonce.h"
15#include "sw/device/silicon_creator/lib/ownership/datatypes.h"
23 kBootSvcUnlockAny = 0x00594e41,
25 kBootSvcUnlockEndorsed = 0x4f444e45,
27 kBootSvcUnlockUpdate = 0x00445055,
29 kBootSvcUnlockAbort = 0x54524241,
32 kBootSvcOwnershipUnlockReqType = 0x4b4c4e55,
34 kBootSvcOwnershipUnlockResType = 0x554e4c4b,
70} boot_svc_ownership_unlock_req_t;
99} boot_svc_ownership_unlock_res_t;
111void boot_svc_ownership_unlock_req_init(uint32_t unlock_mode, nonce_t
nonce,
112 const owner_key_t *next_owner_key,
113 const owner_signature_t *signature,
114 boot_svc_ownership_unlock_req_t *msg);
122void boot_svc_ownership_unlock_res_init(rom_error_t
status,
123 boot_svc_ownership_unlock_res_t *msg);