mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
ppc4xx_pci: Rename QOM type name define
Rename the TYPE_PPC4xx_PCI_HOST_BRIDGE define and its string value to match each other and other similar types and to avoid confusion with "ppc4xx-host-bridge" type defined in same file. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-ID: <c59c28ef440633dbd1de0bda0a93b7862ef91104.1688641673.git.balaton@eik.bme.hu> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
dd0f356dfe
commit
e75a951b89
3 changed files with 5 additions and 6 deletions
|
@ -46,7 +46,7 @@ struct PCITargetMap {
|
|||
uint32_t la;
|
||||
};
|
||||
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(PPC4xxPCIState, PPC4xx_PCI_HOST_BRIDGE)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(PPC4xxPCIState, PPC4xx_PCI_HOST)
|
||||
|
||||
#define PPC4xx_PCI_NR_PMMS 3
|
||||
#define PPC4xx_PCI_NR_PTMS 2
|
||||
|
@ -321,7 +321,7 @@ static void ppc4xx_pcihost_realize(DeviceState *dev, Error **errp)
|
|||
int i;
|
||||
|
||||
h = PCI_HOST_BRIDGE(dev);
|
||||
s = PPC4xx_PCI_HOST_BRIDGE(dev);
|
||||
s = PPC4xx_PCI_HOST(dev);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(s->irq); i++) {
|
||||
sysbus_init_irq(sbd, &s->irq[i]);
|
||||
|
@ -386,7 +386,7 @@ static void ppc4xx_pcihost_class_init(ObjectClass *klass, void *data)
|
|||
}
|
||||
|
||||
static const TypeInfo ppc4xx_pcihost_info = {
|
||||
.name = TYPE_PPC4xx_PCI_HOST_BRIDGE,
|
||||
.name = TYPE_PPC4xx_PCI_HOST,
|
||||
.parent = TYPE_PCI_HOST_BRIDGE,
|
||||
.instance_size = sizeof(PPC4xxPCIState),
|
||||
.class_init = ppc4xx_pcihost_class_init,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue