diff options
| author | Frederic Barrat <fbarrat@linux.ibm.com> | 2023-03-02 17:37:12 +0100 |
|---|---|---|
| committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2023-03-03 16:50:17 -0300 |
| commit | 1068ebb60642a6da4bcece4859416a5abd00116c (patch) | |
| tree | 017a3618edf2f45f520c3c0681412263ee6e9733 /include/hw/pci-host | |
| parent | e64645ba802f7735bfffe342945a71b4fb1c5b66 (diff) | |
| download | focaccia-qemu-1068ebb60642a6da4bcece4859416a5abd00116c.tar.gz focaccia-qemu-1068ebb60642a6da4bcece4859416a5abd00116c.zip | |
pnv_phb4_pec: Keep track of instantiated PHBs
Add an array on the PEC object to keep track of the PHBs which are instantiated. The array can be sparsely populated when using user-created PHBs. It will be useful for the next patch to only export instantiated PHBs in the device tree. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Message-Id: <20230302163715.129635-2-fbarrat@linux.ibm.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'include/hw/pci-host')
| -rw-r--r-- | include/hw/pci-host/pnv_phb4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/pci-host/pnv_phb4.h b/include/hw/pci-host/pnv_phb4.h index 28d61b96c7..0b72ef1471 100644 --- a/include/hw/pci-host/pnv_phb4.h +++ b/include/hw/pci-host/pnv_phb4.h @@ -185,6 +185,8 @@ struct PnvPhb4PecState { /* PHBs */ uint32_t num_phbs; +#define MAX_PHBS_PER_PEC 3 + PnvPHB *phbs[MAX_PHBS_PER_PEC]; PnvChip *chip; }; |