misc/pca955*: Move models under hw/gpio
[qemu/kevin.git] / include / hw / fsi / cfam.h
blob7abc3b287bef3596b6d7c84a4e5c1b729668ca66
1 /*
2 * SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2024 IBM Corp.
5 * IBM Common FRU Access Macro
6 */
7 #ifndef FSI_CFAM_H
8 #define FSI_CFAM_H
10 #include "exec/memory.h"
12 #include "hw/fsi/fsi.h"
13 #include "hw/fsi/lbus.h"
15 #define TYPE_FSI_CFAM "cfam"
16 #define FSI_CFAM(obj) OBJECT_CHECK(FSICFAMState, (obj), TYPE_FSI_CFAM)
18 /* P9-ism */
19 #define CFAM_CONFIG_NR_REGS 0x28
21 typedef struct FSICFAMState {
22 /* < private > */
23 FSISlaveState parent;
25 /* CFAM config address space */
26 MemoryRegion config_iomem;
28 MemoryRegion mr;
30 FSILBus lbus;
31 FSIScratchPad scratchpad;
32 } FSICFAMState;
34 #endif /* FSI_CFAM_H */