 6c8698a5e4
			
		
	
	
		6c8698a5e4
		
	
	
	
	
		
			
			Move the IPICore structure and corresponding common fields of LoongsonIPICommonState to "hw/intc/loongson_ipi_common.h". Signed-off-by: Bibo Mao <maobibo@loongson.cn> [PMD: Extracted from bigger commit, added commit description] Co-Developed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Tested-by: Bibo Mao <maobibo@loongson.cn> Acked-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Message-Id: <20240805180622.21001-7-philmd@linaro.org>
		
			
				
	
	
		
			32 lines
		
	
	
		
			667 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			667 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-or-later */
 | |
| /*
 | |
|  * Loongson ipi interrupt header files
 | |
|  *
 | |
|  * Copyright (C) 2021 Loongson Technology Corporation Limited
 | |
|  */
 | |
| 
 | |
| #ifndef HW_LOONGSON_IPI_H
 | |
| #define HW_LOONGSON_IPI_H
 | |
| 
 | |
| #include "qom/object.h"
 | |
| #include "hw/intc/loongson_ipi_common.h"
 | |
| #include "hw/sysbus.h"
 | |
| 
 | |
| #define TYPE_LOONGSON_IPI "loongson_ipi"
 | |
| OBJECT_DECLARE_TYPE(LoongsonIPIState, LoongsonIPIClass, LOONGSON_IPI)
 | |
| 
 | |
| struct LoongsonIPIClass {
 | |
|     LoongsonIPICommonClass parent_class;
 | |
| 
 | |
|     DeviceRealize parent_realize;
 | |
|     DeviceUnrealize parent_unrealize;
 | |
| };
 | |
| 
 | |
| struct LoongsonIPIState {
 | |
|     LoongsonIPICommonState parent_obj;
 | |
| 
 | |
|     MemoryRegion *ipi_mmio_mem;
 | |
| };
 | |
| 
 | |
| #endif
 |