dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | f0b14cf | 2018-10-04 09:55:23 +0100 | [diff] [blame] | 2 | * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. |
dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 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 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef RUNTIME_INSTR_H |
| 8 | #define RUNTIME_INSTR_H |
dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 9 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 10 | #include <lib/utils_def.h> |
Antonio Nino Diaz | f0b14cf | 2018-10-04 09:55:23 +0100 | [diff] [blame] | 11 | |
| 12 | #define RT_INSTR_ENTER_PSCI U(0) |
| 13 | #define RT_INSTR_EXIT_PSCI U(1) |
| 14 | #define RT_INSTR_ENTER_HW_LOW_PWR U(2) |
| 15 | #define RT_INSTR_EXIT_HW_LOW_PWR U(3) |
| 16 | #define RT_INSTR_ENTER_CFLUSH U(4) |
| 17 | #define RT_INSTR_EXIT_CFLUSH U(5) |
| 18 | #define RT_INSTR_TOTAL_IDS U(6) |
dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 19 | |
Julius Werner | 53456fc | 2019-07-09 13:49:11 -0700 | [diff] [blame] | 20 | #ifndef __ASSEMBLER__ |
dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 21 | PMF_DECLARE_CAPTURE_TIMESTAMP(rt_instr_svc) |
| 22 | PMF_DECLARE_GET_TIMESTAMP(rt_instr_svc) |
Julius Werner | 53456fc | 2019-07-09 13:49:11 -0700 | [diff] [blame] | 23 | #endif /* __ASSEMBLER__ */ |
dp-arm | 3cac786 | 2016-09-19 11:18:44 +0100 | [diff] [blame] | 24 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 25 | #endif /* RUNTIME_INSTR_H */ |