2 * ASPEED LPC Controller
4 * Copyright (C) 2017-2018 IBM Corp.
6 * This code is licensed under the GPL version 2 or later. See
7 * the COPYING file in the top-level directory.
13 #include "hw/sysbus.h"
17 #define TYPE_ASPEED_LPC "aspeed.lpc"
18 #define ASPEED_LPC(obj) OBJECT_CHECK(AspeedLPCState, (obj), TYPE_ASPEED_LPC)
20 #define ASPEED_LPC_NR_REGS (0x260 >> 2)
22 enum aspeed_lpc_subdevice
{
30 #define ASPEED_LPC_NR_SUBDEVS 5
32 typedef struct AspeedLPCState
{
40 qemu_irq subdevice_irqs
[ASPEED_LPC_NR_SUBDEVS
];
41 uint32_t subdevice_irqs_pending
;
43 uint32_t regs
[ASPEED_LPC_NR_REGS
];
47 #endif /* _ASPEED_LPC_H_ */