mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-25 04:30:02 +00:00
b7d89466dd
Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes, with the changes to the following files manually reverted: contrib/libvhost-user/libvhost-user-glib.h contrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h linux-user/mips64/cpu_loop.c linux-user/mips64/signal.c linux-user/sparc64/cpu_loop.c linux-user/sparc64/signal.c linux-user/x86_64/cpu_loop.c linux-user/x86_64/signal.c target/s390x/gen-features.c tests/migration/s390x/a-b-bios.c tests/test-rcu-simpleq.c tests/test-rcu-tailq.c Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20181204172535.2799-1-armbru@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Halil Pasic <pasic@linux.ibm.com> Acked-by: Yuval Shaia <yuval.shaia@oracle.com> Acked-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/*
|
|
* QEMU VFIO helpers
|
|
*
|
|
* Copyright 2016 - 2018 Red Hat, Inc.
|
|
*
|
|
* Authors:
|
|
* Fam Zheng <famz@redhat.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef QEMU_VFIO_HELPERS_H
|
|
#define QEMU_VFIO_HELPERS_H
|
|
|
|
typedef struct QEMUVFIOState QEMUVFIOState;
|
|
|
|
QEMUVFIOState *qemu_vfio_open_pci(const char *device, Error **errp);
|
|
void qemu_vfio_close(QEMUVFIOState *s);
|
|
int qemu_vfio_dma_map(QEMUVFIOState *s, void *host, size_t size,
|
|
bool temporary, uint64_t *iova_list);
|
|
int qemu_vfio_dma_reset_temporary(QEMUVFIOState *s);
|
|
void qemu_vfio_dma_unmap(QEMUVFIOState *s, void *host);
|
|
void *qemu_vfio_pci_map_bar(QEMUVFIOState *s, int index,
|
|
uint64_t offset, uint64_t size,
|
|
Error **errp);
|
|
void qemu_vfio_pci_unmap_bar(QEMUVFIOState *s, int index, void *bar,
|
|
uint64_t offset, uint64_t size);
|
|
int qemu_vfio_pci_init_irq(QEMUVFIOState *s, EventNotifier *e,
|
|
int irq_type, Error **errp);
|
|
|
|
#endif
|