blob: bdedcbbe68fd8a7811f577d6af937372fff5f688 [file] [log] [blame]
Pratik Patel237483a2016-05-03 11:33:40 -06001#ifndef __UAPI_CORESIGHT_STM_H_
2#define __UAPI_CORESIGHT_STM_H_
3
Satyajit Desaie30e3c52016-08-22 11:22:51 -07004#define STM_FLAG_NONE 0x00
5#define STM_FLAG_TIMESTAMPED 0x08
6#define STM_FLAG_GUARANTEED 0x80
7
8#define OST_ENTITY_NONE 0x00
9#define OST_ENTITY_FTRACE_EVENTS 0x01
10#define OST_ENTITY_TRACE_PRINTK 0x02
11#define OST_ENTITY_TRACE_MARKER 0x04
12#define OST_ENTITY_DEV_NODE 0x08
13#define OST_ENTITY_DIAG 0xEE
14#define OST_ENTITY_QVIEW 0xFE
15#define OST_ENTITY_MAX 0xFF
Pratik Patel237483a2016-05-03 11:33:40 -060016
17/*
18 * The CoreSight STM supports guaranteed and invariant timing
19 * transactions. Guaranteed transactions are guaranteed to be
20 * traced, this might involve stalling the bus or system to
21 * ensure the transaction is accepted by the STM. While invariant
22 * timing transactions are not guaranteed to be traced, they
23 * will take an invariant amount of time regardless of the
24 * state of the STM.
25 */
26enum {
27 STM_OPTION_GUARANTEED = 0,
28 STM_OPTION_INVARIANT,
29};
30
31#endif