Software APIs
dif_lc_ctrl_autogen.h
Go to the documentation of this file.
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_LIB_DIF_AUTOGEN_DIF_LC_CTRL_AUTOGEN_H_
6 #define OPENTITAN_SW_DEVICE_LIB_DIF_AUTOGEN_DIF_LC_CTRL_AUTOGEN_H_
7 
8 // THIS FILE HAS BEEN GENERATED, DO NOT EDIT MANUALLY. COMMAND:
9 // util/make_new_dif.py --mode=regen --only=autogen
10 
11 /**
12  * @file
13  * @brief <a href="/book/hw/ip/lc_ctrl/">LC_CTRL</a> Device Interface Functions
14  */
15 
16 #include <stdbool.h>
17 #include <stdint.h>
18 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif // __cplusplus
26 
27 /**
28  * A handle to lc_ctrl.
29  *
30  * This type should be treated as opaque by users.
31  */
32 typedef struct dif_lc_ctrl {
33  /**
34  * The base address for the lc_ctrl hardware registers.
35  */
38 
39 /**
40  * Creates a new handle for a(n) lc_ctrl peripheral.
41  *
42  * This function does not actuate the hardware.
43  *
44  * @param base_addr The MMIO base address of the lc_ctrl peripheral.
45  * @param[out] lc_ctrl Out param for the initialized handle.
46  * @return The result of the operation.
47  */
50 
51 /**
52  * A lc_ctrl alert type.
53  */
54 typedef enum dif_lc_ctrl_alert {
55  /**
56  * This alert triggers if an error occurred during an OTP programming
57  * operation.
58  */
60  /**
61  * This alert triggers if an error in the life cycle state or life cycle
62  * controller FSM is detected.
63  */
65  /**
66  * This fatal alert is triggered when a fatal TL-UL bus integrity fault is
67  * detected.
68  */
71 
72 /**
73  * Forces a particular alert, causing it to be escalated as if the hardware
74  * had raised it.
75  *
76  * @param lc_ctrl A lc_ctrl handle.
77  * @param alert The alert to force.
78  * @return The result of the operation.
79  */
82  dif_lc_ctrl_alert_t alert);
83 
84 #ifdef __cplusplus
85 } // extern "C"
86 #endif // __cplusplus
87 
88 #endif // OPENTITAN_SW_DEVICE_LIB_DIF_AUTOGEN_DIF_LC_CTRL_AUTOGEN_H_