aboutsummaryrefslogtreecommitdiff
path: root/include/hw/fsi/fsi-master.h
blob: 68e5f56db2eaa883797fa5af22d20dd85e77b388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (C) 2024 IBM Corp.
 *
 * IBM Flexible Service Interface Master
 */
#ifndef FSI_FSI_MASTER_H
#define FSI_FSI_MASTER_H

#include "exec/memory.h"
#include "hw/qdev-core.h"
#include "hw/fsi/fsi.h"
#include "hw/fsi/cfam.h"

#define TYPE_FSI_MASTER "fsi.master"
OBJECT_DECLARE_SIMPLE_TYPE(FSIMasterState, FSI_MASTER)

#define FSI_MASTER_NR_REGS ((0x2e0 >> 2) + 1)

typedef struct FSIMasterState {
    DeviceState parent;
    MemoryRegion iomem;
    MemoryRegion opb2fsi;

    FSIBus bus;

    uint32_t regs[FSI_MASTER_NR_REGS];
    FSICFAMState cfam;
} FSIMasterState;


#endif /* FSI_FSI_H */