mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
aeaef83dab
commit
bce0b69159
3 changed files with 57 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue