blob: cb648391eefbaac15b441bc3ea6c2683fedcc88d [file] [log] [blame]
dp-arm3cac7862016-09-19 11:18:44 +01001/*
Antonio Nino Diazf0b14cf2018-10-04 09:55:23 +01002 * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
dp-arm3cac7862016-09-19 11:18:44 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
dp-arm3cac7862016-09-19 11:18:44 +01005 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef RUNTIME_INSTR_H
8#define RUNTIME_INSTR_H
dp-arm3cac7862016-09-19 11:18:44 +01009
Antonio Nino Diazf0b14cf2018-10-04 09:55:23 +010010#include <utils_def.h>
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-arm3cac7862016-09-19 11:18:44 +010019
20#ifndef __ASSEMBLY__
21PMF_DECLARE_CAPTURE_TIMESTAMP(rt_instr_svc)
22PMF_DECLARE_GET_TIMESTAMP(rt_instr_svc)
23#endif /* __ASSEMBLY__ */
24
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000025#endif /* RUNTIME_INSTR_H */