diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-04-06 16:05:46 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-04-11 19:37:28 +0300 |
commit | 1db5a3aad3c689be1255ed850ef8e3515ab461e8 (patch) | |
tree | ceb4251827cbea3c60157205443b8cc1b536574c /hw/pci.h | |
parent | f62719ca6fcdab99d6fbd7a1d6798e0fad4e0b70 (diff) |
pci: add API to add capability at a known offset
Unlike virtio, device emulations need to add pci capabilities
at known offsets to match real hardware. Make this possible
by adding an appropriate API.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r-- | hw/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -190,6 +190,8 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num, PCIMapIORegionFunc *map_func); int pci_add_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); +int pci_add_capability_at_offset(PCIDevice *pci_dev, uint8_t cap_id, + uint8_t cap_offset, uint8_t cap_size); void pci_del_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); |