OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pci: implement power state
[qmiga/qemu.git]
/
include
/
hw
/
pci
/
pci.h
diff --git
a/include/hw/pci/pci.h
b/include/hw/pci/pci.h
index
5c4016b
..
e7cdf2d
100644
(file)
--- a/
include/hw/pci/pci.h
+++ b/
include/hw/pci/pci.h
@@
-268,6
+268,7
@@
typedef struct PCIReqIDCache PCIReqIDCache;
struct PCIDevice {
DeviceState qdev;
bool partially_hotplugged;
+ bool has_power;
/* PCI config space */
uint8_t *config;
@@
-908,5
+909,6
@@
extern const VMStateDescription vmstate_pci_device;
}
MSIMessage pci_get_msi_message(PCIDevice *dev, int vector);
+void pci_set_power(PCIDevice *pci_dev, bool state);
#endif