Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / misc / aspeed_peci.h
blob8382707d9fd28713a460c0d289dd505dd758b6a2
1 /*
2 * Aspeed PECI Controller
4 * Copyright (c) Meta Platforms, Inc. and affiliates. (http://www.meta.com)
6 * This code is licensed under the GPL version 2 or later. See the COPYING
7 * file in the top-level directory.
8 */
10 #ifndef ASPEED_PECI_H
11 #define ASPEED_PECI_H
13 #include "hw/sysbus.h"
15 #define ASPEED_PECI_NR_REGS ((0xFC + 4) >> 2)
16 #define TYPE_ASPEED_PECI "aspeed.peci"
17 OBJECT_DECLARE_SIMPLE_TYPE(AspeedPECIState, ASPEED_PECI);
19 struct AspeedPECIState {
20 /* <private> */
21 SysBusDevice parent;
23 MemoryRegion mmio;
24 qemu_irq irq;
26 uint32_t regs[ASPEED_PECI_NR_REGS];
29 #endif