summaryrefslogtreecommitdiffstats
path: root/include/linux/virtio_pci_modern.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/virtio_pci_modern.h')
-rw-r--r--include/linux/virtio_pci_modern.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/virtio_pci_modern.h b/include/linux/virtio_pci_modern.h
index c4eeb79b0139..e7b1db1dd0bb 100644
--- a/include/linux/virtio_pci_modern.h
+++ b/include/linux/virtio_pci_modern.h
@@ -38,6 +38,9 @@ struct virtio_pci_modern_device {
int modern_bars;
struct virtio_device_id id;
+
+ /* optional check for vendor virtio device, returns dev_id or -ERRNO */
+ int (*device_id_check)(struct pci_dev *pdev);
};
/*