diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-09-08 12:44:47 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-09-19 21:22:29 +0300 |
commit | ab346bb23f4ba6f78392b1e55e01a9e58b993887 (patch) | |
tree | face5657c20ed9e7e29d616c82b6e0484cc2d36b | |
parent | 530889ff95659d8fea81eb556e5706387fdddfa7 (diff) | |
download | qemu-ab346bb23f4ba6f78392b1e55e01a9e58b993887.zip qemu-ab346bb23f4ba6f78392b1e55e01a9e58b993887.tar.gz qemu-ab346bb23f4ba6f78392b1e55e01a9e58b993887.tar.bz2 |
pci: Remove unused pci_reserve_capability
eepro100 was the last user. Now pci_add_capability is powerful enough.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r-- | hw/pci.c | 6 | ||||
-rw-r--r-- | hw/pci.h | 2 |
2 files changed, 0 insertions, 8 deletions
@@ -2016,12 +2016,6 @@ void pci_del_capability(PCIDevice *pdev, uint8_t cap_id, uint8_t size) pdev->config[PCI_STATUS] &= ~PCI_STATUS_CAP_LIST; } -/* Reserve space for capability at a known offset (to call after load). */ -void pci_reserve_capability(PCIDevice *pdev, uint8_t offset, uint8_t size) -{ - memset(pdev->used + offset, 0xff, size); -} - uint8_t pci_find_capability(PCIDevice *pdev, uint8_t cap_id) { return pci_find_capability_list(pdev, cap_id, NULL); @@ -209,8 +209,6 @@ int pci_add_capability(PCIDevice *pdev, uint8_t cap_id, void pci_del_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size); -void pci_reserve_capability(PCIDevice *pci_dev, uint8_t offset, uint8_t size); - uint8_t pci_find_capability(PCIDevice *pci_dev, uint8_t cap_id); |