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> Message-Id: <20240627-reuse-v10-1-7ca0b8ed3d9f@daynix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
1b889d6e39
commit
6a31b219a5
4 changed files with 16 additions and 11 deletions
|
|
@ -678,6 +678,11 @@ static inline void pci_irq_pulse(PCIDevice *pci_dev)
|
|||
}
|
||||
|
||||
MSIMessage pci_get_msi_message(PCIDevice *dev, int vector);
|
||||
void pci_set_power(PCIDevice *pci_dev, bool state);
|
||||
void pci_set_enabled(PCIDevice *pci_dev, bool state);
|
||||
|
||||
static inline void pci_set_power(PCIDevice *pci_dev, bool state)
|
||||
{
|
||||
pci_set_enabled(pci_dev, state);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -56,7 +56,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