xref: /openbmc/qemu/include/hw/ppc/pnv_adu.h (revision 3d28b844)
1 /*
2  * QEMU PowerPC PowerNV Emulation of some ADU behaviour
3  *
4  * Copyright (c) 2024, IBM Corporation.
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #ifndef PPC_PNV_ADU_H
10 #define PPC_PNV_ADU_H
11 
12 #include "hw/ppc/pnv.h"
13 #include "hw/ppc/pnv_lpc.h"
14 #include "hw/qdev-core.h"
15 
16 #define TYPE_PNV_ADU "pnv-adu"
17 
18 OBJECT_DECLARE_TYPE(PnvADU, PnvADUClass, PNV_ADU)
19 
20 struct PnvADU {
21     DeviceState xd;
22 
23     /* LPCMC (LPC Master Controller) access engine */
24     PnvLpcController *lpc;
25     uint64_t     lpc_base_reg;
26     uint64_t     lpc_cmd_reg;
27     uint64_t     lpc_data_reg;
28 
29     MemoryRegion xscom_regs;
30 };
31 
32 #endif /* PPC_PNV_ADU_H */
33