Move Arm A-class Generic Timer definitions to the new "target/arm/gtimer.h" header so units in hw/ which don't need access to ARMCPU internals can use them without having to include the huge "cpu.h". Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20240118200643.29037-20-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
		
			
				
	
	
		
			22 lines
		
	
	
		
			376 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			376 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * ARM generic timer definitions for Arm A-class CPU
 | |
|  *
 | |
|  *  Copyright (c) 2003 Fabrice Bellard
 | |
|  *
 | |
|  * SPDX-License-Identifier: LGPL-2.1-or-later
 | |
|  */
 | |
| 
 | |
| #ifndef TARGET_ARM_GTIMER_H
 | |
| #define TARGET_ARM_GTIMER_H
 | |
| 
 | |
| enum {
 | |
|     GTIMER_PHYS     = 0,
 | |
|     GTIMER_VIRT     = 1,
 | |
|     GTIMER_HYP      = 2,
 | |
|     GTIMER_SEC      = 3,
 | |
|     GTIMER_HYPVIRT  = 4,
 | |
| #define NUM_GTIMERS   5
 | |
| };
 | |
| 
 | |
| #endif
 |