 5054ba1066
			
		
	
	
		5054ba1066
		
	
	
	
	
		
			
			Several SPDX headers contain "SPDX-License-Identifer" (note the missing "i" before "er"); fix these typos. Signed-off-by: Ryan Finnie <ryan@finnie.org> Cc: qemu-trivial@nongnu.org Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210201200147.211914-1-ryan@finnie.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
		
			
				
	
	
		
			32 lines
		
	
	
		
			644 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			644 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * ASPEED XDMA Controller
 | |
|  * Eddie James <eajames@linux.ibm.com>
 | |
|  *
 | |
|  * Copyright (C) 2019 IBM Corp.
 | |
|  * SPDX-License-Identifier: GPL-2.0-or-later
 | |
|  */
 | |
| 
 | |
| #ifndef ASPEED_XDMA_H
 | |
| #define ASPEED_XDMA_H
 | |
| 
 | |
| #include "hw/sysbus.h"
 | |
| #include "qom/object.h"
 | |
| 
 | |
| #define TYPE_ASPEED_XDMA "aspeed.xdma"
 | |
| OBJECT_DECLARE_SIMPLE_TYPE(AspeedXDMAState, ASPEED_XDMA)
 | |
| 
 | |
| #define ASPEED_XDMA_NUM_REGS (ASPEED_XDMA_REG_SIZE / sizeof(uint32_t))
 | |
| #define ASPEED_XDMA_REG_SIZE 0x7C
 | |
| 
 | |
| struct AspeedXDMAState {
 | |
|     SysBusDevice parent;
 | |
| 
 | |
|     MemoryRegion iomem;
 | |
|     qemu_irq irq;
 | |
| 
 | |
|     char bmc_cmdq_readp_set;
 | |
|     uint32_t regs[ASPEED_XDMA_NUM_REGS];
 | |
| };
 | |
| 
 | |
| #endif /* ASPEED_XDMA_H */
 |