2017-10-19 06:06:42 +00:00
|
|
|
#include <stddef.h>
|
2017-10-19 05:00:57 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
bool ivshmem_connect(const char * unix_socket);
|
2017-10-19 07:50:42 +00:00
|
|
|
void ivshmem_disconnect();
|
2017-10-19 06:54:00 +00:00
|
|
|
bool ivshmem_process();
|
2017-10-19 06:06:42 +00:00
|
|
|
|
2017-10-19 07:50:42 +00:00
|
|
|
uint16_t ivshmem_get_id();
|
|
|
|
void * ivshmem_get_map();
|
2017-10-19 14:03:39 +00:00
|
|
|
size_t ivshmem_get_map_size();
|
|
|
|
|
|
|
|
enum IVSHMEMWaitResult
|
|
|
|
{
|
|
|
|
IVSHMEM_WAIT_RESULT_OK,
|
|
|
|
IVSHMEM_WAIT_RESULT_TIMEOUT,
|
|
|
|
IVSHMEM_WAIT_RESULT_ERROR
|
|
|
|
};
|
|
|
|
|
|
|
|
enum IVSHMEMWaitResult ivshmem_wait_irq(uint16_t vector);
|
|
|
|
bool ivshmem_kick_irq(uint16_t clientID, uint16_t vector);
|