mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
spapr: Support hotplug by specifying DRC count
Support hotplug identifier type RTAS_LOG_V6_HP_ID_DRC_COUNT that allows hotplugging of DRCs by specifying the DRC count. While we are here, rename spapr_hotplug_req_add_event() to spapr_hotplug_req_add_by_index() spapr_hotplug_req_remove_event() to spapr_hotplug_req_remove_by_index() so that they match with spapr_hotplug_req_add_by_count(). Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> 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
e8f986fc57
commit
7a36ae7a9f
4 changed files with 47 additions and 14 deletions
|
@ -594,8 +594,12 @@ int spapr_dma_dt(void *fdt, int node_off, const char *propname,
|
|||
int spapr_tcet_dma_dt(void *fdt, int node_off, const char *propname,
|
||||
sPAPRTCETable *tcet);
|
||||
void spapr_pci_switch_vga(bool big_endian);
|
||||
void spapr_hotplug_req_add_event(sPAPRDRConnector *drc);
|
||||
void spapr_hotplug_req_remove_event(sPAPRDRConnector *drc);
|
||||
void spapr_hotplug_req_add_by_index(sPAPRDRConnector *drc);
|
||||
void spapr_hotplug_req_remove_by_index(sPAPRDRConnector *drc);
|
||||
void spapr_hotplug_req_add_by_count(sPAPRDRConnectorType drc_type,
|
||||
uint32_t count);
|
||||
void spapr_hotplug_req_remove_by_count(sPAPRDRConnectorType drc_type,
|
||||
uint32_t count);
|
||||
|
||||
/* rtas-configure-connector state */
|
||||
struct sPAPRConfigureConnectorState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue