2 * QEMU PowerPC PowerNV Proxy PHB model
4 * Copyright (c) 2022, IBM Corporation.
6 * This code is licensed under the GPL version 2 or later. See the
7 * COPYING file in the top-level directory.
10 #ifndef PCI_HOST_PNV_PHB_H
11 #define PCI_HOST_PNV_PHB_H
13 #include "hw/pci/pcie_host.h"
14 #include "hw/pci/pcie_port.h"
15 #include "qom/object.h"
17 typedef struct PnvChip PnvChip
;
18 typedef struct PnvPhb4PecState PnvPhb4PecState
;
21 PCIExpressHost parent_obj
;
32 /* The PHB backend (PnvPHB3, PnvPHB4 ...) being used */
36 #define TYPE_PNV_PHB "pnv-phb"
37 OBJECT_DECLARE_SIMPLE_TYPE(PnvPHB
, PNV_PHB
)
42 #define PNV_PHB3_DEVICE_ID 0x03dc
43 #define PNV_PHB4_DEVICE_ID 0x04c1
44 #define PNV_PHB5_DEVICE_ID 0x0652
46 typedef struct PnvPHBRootPort
{
52 #define TYPE_PNV_PHB_ROOT_PORT "pnv-phb-root-port"
53 OBJECT_DECLARE_SIMPLE_TYPE(PnvPHBRootPort
, PNV_PHB_ROOT_PORT
)
55 #endif /* PCI_HOST_PNV_PHB_H */