aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ppc/pnv.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/ppc/pnv.h')
-rw-r--r--include/hw/ppc/pnv.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/hw/ppc/pnv.h b/include/hw/ppc/pnv.h
index d534746bd4..8a42c199b6 100644
--- a/include/hw/ppc/pnv.h
+++ b/include/hw/ppc/pnv.h
@@ -190,6 +190,8 @@ PowerPCCPU *pnv_chip_find_cpu(PnvChip *chip, uint32_t pir);
#define PNV_MACHINE_CLASS(klass) \
OBJECT_CLASS_CHECK(PnvMachineClass, klass, TYPE_PNV_MACHINE)
+typedef struct PnvMachineState PnvMachineState;
+
typedef struct PnvMachineClass {
/*< private >*/
MachineClass parent_class;
@@ -197,9 +199,11 @@ typedef struct PnvMachineClass {
/*< public >*/
const char *compat;
int compat_size;
+
+ void (*dt_power_mgt)(PnvMachineState *pnv, void *fdt);
} PnvMachineClass;
-typedef struct PnvMachineState {
+struct PnvMachineState {
/*< private >*/
MachineState parent_obj;
@@ -216,7 +220,7 @@ typedef struct PnvMachineState {
Notifier powerdown_notifier;
PnvPnor *pnor;
-} PnvMachineState;
+};
static inline bool pnv_chip_is_power9(const PnvChip *chip)
{