aboutsummaryrefslogtreecommitdiff
path: root/samples/gpio-pci-idio-16.c
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-02 04:47:11 -0500
committerThanos Makatos <thanos.makatos@nutanix.com>2020-12-02 05:47:02 -0500
commitee1feabb520694633089f1811e8421f50e24c9dd (patch)
treedaed4f04a153eeb9220cc4e53c429c0463ce030b /samples/gpio-pci-idio-16.c
parent207374c07b90e386462ca6c43405345b84723a8a (diff)
downloadlibvfio-user-ee1feabb520694633089f1811e8421f50e24c9dd.zip
libvfio-user-ee1feabb520694633089f1811e8421f50e24c9dd.tar.gz
libvfio-user-ee1feabb520694633089f1811e8421f50e24c9dd.tar.bz2
introduce PCI types
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples/gpio-pci-idio-16.c')
-rw-r--r--samples/gpio-pci-idio-16.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c
index 1881ec0..be8ecdb 100644
--- a/samples/gpio-pci-idio-16.c
+++ b/samples/gpio-pci-idio-16.c
@@ -114,7 +114,8 @@ main(int argc, char *argv[])
err(EXIT_FAILURE, "failed to setup log");
}
- ret = vfu_pci_setup_config_hdr(vfu_ctx, id, ss, cc, false);
+ ret = vfu_pci_setup_config_hdr(vfu_ctx, id, ss, cc,
+ VFU_PCI_TYPE_CONVENTIONAL, 0);
if (ret < 0) {
fprintf(stderr, "failed to setup pci header\n");
goto out;