s390x/pci: Add routine to get the vfio dma available count
[qemu/ar7.git] / include / hw / s390x / s390-pci-vfio.h
blob1727292e9b5d019ac2218a54eac244640a06d2ae
1 /*
2 * s390 vfio-pci interfaces
4 * Copyright 2020 IBM Corp.
5 * Author(s): Matthew Rosato <mjrosato@linux.ibm.com>
7 * This work is licensed under the terms of the GNU GPL, version 2 or (at
8 * your option) any later version. See the COPYING file in the top-level
9 * directory.
12 #ifndef HW_S390_PCI_VFIO_H
13 #define HW_S390_PCI_VFIO_H
15 #ifdef CONFIG_LINUX
16 bool s390_pci_update_dma_avail(int fd, unsigned int *avail);
17 #else
18 static inline bool s390_pci_update_dma_avail(int fd, unsigned int *avail)
20 return false;
22 #endif
24 #endif