include/hw/ppc: Split pnv_chip.h off pnv.h
commit2c6fe2e2140965d93d0f950f80eee8e559b760f3
authorMarkus Armbruster <armbru@redhat.com>
Thu, 22 Dec 2022 10:46:25 +0000 (22 11:46 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 20 Jan 2023 06:25:10 +0000 (20 07:25 +0100)
tree9603e589226464971262d117ed99eb6fab12a5f6
parent82651e8792344ccc526f505fdf1c8c56f0d18881
include/hw/ppc: Split pnv_chip.h off pnv.h

PnvChipClass, PnvChip, Pnv8Chip, Pnv9Chip, and Pnv10Chip are defined
in pnv.h.  Many users of the header don't actually need them.  One
instance is this inclusion loop: hw/ppc/pnv_homer.h includes
hw/ppc/pnv.h for typedef PnvChip, and vice versa for struct PnvHomer.

Similar structs live in their own headers: PnvHomerClass and PnvHomer
in pnv_homer.h, PnvLpcClass and PnvLpcController in pci_lpc.h,
PnvPsiClass, PnvPsi, Pnv8Psi, Pnv9Psi, Pnv10Psi in pnv_psi.h, ...

Move PnvChipClass, PnvChip, Pnv8Chip, Pnv9Chip, and Pnv10Chip to new
pnv_chip.h, and adjust include directives.  This breaks the inclusion
loop mentioned above.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20221222104628.659681-2-armbru@redhat.com>
hw/intc/pnv_xive.c
hw/intc/pnv_xive2.c
hw/pci-host/pnv_phb3.c
hw/pci-host/pnv_phb4_pec.c
hw/ppc/pnv.c
hw/ppc/pnv_core.c
hw/ppc/pnv_homer.c
hw/ppc/pnv_lpc.c
hw/ppc/pnv_xscom.c
include/hw/ppc/pnv.h
include/hw/ppc/pnv_chip.h [new file with mode: 0644]