diff options
author | John Levon <john.levon@nutanix.com> | 2020-12-15 10:24:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 10:24:20 +0000 |
commit | 39a158b50590ca899e38d9c77a8508efcd0314ea (patch) | |
tree | d16e9ac0303b7431d1f7bb190958d350cc5ea34b /include/libvfio-user.h | |
parent | f240c889171ab22e7b8b0b460792b0df94c335c1 (diff) | |
download | libvfio-user-39a158b50590ca899e38d9c77a8508efcd0314ea.zip libvfio-user-39a158b50590ca899e38d9c77a8508efcd0314ea.tar.gz libvfio-user-39a158b50590ca899e38d9c77a8508efcd0314ea.tar.bz2 |
remove vfu_get_pci_non_std_config_space() (#195)
Remove this API as well as vfu_pci_non_std_config_space_t. It's at best
confusing to try to represent this area as if it's not just a normal part of the
overall config space, and we don't really want an additional API for the
extended space past either.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include/libvfio-user.h')
-rw-r--r-- | include/libvfio-user.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h index 95c5e7d..1aa5536 100644 --- a/include/libvfio-user.h +++ b/include/libvfio-user.h @@ -99,7 +99,12 @@ void * vfu_mmap(vfu_ctx_t * vfu_ctx, off_t offset, size_t length); /* - * Returns a pointer to the standard part of the PCI configuration space. + * Returns a pointer to the PCI configuration space. + * + * PCI config space consists of an initial 64-byte vfu_pci_hdr_t, plus + * additional space, either containing capabilities, or device-specific + * configuration. Standard confspace is 256 bytes; extended config space is + * 4096 bytes. */ vfu_pci_config_space_t * vfu_pci_get_config_space(vfu_ctx_t *vfu_ctx); @@ -571,17 +576,6 @@ int vfu_dma_write(vfu_ctx_t *vfu_ctx, dma_sg_t *sg, void *data); /* - * Advanced stuff. - */ - -/** - * Returns the non-standard part of the PCI configuration space. - * @vfu_ctx: the libvfio-user context - */ -uint8_t * -vfu_get_pci_non_std_config_space(vfu_ctx_t *vfu_ctx); - -/* * Finalizes the device making it ready for vfu_attach_ctx(). This function is * mandatory to be called before vfu_attach_ctx(). * @vfu_ctx: the libvfio-user context |