qemu/include/hw/fsi/cfam.h
Richard Henderson 8be545ba5a include/system: Move exec/memory.h to system/memory.h
Convert the existing includes with

  sed -i ,exec/memory.h,system/memory.h,g

Move the include within cpu-all.h into a !CONFIG_USER_ONLY block.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2025-04-23 14:08:21 -07:00

34 lines
641 B
C

/*
* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright (C) 2024 IBM Corp.
*
* IBM Common FRU Access Macro
*/
#ifndef FSI_CFAM_H
#define FSI_CFAM_H
#include "system/memory.h"
#include "hw/fsi/fsi.h"
#include "hw/fsi/lbus.h"
#define TYPE_FSI_CFAM "cfam"
#define FSI_CFAM(obj) OBJECT_CHECK(FSICFAMState, (obj), TYPE_FSI_CFAM)
/* P9-ism */
#define CFAM_CONFIG_NR_REGS 0x28
typedef struct FSICFAMState {
/* < private > */
FSISlaveState parent;
/* CFAM config address space */
MemoryRegion config_iomem;
MemoryRegion mr;
FSILBus lbus;
FSIScratchPad scratchpad;
} FSICFAMState;
#endif /* FSI_CFAM_H */