mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
spapr: Clean up spapr_dr_connector_by_*()
* Change names to something less ludicrously verbose * Now that we have QOM subclasses for the different DRC types, use a QOM typename instead of a PAPR type value parameter The latter allows removal of the get_type_shift() helper. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
2d33581899
commit
fbf5539718
5 changed files with 29 additions and 46 deletions
|
@ -1400,10 +1400,8 @@ static sPAPRDRConnector *spapr_phb_get_pci_func_drc(sPAPRPHBState *phb,
|
|||
uint32_t busnr,
|
||||
int32_t devfn)
|
||||
{
|
||||
return spapr_dr_connector_by_id(SPAPR_DR_CONNECTOR_TYPE_PCI,
|
||||
(phb->index << 16) |
|
||||
(busnr << 8) |
|
||||
devfn);
|
||||
return spapr_drc_by_id(TYPE_SPAPR_DRC_PCI,
|
||||
(phb->index << 16) | (busnr << 8) | devfn);
|
||||
}
|
||||
|
||||
static sPAPRDRConnector *spapr_phb_get_pci_drc(sPAPRPHBState *phb,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue