mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00

Changes all occurrences of "RSS" and "rss" in the code and build files to "RSE" and "rse". Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: I9f72ad36ec233d7eaac3ce9e2f2b010130e1fa94
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2022, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#ifndef __RSE_COMMS_PROTOCOL_EMBED_H__
|
|
#define __RSE_COMMS_PROTOCOL_EMBED_H__
|
|
|
|
#include <cdefs.h>
|
|
|
|
#include <psa/client.h>
|
|
|
|
#include <platform_def.h>
|
|
|
|
|
|
|
|
struct __packed rse_embed_msg_t {
|
|
psa_handle_t handle;
|
|
uint32_t ctrl_param; /* type, in_len, out_len */
|
|
uint16_t io_size[PSA_MAX_IOVEC];
|
|
uint8_t trailer[PLAT_RSE_COMMS_PAYLOAD_MAX_SIZE];
|
|
};
|
|
|
|
struct __packed rse_embed_reply_t {
|
|
int32_t return_val;
|
|
uint16_t out_size[PSA_MAX_IOVEC];
|
|
uint8_t trailer[PLAT_RSE_COMMS_PAYLOAD_MAX_SIZE];
|
|
};
|
|
|
|
psa_status_t rse_protocol_embed_serialize_msg(psa_handle_t handle,
|
|
int16_t type,
|
|
const psa_invec *in_vec,
|
|
uint8_t in_len,
|
|
const psa_outvec *out_vec,
|
|
uint8_t out_len,
|
|
struct rse_embed_msg_t *msg,
|
|
size_t *msg_len);
|
|
|
|
psa_status_t rse_protocol_embed_deserialize_reply(psa_outvec *out_vec,
|
|
uint8_t out_len,
|
|
psa_status_t *return_val,
|
|
const struct rse_embed_reply_t *reply,
|
|
size_t reply_size);
|
|
|
|
#endif /* __RSE_COMMS_PROTOCOL_EMBED_H__ */
|