xref: /openbmc/qemu/hw/vfio/types.h (revision 0ae375ab08037a8ee6421c2f37678444c0e6337f)
1 /*
2  * VFIO types definition
3  *
4  * Copyright Red Hat, Inc. 2025
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 #ifndef HW_VFIO_VFIO_TYPES_H
9 #define HW_VFIO_VFIO_TYPES_H
10 
11 /*
12  * TYPE_VFIO_PCI_BASE is an abstract type used to share code
13  * between VFIO implementations that use a kernel driver
14  * with those that use user sockets.
15  */
16 #define TYPE_VFIO_PCI_BASE "vfio-pci-base"
17 
18 #define TYPE_VFIO_PCI "vfio-pci"
19 /* TYPE_VFIO_PCI shares struct VFIOPCIDevice. */
20 
21 #define TYPE_VFIO_PCI_NOHOTPLUG "vfio-pci-nohotplug"
22 
23 #endif /* HW_VFIO_VFIO_TYPES_H */
24