mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 14:25:44 +00:00

The current comms protocol (where arguments and return data is embedded into the MHU message) is now protocol v0. Protocol v1 embeds pointers into the message, and has the RSS retrieve the data via DMA. Change-Id: I08d7f09c4eaea673769fde9eee194447a99f1b78 Signed-off-by: Raef Coles <raef.coles@arm.com>
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2022, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#ifndef __RSS_COMMS_PROTOCOL_POINTER_ACCESS_H__
|
|
#define __RSS_COMMS_PROTOCOL_POINTER_ACCESS_H__
|
|
|
|
#include <cdefs.h>
|
|
|
|
#include <psa/client.h>
|
|
|
|
struct __packed rss_pointer_access_msg_t {
|
|
psa_handle_t handle;
|
|
uint32_t ctrl_param;
|
|
uint32_t io_sizes[PSA_MAX_IOVEC];
|
|
uint64_t host_ptrs[PSA_MAX_IOVEC];
|
|
};
|
|
|
|
struct __packed rss_pointer_access_reply_t {
|
|
int32_t return_val;
|
|
uint32_t out_sizes[PSA_MAX_IOVEC];
|
|
};
|
|
|
|
psa_status_t rss_protocol_pointer_access_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 rss_pointer_access_msg_t *msg,
|
|
size_t *msg_len);
|
|
|
|
psa_status_t rss_protocol_pointer_access_deserialize_reply(psa_outvec *out_vec,
|
|
uint8_t out_len,
|
|
psa_status_t *return_val,
|
|
const struct rss_pointer_access_reply_t *reply,
|
|
size_t reply_size);
|
|
|
|
#endif /* __RSS_COMMS_PROTOCOL_POINTER_ACCESS_H__ */
|