Arve Hjønnevåg | 2db97ad | 2015-05-12 19:23:24 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
Arve Hjønnevåg | 0a66162 | 2018-02-01 15:44:04 -0800 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Arve Hjønnevåg | 2db97ad | 2015-05-12 19:23:24 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include "smcall.h" |
| 8 | |
| 9 | #define SMC_ENTITY_PLATFORM_MONITOR 61 |
| 10 | |
| 11 | /* |
| 12 | * SMC calls implemented by EL3 monitor |
| 13 | */ |
| 14 | |
| 15 | /* |
| 16 | * Write character in r1 to debug console |
| 17 | */ |
| 18 | #define SMC_FC_DEBUG_PUTC SMC_FASTCALL_NR(SMC_ENTITY_PLATFORM_MONITOR, 0x0) |
| 19 | |
| 20 | /* |
| 21 | * Get register base address |
| 22 | * r1: SMC_GET_GIC_BASE_GICD or SMC_GET_GIC_BASE_GICC |
| 23 | */ |
| 24 | #define SMC_GET_GIC_BASE_GICD 0 |
| 25 | #define SMC_GET_GIC_BASE_GICC 1 |
Arve Hjønnevåg | 8bd1e93 | 2019-11-15 14:25:43 -0800 | [diff] [blame] | 26 | #define SMC_GET_GIC_BASE_GICR 2 |
Arve Hjønnevåg | 2db97ad | 2015-05-12 19:23:24 -0700 | [diff] [blame] | 27 | #define SMC_FC_GET_REG_BASE SMC_FASTCALL_NR(SMC_ENTITY_PLATFORM_MONITOR, 0x1) |
| 28 | #define SMC_FC64_GET_REG_BASE SMC_FASTCALL64_NR(SMC_ENTITY_PLATFORM_MONITOR, 0x1) |