Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 1 | /* |
Thomas Abraham | 12c6a5a | 2021-02-16 12:24:13 +0530 | [diff] [blame] | 2 | * Copyright (c) 2018-2021, ARM Limited and Contributors. All rights reserved. |
Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef SGI_RAS_H |
| 8 | #define SGI_RAS_H |
Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 9 | |
Thomas Abraham | 12c6a5a | 2021-02-16 12:24:13 +0530 | [diff] [blame] | 10 | /* Platform specific SMC FID's used for DMC-620 RAS error handling */ |
| 11 | #define SP_DMC_ERROR_OVERFLOW_EVENT_AARCH64 0xC4000043 |
| 12 | #define SP_DMC_ERROR_ECC_EVENT_AARCH64 0xC4000044 |
| 13 | |
Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 14 | /* |
| 15 | * Mapping the RAS interrupt with SDEI event number and the event |
| 16 | * id used with Standalone MM code |
| 17 | */ |
| 18 | struct sgi_ras_ev_map { |
| 19 | int ras_ev_num; /* RAS Event number */ |
| 20 | int sdei_ev_num; /* SDEI Event number */ |
| 21 | int intr; /* Physical intr number */ |
| 22 | }; |
| 23 | |
| 24 | int sgi_ras_intr_handler_setup(void); |
| 25 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 26 | #endif /* SGI_RAS_H */ |