AM243x MCU+ SDK  08.05.00
tisci_ext_otp.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017-2022 Texas Instruments Incorporated
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
54 #ifndef TISCI_EXT_OTP_H
55 #define TISCI_EXT_OTP_H
56 
57 #ifdef __cplusplus
58 extern "C"
59 {
60 #endif
61 
62 
63 
71  struct tisci_header hdr;
72  uint8_t mmr_idx;
73 } __attribute__((__packed__));
74 
82  struct tisci_header hdr;
83  uint32_t mmr_val;
84 } __attribute__((__packed__));
85 
92  struct tisci_header hdr;
93 } __attribute__((__packed__));
94 
101  struct tisci_header hdr;
102 } __attribute__((__packed__));
103 
116  struct tisci_header hdr;
117  uint8_t row_idx;
118  uint8_t hw_write_lock;
119  uint8_t hw_read_lock;
120  uint8_t row_soft_lock;
121 } __attribute__((__packed__));
122 
129  struct tisci_header hdr;
130 } __attribute__((__packed__));
131 
141  struct tisci_header hdr;
142  uint8_t row_idx;
143  uint32_t row_val;
144  uint32_t row_mask;
145 } __attribute__((__packed__));
146 
154  struct tisci_header hdr;
155  uint32_t row_val;
156 } __attribute__((__packed__));
157 
165  struct tisci_header hdr;
166  uint8_t row_idx;
167 } __attribute__((__packed__));
168 
181  struct tisci_header hdr;
183  uint8_t hw_write_lock;
184  uint8_t hw_read_lock;
185  uint8_t row_soft_lock;
186 } __attribute__((__packed__));
187 
188 
189 #ifdef __cplusplus
190 }
191 #endif
192 
193 #endif /* TISCI_EXT_OTP_H */
194 
tisci_msg_get_otp_row_lock_status_resp::hw_write_lock
uint8_t hw_write_lock
Definition: tisci_ext_otp.h:183
tisci_msg_read_otp_mmr_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:71
tisci_msg_write_otp_row_resp::row_val
uint32_t row_val
Definition: tisci_ext_otp.h:155
tisci_msg_lock_otp_row_resp
Respone message for hardware lock OTP row.
Definition: tisci_ext_otp.h:128
tisci_msg_read_otp_mmr_resp
Respone message for reading OTP MMR.
Definition: tisci_ext_otp.h:81
tisci_msg_get_otp_row_lock_status_resp::row_soft_lock
uint8_t row_soft_lock
Definition: tisci_ext_otp.h:185
tisci_msg_get_otp_row_lock_status_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:181
tisci_msg_soft_lock_otp_write_global_req
Request message for performing a global soft write lock on OTP rows.
Definition: tisci_ext_otp.h:91
tisci_msg_write_otp_row_resp
Respone message for writing to an OTP row.
Definition: tisci_ext_otp.h:153
tisci_msg_lock_otp_row_req::hw_read_lock
uint8_t hw_read_lock
Definition: tisci_ext_otp.h:119
tisci_msg_get_otp_row_lock_status_resp
Respone message for Get OTP row lock status request.
Definition: tisci_ext_otp.h:180
tisci_msg_read_otp_mmr_req::mmr_idx
uint8_t mmr_idx
Definition: tisci_ext_otp.h:72
tisci_msg_soft_lock_otp_write_global_resp
Respone message for global soft write lock on OTP rows.
Definition: tisci_ext_otp.h:100
tisci_msg_get_otp_row_lock_status_resp::hw_read_lock
uint8_t hw_read_lock
Definition: tisci_ext_otp.h:184
tisci_msg_write_otp_row_req
Request message for writing to an OTP row.
Definition: tisci_ext_otp.h:140
tisci_msg_lock_otp_row_req::hw_write_lock
uint8_t hw_write_lock
Definition: tisci_ext_otp.h:118
tisci_msg_lock_otp_row_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:116
tisci_header
Header that prefixes all TISCI messages.
Definition: tisci_protocol.h:95
tisci_msg_get_otp_row_lock_status_req
Request message for querying lock status of an OTP row.
Definition: tisci_ext_otp.h:164
tisci_msg_get_otp_row_lock_status_req::row_idx
uint8_t row_idx
Definition: tisci_ext_otp.h:166
tisci_msg_soft_lock_otp_write_global_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:101
tisci_msg_write_otp_row_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:154
tisci_msg_lock_otp_row_req::row_soft_lock
uint8_t row_soft_lock
Definition: tisci_ext_otp.h:120
__attribute__
struct tisci_msg_read_otp_mmr_req __attribute__((__packed__))
tisci_msg_write_otp_row_req::row_val
uint32_t row_val
Definition: tisci_ext_otp.h:143
tisci_msg_lock_otp_row_req::row_idx
uint8_t row_idx
Definition: tisci_ext_otp.h:117
tisci_msg_write_otp_row_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:141
tisci_msg_read_otp_mmr_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:82
tisci_msg_write_otp_row_req::row_mask
uint32_t row_mask
Definition: tisci_ext_otp.h:144
tisci_msg_read_otp_mmr_req
This file contains:
Definition: tisci_ext_otp.h:70
tisci_msg_write_otp_row_req::row_idx
uint8_t row_idx
Definition: tisci_ext_otp.h:142
tisci_msg_lock_otp_row_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:129
tisci_msg_soft_lock_otp_write_global_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:92
tisci_msg_lock_otp_row_req
Request message for hardware locking an OTP row.
Definition: tisci_ext_otp.h:115
tisci_msg_read_otp_mmr_resp::mmr_val
uint32_t mmr_val
Definition: tisci_ext_otp.h:83
tisci_msg_get_otp_row_lock_status_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:165
tisci_msg_get_otp_row_lock_status_resp::global_soft_lock
uint8_t global_soft_lock
Definition: tisci_ext_otp.h:182