dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __RUNTIME_INSTR_H__ |
| 8 | #define __RUNTIME_INSTR_H__ |
| 9 | |
dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 10 | #define RT_INSTR_ENTER_PSCI 0 |
| 11 | #define RT_INSTR_EXIT_PSCI 1 |
| 12 | #define RT_INSTR_ENTER_HW_LOW_PWR 2 |
| 13 | #define RT_INSTR_EXIT_HW_LOW_PWR 3 |
dp-arm | 2d92de6 | 2016-11-15 13:25:30 +0000 | [diff] [blame] | 14 | #define RT_INSTR_ENTER_CFLUSH 4 |
| 15 | #define RT_INSTR_EXIT_CFLUSH 5 |
| 16 | #define RT_INSTR_TOTAL_IDS 6 |
dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 17 | |
| 18 | #ifndef __ASSEMBLY__ |
| 19 | PMF_DECLARE_CAPTURE_TIMESTAMP(rt_instr_svc) |
| 20 | PMF_DECLARE_GET_TIMESTAMP(rt_instr_svc) |
| 21 | #endif /* __ASSEMBLY__ */ |
| 22 | |
| 23 | #endif /* __RUNTIME_INSTR_H__ */ |