xref: /openbmc/qemu/include/hw/misc/aspeed_sli.h (revision b2580720)
1 /*
2  * ASPEED SLI Controller
3  *
4  * Copyright (C) 2024 ASPEED Technology Inc.
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 #ifndef ASPEED_SLI_H
9 #define ASPEED_SLI_H
10 
11 #include "hw/sysbus.h"
12 
13 #define TYPE_ASPEED_SLI "aspeed.sli"
14 #define TYPE_ASPEED_2700_SLI TYPE_ASPEED_SLI "-ast2700"
15 #define TYPE_ASPEED_2700_SLIIO TYPE_ASPEED_SLI "io" "-ast2700"
16 OBJECT_DECLARE_SIMPLE_TYPE(AspeedSLIState, ASPEED_SLI)
17 
18 #define ASPEED_SLI_NR_REGS  (0x500 >> 2)
19 
20 struct AspeedSLIState {
21     SysBusDevice parent;
22     MemoryRegion iomem;
23 
24     uint32_t regs[ASPEED_SLI_NR_REGS];
25 };
26 
27 #endif /* ASPEED_SLI_H */
28