blob: f888141dd1c7f98261afb00e5ce3881bd384e46a [file] [log] [blame]
Antonio Nino Diaz9bf1d232018-11-08 09:21:48 +00001/*
2 * Copyright (c) 2018, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6#ifndef SPRT_HOST_H
7#define SPRT_HOST_H
8
9#include <stddef.h>
10
11#include "sprt_common.h"
12
13/*
14 * Initialize the specified buffer to be used by SPM.
15 */
16void sprt_initialize_queues(void *buffer_base, size_t buffer_size);
17
18/*
19 * Push a message to the queue number `queue_num` in a buffer that has been
20 * initialized by `sprt_initialize_queues`.
21 */
22int sprt_push_message(void *buffer_base,
23 const struct sprt_queue_entry_message *message,
24 int queue_num);
25
26#endif /* SPRT_HOST_H */