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>
This commit is contained in:
parent
b7700c9fb1
commit
c407eef162
4 changed files with 15 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ typedef struct PCIReqIDCache PCIReqIDCache;
|
|||
struct PCIDevice {
|
||||
DeviceState qdev;
|
||||
bool partially_hotplugged;
|
||||
bool has_power;
|
||||
bool enabled;
|
||||
|
||||
/* PCI config space */
|
||||
uint8_t *config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue