| .. | .. |
|---|
| 5 | 5 | |
|---|
| 6 | 6 | #include <uapi/linux/arm_sdei.h> |
|---|
| 7 | 7 | |
|---|
| 8 | | -enum sdei_conduit_types { |
|---|
| 9 | | - CONDUIT_INVALID = 0, |
|---|
| 10 | | - CONDUIT_SMC, |
|---|
| 11 | | - CONDUIT_HVC, |
|---|
| 12 | | -}; |
|---|
| 8 | +#include <acpi/ghes.h> |
|---|
| 13 | 9 | |
|---|
| 10 | +#ifdef CONFIG_ARM_SDE_INTERFACE |
|---|
| 14 | 11 | #include <asm/sdei.h> |
|---|
| 12 | +#endif |
|---|
| 15 | 13 | |
|---|
| 16 | 14 | /* Arch code should override this to set the entry point from firmware... */ |
|---|
| 17 | 15 | #ifndef sdei_arch_get_entry_point |
|---|
| .. | .. |
|---|
| 86 | 84 | #endif /* CONFIG_ARM_SDE_INTERFACE */ |
|---|
| 87 | 85 | #endif /* CONFIG_FIQ_DEBUGGER_TRUST_ZONE */ |
|---|
| 88 | 86 | |
|---|
| 87 | +/* GHES register/unregister helpers */ |
|---|
| 88 | +int sdei_register_ghes(struct ghes *ghes, sdei_event_callback *normal_cb, |
|---|
| 89 | + sdei_event_callback *critical_cb); |
|---|
| 90 | +int sdei_unregister_ghes(struct ghes *ghes); |
|---|
| 91 | + |
|---|
| 89 | 92 | #ifdef CONFIG_ARM_SDE_INTERFACE |
|---|
| 90 | 93 | /* For use by arch code when CPU hotplug notifiers are not appropriate. */ |
|---|
| 91 | 94 | int sdei_mask_local_cpu(void); |
|---|
| 92 | 95 | int sdei_unmask_local_cpu(void); |
|---|
| 96 | +void __init sdei_init(void); |
|---|
| 97 | +void sdei_handler_abort(void); |
|---|
| 93 | 98 | #else |
|---|
| 94 | 99 | static inline int sdei_mask_local_cpu(void) { return 0; } |
|---|
| 95 | 100 | static inline int sdei_unmask_local_cpu(void) { return 0; } |
|---|
| 101 | +static inline void sdei_init(void) { } |
|---|
| 102 | +static inline void sdei_handler_abort(void) { } |
|---|
| 96 | 103 | #endif /* CONFIG_ARM_SDE_INTERFACE */ |
|---|
| 97 | 104 | |
|---|
| 98 | 105 | |
|---|