1 /*
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 
13 int openamp_virtio_call_begin(struct openamp_messenger *openamp,
14 			      uint8_t **req_buf, size_t req_len);
15 int openamp_virtio_call_invoke(struct openamp_messenger *openamp,
16 			       uint8_t **resp_buf, size_t *resp_len);
17 int openamp_virtio_call_end(struct openamp_messenger *openamp);
18 void *openamp_virtio_virt_to_phys(struct openamp_messenger *openamp, void *va);
19 void *openamp_virtio_phys_to_virt(struct openamp_messenger *openamp, void *pa);
20 
21 int openamp_virtio_init(struct openamp_messenger *openamp);
22 int openamp_virtio_deinit(struct openamp_messenger *openamp);
23 
24 #endif
25