1 /* 2 * ASPEED XDMA Controller 3 * Eddie James <eajames@linux.ibm.com> 4 * 5 * Copyright (C) 2019 IBM Corp. 6 * SPDX-License-Identifer: GPL-2.0-or-later 7 */ 8 9 #ifndef ASPEED_XDMA_H 10 #define ASPEED_XDMA_H 11 12 #include "hw/sysbus.h" 13 #include "qom/object.h" 14 15 #define TYPE_ASPEED_XDMA "aspeed.xdma" 16 OBJECT_DECLARE_SIMPLE_TYPE(AspeedXDMAState, ASPEED_XDMA) 17 18 #define ASPEED_XDMA_NUM_REGS (ASPEED_XDMA_REG_SIZE / sizeof(uint32_t)) 19 #define ASPEED_XDMA_REG_SIZE 0x7C 20 21 struct AspeedXDMAState { 22 SysBusDevice parent; 23 24 MemoryRegion iomem; 25 qemu_irq irq; 26 27 char bmc_cmdq_readp_set; 28 uint32_t regs[ASPEED_XDMA_NUM_REGS]; 29 }; 30 31 #endif /* ASPEED_XDMA_H */ 32