aboutsummaryrefslogtreecommitdiff
path: root/samples/gpio-pci-idio-16.c
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-09-28 12:01:38 -0400
committerThanos Makatos <thanos.makatos@nutanix.com>2020-09-28 12:04:01 -0400
commit061b1dd1cf5d7d912266648d0ccc3c8939767a70 (patch)
treefdb15ff2e1d2ee644c5e5e3b46627a09d4d1b8cd /samples/gpio-pci-idio-16.c
parentb6145f94471fbc6a4c038e538eaae13f6beca6cc (diff)
downloadlibvfio-user-061b1dd1cf5d7d912266648d0ccc3c8939767a70.zip
libvfio-user-061b1dd1cf5d7d912266648d0ccc3c8939767a70.tar.gz
libvfio-user-061b1dd1cf5d7d912266648d0ccc3c8939767a70.tar.bz2
implement VFIO_USER_DEVICE_SET_IRQS
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.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c
index 06320f3..c549017 100644
--- a/samples/gpio-pci-idio-16.c
+++ b/samples/gpio-pci-idio-16.c
@@ -65,12 +65,6 @@ static void _sa_handler(int signum __attribute__((unused)))
{
}
-static int
-unmap_dma(void *pvt __attribute__((unused)),
- uint64_t iova __attribute__((unused)))
-{
-}
-
int main(int argc, char *argv[])
{
int ret;
@@ -108,16 +102,8 @@ int main(int argc, char *argv[])
.size = 0x100,
.fn = &bar2_access
},
- .irq_count[LM_DEV_INTX_IRQ_IDX] = 1,
},
.uuid = argv[optind],
-
- /*
- * Not strictly necessary since this device doesn't yet do any DMA.
- * By declaring this dummy callback DMA regions get registered,
- * otherwise they're ignored.
- */
- .unmap_dma = unmap_dma
};
sigemptyset(&act.sa_mask);