qemu-patch-raspberry4/include/hw/ppc
Nathan Fontenot 31fe14d15d spapr_events: re-use EPOW event infrastructure for hotplug events
This extends the data structures currently used to report EPOW events to
guests via the check-exception RTAS interfaces to also include event types
for hotplug/unplug events.

This is currently undocumented and being finalized for inclusion in PAPR
specification, but we implement this here as an extension for guest
userspace tools to implement (existing guest kernels simply log these
events via a sysfs interface that's read by rtas_errd, and current
versions of rtas_errd/powerpc-utils already support the use of this
mechanism for initiating hotplug operations).

We also add support for queues of pending RTAS events, since in the
case of hotplug there's chance for multiple events being in-flight
at any point in time.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
2015-06-03 23:56:53 +02:00
..
mac_dbdma.h macio: move unaligned DMA write code into separate pmac_dma_write() function 2015-05-22 15:58:22 -04:00
openpic.h
ppc.h PPC: mac99: Move NVRAM to page boundary when necessary 2014-09-08 12:50:47 +02:00
ppc4xx.h
ppc_e500.h
spapr.h spapr_events: re-use EPOW event infrastructure for hotplug events 2015-06-03 23:56:53 +02:00
spapr_drc.h spapr_drc: initial implementation of sPAPRDRConnector device 2015-06-03 23:56:52 +02:00
spapr_vio.h spapr_vio: Convert to realize() 2015-03-09 15:00:07 +01:00
xics.h xics: Implement xics_ics_free() 2014-06-27 13:48:26 +02:00