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>
25#define VRING_COUNT (2)
33#define MEM_ALIGNMENT CONFIG_IPC_SERVICE_STATIC_VRINGS_MEM_ALIGNMENT
#define VRING_COUNT
Number of used VRING buffers.
Definition ipc_static_vrings.h:25
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:44
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:50
ipc_notify_cb notify_cb
Notify callback.
Definition ipc_static_vrings.h:88
struct virtio_device vdev
virtIO device.
Definition ipc_static_vrings.h:52
void * priv
Private data to be passed to the notify callback.
Definition ipc_static_vrings.h:85
uintptr_t rx_addr
RX VRING address.
Definition ipc_static_vrings.h:64
uintptr_t tx_addr
TX VRING address.
Definition ipc_static_vrings.h:61
size_t shm_size
Share memory region size.
Definition ipc_static_vrings.h:73
struct virtqueue * vq[(2)]
Virtqueues.
Definition ipc_static_vrings.h:82
size_t vring_size
VRING size.
Definition ipc_static_vrings.h:67
struct metal_io_region shm_io
SHM IO region.
Definition ipc_static_vrings.h:76
struct virtio_vring_info rvrings[(2)]
VRINGs.
Definition ipc_static_vrings.h:79
uintptr_t shm_addr
Shared memory region address.
Definition ipc_static_vrings.h:70
metal_phys_addr_t shm_physmap[1]
SHM physmap.
Definition ipc_static_vrings.h:55
uintptr_t status_reg_addr
SHM and addresses.
Definition ipc_static_vrings.h:58