7#ifndef ZEPHYR_INCLUDE_IPC_SERVICE_IPC_STATIC_VRINGS_H_
8#define ZEPHYR_INCLUDE_IPC_SERVICE_IPC_STATIC_VRINGS_H_
11#include <openamp/open_amp.h>
12#include <metal/device.h>
26#define VRING_COUNT (2)
34#define MEM_ALIGNMENT CONFIG_IPC_SERVICE_STATIC_VRINGS_MEM_ALIGNMENT
#define VRING_COUNT
Number of used VRING buffers.
Definition: ipc_static_vrings.h:26
int ipc_static_vrings_init(struct ipc_static_vrings *vr, unsigned int role)
Init the static VRINGs.
void(* ipc_notify_cb)(struct virtqueue *vq, void *priv)
Define the notify callback.
Definition: ipc_static_vrings.h:45
int ipc_static_vrings_deinit(struct ipc_static_vrings *vr, unsigned int role)
Deinitialise the static VRINGs.
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:105
Static VRINGs structure.
Definition: ipc_static_vrings.h:51
ipc_notify_cb notify_cb
Notify callback.
Definition: ipc_static_vrings.h:92
struct virtio_device vdev
virtIO device.
Definition: ipc_static_vrings.h:53
struct metal_device shm_device
SHM device.
Definition: ipc_static_vrings.h:59
struct metal_io_region * shm_io
SHM IO region.
Definition: ipc_static_vrings.h:80
void * priv
Private data to be passed to the notify callback.
Definition: ipc_static_vrings.h:89
uintptr_t rx_addr
RX VRING address.
Definition: ipc_static_vrings.h:68
uintptr_t tx_addr
TX VRING address.
Definition: ipc_static_vrings.h:65
size_t shm_size
Share memory region size.
Definition: ipc_static_vrings.h:77
struct virtqueue * vq[(2)]
Virtqueues.
Definition: ipc_static_vrings.h:86
size_t vring_size
VRING size.
Definition: ipc_static_vrings.h:71
struct virtio_vring_info rvrings[(2)]
VRINGs.
Definition: ipc_static_vrings.h:83
uintptr_t shm_addr
Shared memory region address.
Definition: ipc_static_vrings.h:74
metal_phys_addr_t shm_physmap[1]
SHM physmap.
Definition: ipc_static_vrings.h:56
uintptr_t status_reg_addr
SHM and addresses.
Definition: ipc_static_vrings.h:62