Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / ppc / pnv_adu.h
blobf9dbd8c8b3724cf4459423b79bd434c26651e4f3
1 /*
2 * QEMU PowerPC PowerNV Emulation of some ADU behaviour
4 * Copyright (c) 2024, IBM Corporation.
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef PPC_PNV_ADU_H
10 #define PPC_PNV_ADU_H
12 #include "hw/ppc/pnv.h"
13 #include "hw/ppc/pnv_lpc.h"
14 #include "hw/qdev-core.h"
16 #define TYPE_PNV_ADU "pnv-adu"
18 OBJECT_DECLARE_TYPE(PnvADU, PnvADUClass, PNV_ADU)
20 struct PnvADU {
21 DeviceState xd;
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;
29 MemoryRegion xscom_regs;
32 #endif /* PPC_PNV_ADU_H */