From ab346bb23f4ba6f78392b1e55e01a9e58b993887 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Thu, 8 Sep 2011 12:44:47 +0200 Subject: pci: Remove unused pci_reserve_capability eepro100 was the last user. Now pci_add_capability is powerful enough. Signed-off-by: Jan Kiszka Signed-off-by: Michael S. Tsirkin --- hw/pci.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'hw/pci.c') diff --git a/hw/pci.c b/hw/pci.c index af7400374b..07659632c5 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -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); -- cgit 1.4.1