xref: /openbmc/qemu/include/hw/misc/aspeed_peci.h (revision f0984d40)
1 /*
2  * Aspeed PECI Controller
3  *
4  * Copyright (c) Meta Platforms, Inc. and affiliates. (http://www.meta.com)
5  *
6  * This code is licensed under the GPL version 2 or later. See the COPYING
7  * file in the top-level directory.
8  */
9 
10 #ifndef ASPEED_PECI_H
11 #define ASPEED_PECI_H
12 
13 #include "hw/sysbus.h"
14 
15 #define ASPEED_PECI_NR_REGS ((0xFC + 4) >> 2)
16 #define TYPE_ASPEED_PECI "aspeed.peci"
17 OBJECT_DECLARE_SIMPLE_TYPE(AspeedPECIState, ASPEED_PECI);
18 
19 struct AspeedPECIState {
20     /* <private> */
21     SysBusDevice parent;
22 
23     MemoryRegion mmio;
24     qemu_irq irq;
25 
26     uint32_t regs[ASPEED_PECI_NR_REGS];
27 };
28 
29 #endif
30