GNU Linux-libre 4.9.294-gnu1
[releases.git] / include / uapi / linux / coresight-stm.h
1 #ifndef __UAPI_CORESIGHT_STM_H_
2 #define __UAPI_CORESIGHT_STM_H_
3
4 #include <linux/const.h>
5
6 #define STM_FLAG_TIMESTAMPED   _BITUL(3)
7 #define STM_FLAG_GUARANTEED    _BITUL(7)
8
9 /*
10  * The CoreSight STM supports guaranteed and invariant timing
11  * transactions.  Guaranteed transactions are guaranteed to be
12  * traced, this might involve stalling the bus or system to
13  * ensure the transaction is accepted by the STM.  While invariant
14  * timing transactions are not guaranteed to be traced, they
15  * will take an invariant amount of time regardless of the
16  * state of the STM.
17  */
18 enum {
19         STM_OPTION_GUARANTEED = 0,
20         STM_OPTION_INVARIANT,
21 };
22
23 #endif