mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
hw/pci: Add pci_bus_add_fw_cfg_extra_pci_roots() helper
pci_bus_add_fw_cfg_extra_pci_roots() calls the fw_cfg API with PCI bus specific arguments. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20241206181352.6836-5-philmd@linaro.org>
This commit is contained in:
parent
59c5eea5c7
commit
14f1f86d51
2 changed files with 19 additions and 0 deletions
|
@ -297,6 +297,9 @@ int pci_bus_get_irq_level(PCIBus *bus, int irq_num);
|
|||
uint32_t pci_bus_get_slot_reserved_mask(PCIBus *bus);
|
||||
void pci_bus_set_slot_reserved_mask(PCIBus *bus, uint32_t mask);
|
||||
void pci_bus_clear_slot_reserved_mask(PCIBus *bus, uint32_t mask);
|
||||
bool pci_bus_add_fw_cfg_extra_pci_roots(FWCfgState *fw_cfg,
|
||||
PCIBus *bus,
|
||||
Error **errp);
|
||||
/* 0 <= pin <= 3 0 = INTA, 1 = INTB, 2 = INTC, 3 = INTD */
|
||||
static inline int pci_swizzle(int slot, int pin)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue