 7a5951f651
			
		
	
	
		7a5951f651
		
	
	
	
	
		
			
			A number of headers neglect to include everything they need. They compile only if the headers they need are already included from elsewhere. Fix that. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20221222120813.727830-3-armbru@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			659 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			659 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-or-later */
 | |
| /*
 | |
|  * LoongArch 7A1000 I/O interrupt controller definitions
 | |
|  *
 | |
|  * Copyright (C) 2021 Loongson Technology Corporation Limited
 | |
|  */
 | |
| 
 | |
| #include "hw/sysbus.h"
 | |
| 
 | |
| #define TYPE_LOONGARCH_PCH_MSI "loongarch_pch_msi"
 | |
| OBJECT_DECLARE_SIMPLE_TYPE(LoongArchPCHMSI, LOONGARCH_PCH_MSI)
 | |
| 
 | |
| /* MSI irq start from 32 to 255 */
 | |
| #define PCH_MSI_IRQ_START   32
 | |
| #define PCH_MSI_IRQ_END     255
 | |
| #define PCH_MSI_IRQ_NUM     224
 | |
| 
 | |
| struct LoongArchPCHMSI {
 | |
|     SysBusDevice parent_obj;
 | |
|     qemu_irq *pch_msi_irq;
 | |
|     MemoryRegion msi_mmio;
 | |
|     /* irq base passed to upper extioi intc */
 | |
|     unsigned int irq_base;
 | |
|     unsigned int irq_num;
 | |
| };
 |