AM64x MCU+ SDK  08.02.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 
65  struct tisci_header hdr;
66  uint8_t mmr_idx;
67 } __attribute__((__packed__));
68 
76  struct tisci_header hdr;
77  uint32_t mmr_val;
78 } __attribute__((__packed__));
79 
86  struct tisci_header hdr;
87 } __attribute__((__packed__));
88 
95  struct tisci_header hdr;
96 } __attribute__((__packed__));
97 
110  struct tisci_header hdr;
111  uint8_t row_idx;
112  uint8_t hw_write_lock;
113  uint8_t hw_read_lock;
114  uint8_t row_soft_lock;
115 } __attribute__((__packed__));
116 
123  struct tisci_header hdr;
124 } __attribute__((__packed__));
125 
135  struct tisci_header hdr;
136  uint8_t row_idx;
137  uint32_t row_val;
138  uint32_t row_mask;
139 } __attribute__((__packed__));
140 
148  struct tisci_header hdr;
149  uint32_t row_val;
150 } __attribute__((__packed__));
151 
159  struct tisci_header hdr;
160  uint8_t row_idx;
161 } __attribute__((__packed__));
162 
175  struct tisci_header hdr;
177  uint8_t hw_write_lock;
178  uint8_t hw_read_lock;
179  uint8_t row_soft_lock;
180 } __attribute__((__packed__));
181 
182 #endif /* TISCI_EXT_OTP_H */
183 
tisci_msg_get_otp_row_lock_status_resp::hw_write_lock
uint8_t hw_write_lock
Definition: tisci_ext_otp.h:177
tisci_msg_read_otp_mmr_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:65
tisci_msg_write_otp_row_resp::row_val
uint32_t row_val
Definition: tisci_ext_otp.h:149
tisci_msg_lock_otp_row_resp
Respone message for hardware lock OTP row.
Definition: tisci_ext_otp.h:122
tisci_msg_read_otp_mmr_resp
Respone message for reading OTP MMR.
Definition: tisci_ext_otp.h:75
tisci_msg_get_otp_row_lock_status_resp::row_soft_lock
uint8_t row_soft_lock
Definition: tisci_ext_otp.h:179
tisci_msg_get_otp_row_lock_status_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:175
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:85
tisci_msg_write_otp_row_resp
Respone message for writing to an OTP row.
Definition: tisci_ext_otp.h:147
tisci_msg_lock_otp_row_req::hw_read_lock
uint8_t hw_read_lock
Definition: tisci_ext_otp.h:113
tisci_msg_get_otp_row_lock_status_resp
Respone message for Get OTP row lock status request.
Definition: tisci_ext_otp.h:174
tisci_msg_read_otp_mmr_req::mmr_idx
uint8_t mmr_idx
Definition: tisci_ext_otp.h:66
tisci_msg_soft_lock_otp_write_global_resp
Respone message for global soft write lock on OTP rows.
Definition: tisci_ext_otp.h:94
tisci_msg_get_otp_row_lock_status_resp::hw_read_lock
uint8_t hw_read_lock
Definition: tisci_ext_otp.h:178
tisci_msg_write_otp_row_req
Request message for writing to an OTP row.
Definition: tisci_ext_otp.h:134
tisci_msg_lock_otp_row_req::hw_write_lock
uint8_t hw_write_lock
Definition: tisci_ext_otp.h:112
tisci_msg_lock_otp_row_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:110
tisci_header
Header that prefixes all TISCI messages.
Definition: tisci_protocol.h:89
tisci_msg_get_otp_row_lock_status_req
Request message for querying lock status of an OTP row.
Definition: tisci_ext_otp.h:158
tisci_msg_get_otp_row_lock_status_req::row_idx
uint8_t row_idx
Definition: tisci_ext_otp.h:160
tisci_msg_soft_lock_otp_write_global_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:95
tisci_msg_write_otp_row_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:148
tisci_msg_lock_otp_row_req::row_soft_lock
uint8_t row_soft_lock
Definition: tisci_ext_otp.h:114
__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:137
tisci_msg_lock_otp_row_req::row_idx
uint8_t row_idx
Definition: tisci_ext_otp.h:111
tisci_msg_write_otp_row_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:135
tisci_msg_read_otp_mmr_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:76
tisci_msg_write_otp_row_req::row_mask
uint32_t row_mask
Definition: tisci_ext_otp.h:138
tisci_msg_read_otp_mmr_req
This file contains:
Definition: tisci_ext_otp.h:64
tisci_msg_write_otp_row_req::row_idx
uint8_t row_idx
Definition: tisci_ext_otp.h:136
tisci_msg_lock_otp_row_resp::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:123
tisci_msg_soft_lock_otp_write_global_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:86
tisci_msg_lock_otp_row_req
Request message for hardware locking an OTP row.
Definition: tisci_ext_otp.h:109
tisci_msg_read_otp_mmr_resp::mmr_val
uint32_t mmr_val
Definition: tisci_ext_otp.h:77
tisci_msg_get_otp_row_lock_status_req::hdr
struct tisci_header hdr
Definition: tisci_ext_otp.h:159
tisci_msg_get_otp_row_lock_status_resp::global_soft_lock
uint8_t global_soft_lock
Definition: tisci_ext_otp.h:176