1 /*
2  * Copyright (c) 2017 Oticon A/S
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 /**
7  * @file Extra definitions provided by the board to soc.h
8  *
9  * Background:
10  * The POSIC ARCH/SOC/board layering is different than in normal archs
11  * The "SOC" does not provide almost any of the typical SOC functionality
12  * but that is left for the "board" to define it
13  * Device code may rely on the soc.h defining some things (like the interrupts
14  * numbers)
15  * Therefore this file is included from the inf_clock soc.h to allow a board
16  * to define that kind of SOC related snippets
17  */
18 
19 #ifndef _POSIX_SP_BOARD_SOC_H
20 #define _POSIX_SP_BOARD_SOC_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #define TIMER_TICK_IRQ 0
27 #define OFFLOAD_SW_IRQ 1
28 #define COUNTER_EVENT_IRQ 2
29 
30 /*
31  * This interrupt will awake the CPU if IRQs are not locked,
32  * This interrupt does not have an associated status bit or handler
33  */
34 #define PHONY_WEAK_IRQ 0xFFFE
35 /*
36  * This interrupt will awake the CPU even if IRQs are locked,
37  * This interrupt does not have an associated status bit or handler
38  * (the lock is only ignored when the interrupt is raised from the HW models,
39  * SW threads should not try to use this)
40  */
41 #define PHONY_HARD_IRQ 0xFFFF
42 
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* _POSIX_SP_BOARD_SOC_H */
49