mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
ppc/pnv: change powernv_ prefix to pnv_ for overall naming consistency
The 'pnv' prefix is now used for all and the routines populating the device tree start with 'pnv_dt'. The handler of the PnvXScomInterface is also renamed to 'dt_xscom' which should reflect that it is populating the device tree under the 'xscom@' node of the chip. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a9dd6604a6
commit
b168a138a8
8 changed files with 67 additions and 71 deletions
|
@ -26,7 +26,7 @@
|
|||
#include "hw/ppc/pnv_psi.h"
|
||||
#include "hw/ppc/pnv_occ.h"
|
||||
|
||||
#define TYPE_PNV_CHIP "powernv-chip"
|
||||
#define TYPE_PNV_CHIP "pnv-chip"
|
||||
#define PNV_CHIP(obj) OBJECT_CHECK(PnvChip, (obj), TYPE_PNV_CHIP)
|
||||
#define PNV_CHIP_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(PnvChipClass, (klass), TYPE_PNV_CHIP)
|
||||
|
@ -117,9 +117,9 @@ typedef struct PnvChipClass {
|
|||
#define PNV_CHIP_INDEX(chip) \
|
||||
(((chip)->chip_id >> 2) * 2 + ((chip)->chip_id & 0x3))
|
||||
|
||||
#define TYPE_POWERNV_MACHINE MACHINE_TYPE_NAME("powernv")
|
||||
#define POWERNV_MACHINE(obj) \
|
||||
OBJECT_CHECK(PnvMachineState, (obj), TYPE_POWERNV_MACHINE)
|
||||
#define TYPE_PNV_MACHINE MACHINE_TYPE_NAME("powernv")
|
||||
#define PNV_MACHINE(obj) \
|
||||
OBJECT_CHECK(PnvMachineState, (obj), TYPE_PNV_MACHINE)
|
||||
|
||||
typedef struct PnvMachineState {
|
||||
/*< private >*/
|
||||
|
@ -144,7 +144,7 @@ typedef struct PnvMachineState {
|
|||
/*
|
||||
* BMC helpers
|
||||
*/
|
||||
void pnv_bmc_populate_sensors(IPMIBmc *bmc, void *fdt);
|
||||
void pnv_dt_bmc_sensors(IPMIBmc *bmc, void *fdt);
|
||||
void pnv_bmc_powerdown(IPMIBmc *bmc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,7 +36,7 @@ typedef struct PnvXScomInterface {
|
|||
|
||||
typedef struct PnvXScomInterfaceClass {
|
||||
InterfaceClass parent;
|
||||
int (*populate)(PnvXScomInterface *dev, void *fdt, int offset);
|
||||
int (*dt_xscom)(PnvXScomInterface *dev, void *fdt, int offset);
|
||||
} PnvXScomInterfaceClass;
|
||||
|
||||
/*
|
||||
|
@ -67,7 +67,7 @@ typedef struct PnvXScomInterfaceClass {
|
|||
#define PNV_XSCOM_OCC_SIZE 0x6000
|
||||
|
||||
extern void pnv_xscom_realize(PnvChip *chip, Error **errp);
|
||||
extern int pnv_xscom_populate(PnvChip *chip, void *fdt, int offset);
|
||||
extern int pnv_dt_xscom(PnvChip *chip, void *fdt, int offset);
|
||||
|
||||
extern void pnv_xscom_add_subregion(PnvChip *chip, hwaddr offset,
|
||||
MemoryRegion *mr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue