diff options
author | John Levon <john.levon@nutanix.com> | 2021-01-20 10:44:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 10:44:49 +0000 |
commit | 53cc29bc8ca5083b9b6075f151824d65557af6f0 (patch) | |
tree | e7ae6ef44eb87c81f74f1740d0da69614606d247 /lib/pci_caps.h | |
parent | fa5104150bca4182f8a38d39fa50f7e61982568e (diff) | |
download | libvfio-user-53cc29bc8ca5083b9b6075f151824d65557af6f0.zip libvfio-user-53cc29bc8ca5083b9b6075f151824d65557af6f0.tar.gz libvfio-user-53cc29bc8ca5083b9b6075f151824d65557af6f0.tar.bz2 |
support extended capabilities (#226)
Provide initial support for extended capabilities, and implement handlers for
the Device Serial Number and Vendor-Specific capabilities.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'lib/pci_caps.h')
-rw-r--r-- | lib/pci_caps.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pci_caps.h b/lib/pci_caps.h index 86448de..cd72f56 100644 --- a/lib/pci_caps.h +++ b/lib/pci_caps.h @@ -48,7 +48,8 @@ typedef ssize_t (cap_write_cb_t)(vfu_ctx_t *vfu_ctx, struct pci_cap *cap, struct pci_cap { const char *name; - uint8_t id; + bool extended; + uint16_t id; size_t off; size_t hdr_size; size_t size; |