.. | .. |
---|
40 | 40 | int sdei_event_disable(u32 event_num); |
---|
41 | 41 | |
---|
42 | 42 | #ifdef CONFIG_FIQ_DEBUGGER_TRUST_ZONE |
---|
| 43 | +#ifdef CONFIG_ARM_SDE_INTERFACE |
---|
43 | 44 | int sdei_event_enable_nolock(u32 event_num); |
---|
44 | 45 | int sdei_event_disable_nolock(u32 event_num); |
---|
45 | 46 | int sdei_event_routing_set_nolock(u32 event_num, unsigned long flags, |
---|
46 | 47 | unsigned long affinity); |
---|
47 | 48 | int sdei_event_routing_set(u32 event_num, unsigned long flags, |
---|
48 | 49 | unsigned long affinity); |
---|
49 | | -#endif |
---|
| 50 | +int sdei_interrupt_bind(u32 intr_num, u32 *event_num); |
---|
| 51 | +int sdei_interrupt_release(u32 event_num); |
---|
| 52 | +#else |
---|
| 53 | +static inline int sdei_event_enable_nolock(u32 event_num) |
---|
| 54 | +{ |
---|
| 55 | + return SDEI_NOT_SUPPORTED; |
---|
| 56 | +} |
---|
| 57 | + |
---|
| 58 | +static inline int sdei_event_disable_nolock(u32 event_num) |
---|
| 59 | +{ |
---|
| 60 | + return SDEI_NOT_SUPPORTED; |
---|
| 61 | +} |
---|
| 62 | + |
---|
| 63 | +static inline int sdei_event_routing_set_nolock(u32 event_num, |
---|
| 64 | + unsigned long flags, |
---|
| 65 | + unsigned long affinity) |
---|
| 66 | +{ |
---|
| 67 | + return SDEI_NOT_SUPPORTED; |
---|
| 68 | +} |
---|
| 69 | + |
---|
| 70 | +static inline int sdei_event_routing_set(u32 event_num, |
---|
| 71 | + unsigned long flags, |
---|
| 72 | + unsigned long affinity) |
---|
| 73 | +{ |
---|
| 74 | + return SDEI_NOT_SUPPORTED; |
---|
| 75 | +} |
---|
| 76 | + |
---|
| 77 | +static inline int sdei_interrupt_bind(u32 intr_num, u32 *event_num) |
---|
| 78 | +{ |
---|
| 79 | + return SDEI_NOT_SUPPORTED; |
---|
| 80 | +} |
---|
| 81 | + |
---|
| 82 | +static inline int sdei_interrupt_release(u32 event_num) |
---|
| 83 | +{ |
---|
| 84 | + return SDEI_NOT_SUPPORTED; |
---|
| 85 | +} |
---|
| 86 | +#endif /* CONFIG_ARM_SDE_INTERFACE */ |
---|
| 87 | +#endif /* CONFIG_FIQ_DEBUGGER_TRUST_ZONE */ |
---|
50 | 88 | |
---|
51 | 89 | #ifdef CONFIG_ARM_SDE_INTERFACE |
---|
52 | 90 | /* For use by arch code when CPU hotplug notifiers are not appropriate. */ |
---|