mirror of
				https://git.proxmox.com/git/qemu
				synced 2025-10-27 17:45:41 +00:00 
			
		
		
		
	 d0b7263134
			
		
	
	
		d0b7263134
		
	
	
	
	
		
			
			This patch converts the OpenPIC device to qdev. Along the way it renames the "openpic" target to "raven" and the "mpic" target to "fsl_mpic_20", to better reflect the actual models they implement. This way we have a generic OpenPIC device now that can handle different flavors of the OpenPIC specification. Signed-off-by: Alexander Graf <agraf@suse.de>
		
			
				
	
	
		
			18 lines
		
	
	
		
			562 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			562 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #if !defined(__OPENPIC_H__)
 | |
| #define __OPENPIC_H__
 | |
| 
 | |
| /* OpenPIC have 5 outputs per CPU connected and one IRQ out single output */
 | |
| enum {
 | |
|     OPENPIC_OUTPUT_INT = 0, /* IRQ                       */
 | |
|     OPENPIC_OUTPUT_CINT,    /* critical IRQ              */
 | |
|     OPENPIC_OUTPUT_MCK,     /* Machine check event       */
 | |
|     OPENPIC_OUTPUT_DEBUG,   /* Inconditional debug event */
 | |
|     OPENPIC_OUTPUT_RESET,   /* Core reset event          */
 | |
|     OPENPIC_OUTPUT_NB,
 | |
| };
 | |
| 
 | |
| #define OPENPIC_MODEL_RAVEN       0
 | |
| #define OPENPIC_MODEL_FSL_MPIC_20 1
 | |
| 
 | |
| #endif /* __OPENPIC_H__ */
 |