aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2017-04-11 17:30:06 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2017-04-26 12:41:56 +1000
commitbce0b6915971968e3d00e13af5369f6df3daaeb6 (patch)
tree3fc271cc3c7b49b9d84a34c404f230097186ac36 /include
parentaeaef83dabfec1c1666e65a0c5375983c7a23089 (diff)
downloadqemu-bce0b6915971968e3d00e13af5369f6df3daaeb6.zip
qemu-bce0b6915971968e3d00e13af5369f6df3daaeb6.tar.gz
qemu-bce0b6915971968e3d00e13af5369f6df3daaeb6.tar.bz2
ppc/pnv: generate an OEM SEL event on shutdown
OpenPOWER systems expect to be notified with such an event before a shutdown or a reboot. An OEM SEL message is sent with specific identifiers and a user data containing the request : OFF or REBOOT. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ppc/pnv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ppc/pnv.h b/include/hw/ppc/pnv.h
index 02f6cf5..c1288f9 100644
--- a/include/hw/ppc/pnv.h
+++ b/include/hw/ppc/pnv.h
@@ -134,6 +134,7 @@ typedef struct PnvMachineState {
uint32_t cpld_irqstate;
IPMIBmc *bmc;
+ Notifier powerdown_notifier;
} PnvMachineState;
#define PNV_FDT_ADDR 0x01000000
@@ -143,6 +144,7 @@ typedef struct PnvMachineState {
* BMC helpers
*/
void pnv_bmc_populate_sensors(IPMIBmc *bmc, void *fdt);
+void pnv_bmc_powerdown(IPMIBmc *bmc);
/*
* POWER8 MMIO base addresses