Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27 lines
895 B
C
27 lines
895 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H
|
|
#define SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H
|
|
|
|
#include <libvfio/assert.h>
|
|
#include <libvfio/iommu.h>
|
|
#include <libvfio/iova_allocator.h>
|
|
#include <libvfio/vfio_pci_device.h>
|
|
#include <libvfio/vfio_pci_driver.h>
|
|
|
|
/*
|
|
* Return the BDF string of the device that the test should use.
|
|
*
|
|
* If a BDF string is provided by the user on the command line (as the last
|
|
* element of argv[]), then this function will return that and decrement argc
|
|
* by 1.
|
|
*
|
|
* Otherwise this function will attempt to use the environment variable
|
|
* $VFIO_SELFTESTS_BDF.
|
|
*
|
|
* If BDF cannot be determined then the test will exit with KSFT_SKIP.
|
|
*/
|
|
const char *vfio_selftests_get_bdf(int *argc, char *argv[]);
|
|
char **vfio_selftests_get_bdfs(int *argc, char *argv[], int *nr_bdfs);
|
|
|
|
#endif /* SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H */
|