Software APIs
ownership_unlock.h
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_OWNERSHIP_UNLOCK_H_
6 #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_OWNERSHIP_UNLOCK_H_
7 
8 #include "sw/device/silicon_creator/lib/boot_data.h"
9 #include "sw/device/silicon_creator/lib/boot_svc/boot_svc_msg.h"
10 #include "sw/device/silicon_creator/lib/error.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif // __cplusplus
15 
16 /**
17  * Process a boot_svc OwnershipUnlock message.
18  *
19  * @param msg The boot_svc OwnershipUnlock message to process.
20  * @param bootdata A pointer to the current boot_data in RAM.
21  * @return rom_error_t
22  */
23 rom_error_t ownership_unlock_handler(boot_svc_msg_t *msg,
24  boot_data_t *bootdata);
25 
26 #ifdef __cplusplus
27 } // extern "C"
28 #endif // __cplusplus
29 #endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_OWNERSHIP_UNLOCK_H_