Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / ppc / pnv_n1_chiplet.h
bloba7ad0396681f436e16d6949ca4d484e5b29b6c00
1 /*
2 * QEMU PowerPC N1 chiplet model
4 * Copyright (c) 2023, IBM Corporation.
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef PPC_PNV_N1_CHIPLET_H
10 #define PPC_PNV_N1_CHIPLET_H
12 #include "hw/ppc/pnv_nest_pervasive.h"
14 #define TYPE_PNV_N1_CHIPLET "pnv-N1-chiplet"
15 #define PNV_N1_CHIPLET(obj) OBJECT_CHECK(PnvN1Chiplet, (obj), TYPE_PNV_N1_CHIPLET)
17 typedef struct PnvPbScom {
18 uint64_t mode;
19 uint64_t hp_mode2_curr;
20 } PnvPbScom;
22 typedef struct PnvN1Chiplet {
23 DeviceState parent;
24 MemoryRegion xscom_pb_eq_mr;
25 MemoryRegion xscom_pb_es_mr;
26 PnvNestChipletPervasive nest_pervasive; /* common pervasive chiplet unit */
27 #define PNV_PB_SCOM_EQ_SIZE 8
28 PnvPbScom eq[PNV_PB_SCOM_EQ_SIZE];
29 #define PNV_PB_SCOM_ES_SIZE 4
30 PnvPbScom es[PNV_PB_SCOM_ES_SIZE];
31 } PnvN1Chiplet;
32 #endif /*PPC_PNV_N1_CHIPLET_H */