diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2025-01-09 15:29:46 +0900 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-13 17:16:04 +0100 |
| commit | c407eef162f765dd83d45e048585731be41a66fc (patch) | |
| tree | effc49ce4569aa07919a6473e920e23eda18ae74 /include/hw/pci/pci.h | |
| parent | b7700c9fb1c052e3f2c503c535bccdb6dd70dd97 (diff) | |
| download | focaccia-qemu-c407eef162f765dd83d45e048585731be41a66fc.tar.gz focaccia-qemu-c407eef162f765dd83d45e048585731be41a66fc.zip | |
hw/pci: Rename has_power to enabled
The renamed state will not only represent powering state of PFs, but also represent SR-IOV VF enablement in the future. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250109-reuse-v19-1-f541e82ca5f7@daynix.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include/hw/pci/pci.h')
| -rw-r--r-- | include/hw/pci/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index cefeb388bd..4002bbeebd 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -674,6 +674,7 @@ static inline void pci_irq_deassert(PCIDevice *pci_dev) } MSIMessage pci_get_msi_message(PCIDevice *dev, int vector); +void pci_set_enabled(PCIDevice *pci_dev, bool state); void pci_set_power(PCIDevice *pci_dev, bool state); #endif |