mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[common] linux: added helpers for ivshmem DMA usage
This commit is contained in:
@@ -20,6 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct IVSHMEM
|
||||
{
|
||||
@@ -36,3 +37,7 @@ bool ivshmemOpen(struct IVSHMEM * dev);
|
||||
bool ivshmemOpenDev(struct IVSHMEM * dev, const char * shmDev);
|
||||
void ivshmemClose(struct IVSHMEM * dev);
|
||||
void ivshmemFree(struct IVSHMEM * dev);
|
||||
|
||||
/* Linux KVMFR support only for now (VM->VM) */
|
||||
bool ivshmemHasDMA (struct IVSHMEM * dev);
|
||||
int ivshmemGetDMABuf(struct IVSHMEM * dev, uint64_t offset, uint64_t size);
|
||||
|
Reference in New Issue
Block a user