7#ifndef ZEPHYR_INCLUDE_DRIVERS_VIRTUALIZATION_IVSHMEM_H_
8#define ZEPHYR_INCLUDE_DRIVERS_VIRTUALIZATION_IVSHMEM_H_
57static inline size_t z_impl_ivshmem_get_mem(
const struct device *dev,
63 return api->
get_mem(dev, memmap);
75static inline uint32_t z_impl_ivshmem_get_id(
const struct device *dev)
92static inline uint16_t z_impl_ivshmem_get_vectors(
const struct device *dev)
112static inline int z_impl_ivshmem_int_peer(
const struct device *dev,
118 return api->
int_peer(dev, peer_id, vector);
140static inline int z_impl_ivshmem_register_handler(
const struct device *dev,
158#include <syscalls/ivshmem.h>
int(* ivshmem_int_peer_f)(const struct device *dev, uint32_t peer_id, uint16_t vector)
Definition: ivshmem.h:31
uint16_t(* ivshmem_get_vectors_f)(const struct device *dev)
Definition: ivshmem.h:29
int(* ivshmem_register_handler_f)(const struct device *dev, struct k_poll_signal *signal, uint16_t vector)
Definition: ivshmem.h:34
int ivshmem_register_handler(const struct device *dev, struct k_poll_signal *signal, uint16_t vector)
Register a vector notification (interrupt) handler.
uint32_t(* ivshmem_get_id_f)(const struct device *dev)
Definition: ivshmem.h:27
uint32_t ivshmem_get_id(const struct device *dev)
Get our VM ID.
int ivshmem_int_peer(const struct device *dev, uint32_t peer_id, uint16_t vector)
Interrupt another VM.
size_t ivshmem_get_mem(const struct device *dev, uintptr_t *memmap)
Get the inter-VM shared memory.
size_t(* ivshmem_get_mem_f)(const struct device *dev, uintptr_t *memmap)
Definition: ivshmem.h:24
uint16_t ivshmem_get_vectors(const struct device *dev)
Get the number of interrupt vectors we can use.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:75
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
const void * api
Definition: device.h:373
ivshmem_register_handler_f register_handler
Definition: ivshmem.h:43
ivshmem_get_id_f get_id
Definition: ivshmem.h:40
ivshmem_int_peer_f int_peer
Definition: ivshmem.h:42
ivshmem_get_vectors_f get_vectors
Definition: ivshmem.h:41
ivshmem_get_mem_f get_mem
Definition: ivshmem.h:39
Definition: kernel.h:5405
static struct k_poll_signal signal
Definition: test_poll.c:696