AM243x MCU+ SDK  11.00.00
tisci_lpm_enc_dec.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2025 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_LPM_ENC_DEC_H_
55 #define TISCI_LPM_ENC_DEC_H_
56 
57 #ifdef __cplusplus
58 extern "C"
59 {
60 #endif
61 
62 
63 
75  struct tisci_header hdr;
76  uint64_t unencrypted_addr;
77  uint64_t encrypted_addr;
78  uint32_t unencrypted_len;
80 } __attribute__((__packed__));
81 
89  struct tisci_header hdr;
90 } __attribute__((__packed__));
91 
101  struct tisci_header hdr;
103  uint64_t encrypted_addr;
104 } __attribute__((__packed__));
105 
113  struct tisci_header hdr;
114 } __attribute__((__packed__));
115 
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
121 #endif /* TISCI_LPM_ENC_DEC_H_ */
122 
tisci_msg_dec_resp::hdr
struct tisci_header hdr
Definition: tisci_lpm_enc_dec.h:113
tisci_msg_dec_req
Request for TISCI_MSG_LPM_DECRYPT.
Definition: tisci_lpm_enc_dec.h:100
tisci_msg_enc_req::max_encrypted_len
uint32_t max_encrypted_len
Definition: tisci_lpm_enc_dec.h:79
tisci_msg_enc_req::unencrypted_len
uint32_t unencrypted_len
Definition: tisci_lpm_enc_dec.h:78
tisci_header
Header that prefixes all TISCI messages.
Definition: tisci_protocol.h:94
tisci_msg_enc_req::unencrypted_addr
uint64_t unencrypted_addr
Definition: tisci_lpm_enc_dec.h:76
tisci_msg_dec_req::hdr
struct tisci_header hdr
Definition: tisci_lpm_enc_dec.h:101
tisci_msg_enc_resp::hdr
struct tisci_header hdr
Definition: tisci_lpm_enc_dec.h:89
tisci_msg_enc_resp
Response for TISCI_MSG_LPM_ENCRYPT.
Definition: tisci_lpm_enc_dec.h:88
__attribute__
struct tisci_msg_enc_req __attribute__((__packed__))
tisci_msg_dec_resp
Response for TISCI_MSG_LPM_DECRYPT.
Definition: tisci_lpm_enc_dec.h:112
tisci_msg_enc_req::hdr
struct tisci_header hdr
Definition: tisci_lpm_enc_dec.h:75
tisci_msg_enc_req
This file contains:
Definition: tisci_lpm_enc_dec.h:74
tisci_msg_dec_req::encrypted_addr
uint64_t encrypted_addr
Definition: tisci_lpm_enc_dec.h:103
tisci_msg_enc_req::encrypted_addr
uint64_t encrypted_addr
Definition: tisci_lpm_enc_dec.h:77
tisci_msg_dec_req::unencrypted_addr
uint64_t unencrypted_addr
Definition: tisci_lpm_enc_dec.h:102