mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-08 05:43:53 +00:00

To be able to use RSE comms without MHU, a first step is to disentangle the rse_comms.c file with MHU code direct calls. This is done with the creation of a new file rse_comms_mhu.c. New APIs are created to initialize the mailbox, get max message size and send and receive data. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I75dda77e1886beaa6ced6f92c311617125918cfa
20 lines
531 B
C
20 lines
531 B
C
/*
|
|
* Copyright (c) 2022-2025, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#ifndef RSE_COMMS_H
|
|
#define RSE_COMMS_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
size_t rse_mbx_get_max_message_size(void);
|
|
int rse_mbx_send_data(const uint8_t *send_buffer, size_t size);
|
|
int rse_mbx_receive_data(uint8_t *receive_buffer, size_t *size);
|
|
int rse_mbx_init(const void *init_data);
|
|
int rse_comms_init(uintptr_t mhu_sender_base, uintptr_t mhu_receiver_base);
|
|
|
|
#endif /* RSE_COMMS_H */
|