mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
committed by
Michael S. Tsirkin
parent
530889ff95
commit
ab346bb23f
6
hw/pci.c
6
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);
|
||||
|
||||
Reference in New Issue
Block a user