blob: bb4f7a5149a04c57d1bed6af9df75bda9651c5ba [file] [log] [blame]
Rui Miguel Silva909ff4d2021-12-03 19:00:54 +00001/*
2 * Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
3 * Copyright (c) 2021-2023, Linaro Limited. All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7#ifndef OPENAMP_VIRTIO_H
8#define OPENAMP_VIRTIO_H
9
10#include <stddef.h>
11#include "openamp_messenger_api.h"
12
13int openamp_virtio_call_begin(struct openamp_messenger *openamp,
14 uint8_t **req_buf, size_t req_len);
15int openamp_virtio_call_invoke(struct openamp_messenger *openamp,
16 uint8_t **resp_buf, size_t *resp_len);
17int openamp_virtio_call_end(struct openamp_messenger *openamp);
18void *openamp_virtio_virt_to_phys(struct openamp_messenger *openamp, void *va);
19void *openamp_virtio_phys_to_virt(struct openamp_messenger *openamp, void *pa);
20
21int openamp_virtio_init(struct openamp_messenger *openamp);
22int openamp_virtio_deinit(struct openamp_messenger *openamp);
23
24#endif