PDK API Guide for J721E
sciserver_secproxyTransfer.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the 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 "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
46 #ifndef SEC_PROXY_TRANSFER_H
47 #define SEC_PROXY_TRANSFER_H
48 
49 /* ========================================================================== */
50 /* Include Files */
51 /* ========================================================================== */
52 
53 #include <stdint.h>
54 
55 /* ========================================================================== */
56 /* Macros & Typedefs */
57 /* ========================================================================== */
58 
59 /* None */
60 
61 /* ========================================================================== */
62 /* Structure Declarations */
63 /* ========================================================================== */
64 
65 /* None */
66 
67 /* ========================================================================== */
68 /* Function Declarations */
69 /* ========================================================================== */
70 
79 int32_t Sciserver_SproxyMsgIsPending(uint16_t rx_config_id);
80 
97 int32_t Sciserver_SproxyMsgGetSenderHostId(uint16_t rx_config_id,
98  uint32_t *sender_host_id);
99 
114 int32_t Sciserver_SproxyMsgRead(uint16_t rx_config_id,
115  uint32_t *rx_buff,
116  uint32_t rx_num_words);
117 
133 int32_t Sciserver_SproxyMsgReadAtOffset(uint16_t rx_config_id,
134  uint32_t *rx_buff,
135  uint32_t rx_num_words,
136  uint32_t offset);
137 
149 int32_t Sciserver_SproxyMsgAck(uint16_t rx_config_id);
150 
163 int32_t Sciserver_SproxyCanSend(uint16_t tx_config_id);
164 
184 int32_t Sciserver_SproxyMsgSend(uint16_t tx_config_id,
185  uint32_t *tx_buff,
186  uint32_t tx_num_words);
187 
188 
211 int32_t Sciserver_SproxyMsgSendAtOffset(uint16_t tx_config_id,
212  uint32_t *tx_buff,
213  uint32_t tx_num_words,
214  uint32_t offset);
215 
230 int32_t Sciserver_SproxyMsgFinish(uint16_t tx_config_id);
231 
242 
254 int32_t Sciserver_SproxyGetResponseConfId(uint16_t host_id, uint16_t *tx_config_id);
255 
267 int32_t Sciserver_SproxyGetNotifyConfId(uint16_t host_id, uint16_t *tx_config_id);
268 
269 #endif
270 
271 /* @} */
int32_t Sciserver_SproxyGetResponseConfId(uint16_t host_id, uint16_t *tx_config_id)
Retrieve the Tx thread config ID for response to a host ID.
int32_t Sciserver_SproxyMsgSend(uint16_t tx_config_id, uint32_t *tx_buff, uint32_t tx_num_words)
send a message (stage it, but don't complete transmissions)
int32_t Sciserver_SproxyCanSend(uint16_t tx_config_id)
Check to see if we can indeed transmit a message.
uint8_t host_id
Definition: tisci_boardcfg.h:111
int32_t Sciserver_SproxyMsgSendAtOffset(uint16_t tx_config_id, uint32_t *tx_buff, uint32_t tx_num_words, uint32_t offset)
send a message (stage it, but don't complete transmissions)
int32_t Sciserver_SproxyMsgReadAtOffset(uint16_t rx_config_id, uint32_t *rx_buff, uint32_t rx_num_words, uint32_t offset)
read a portion of the message (but dont ack)
int32_t Sciserver_SproxyMsgAck(uint16_t rx_config_id)
acknowledge receipt of message to hardware
int32_t Sciserver_SproxyMsgGetSenderHostId(uint16_t rx_config_id, uint32_t *sender_host_id)
Find the Sender's Host ID for a pending message.
int32_t Sciserver_SproxyMsgRead(uint16_t rx_config_id, uint32_t *rx_buff, uint32_t rx_num_words)
read a message (but dont ack)
int32_t Sciserver_SproxyGetNotifyConfId(uint16_t host_id, uint16_t *tx_config_id)
Retrieve the Tx thread config ID for notification to a host ID.
int32_t Sciserver_SproxyMsgIsPending(uint16_t rx_config_id)
Check to see if a message is pending on a Rx sec proxy thread.
int32_t Sciserver_SproxyMsgValidateHostId(uint16_t host_id)
Function to trivially verify if the provided host_id is a valid ID.
int32_t Sciserver_SproxyMsgFinish(uint16_t tx_config_id)
Confirm to hardware to transmit a staged message.