OpenCSD - CoreSight Trace Decode Library  1.3.3
trc_pkt_types_stm.h
Go to the documentation of this file.
1 /*
2  * \file trc_pkt_types_stm.h
3  * \brief OpenCSD : STM decoder
4  *
5  * \copyright Copyright (c) 2015, ARM Limited. All Rights Reserved.
6  */
7 
8 /*
9  * Redistribution and use in source and binary forms, with or without modification,
10  * are permitted provided that the following conditions are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright notice,
13  * this list of conditions and the following disclaimer.
14  *
15  * 2. Redistributions in binary form must reproduce the above copyright notice,
16  * this list of conditions and the following disclaimer in the documentation
17  * and/or other materials provided with the distribution.
18  *
19  * 3. Neither the name of the copyright holder nor the names of its contributors
20  * may be used to endorse or promote products derived from this software without
21  * specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26  * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 #ifndef ARM_TRC_PKT_TYPES_STM_H_INCLUDED
35 #define ARM_TRC_PKT_TYPES_STM_H_INCLUDED
36 
37 #include "opencsd/trc_pkt_types.h"
38 
49 typedef enum _ocsd_stm_pkt_type
50 {
51 /* markers for unknown packets / state*/
56 /* markers for valid packets*/
78 /* packet errors.*/
83 
88 typedef enum _ocsd_stm_ts_type
89 {
94 
100 typedef struct _ocsd_stm_pkt
101 {
104  uint8_t master;
105  uint16_t channel;
107  uint64_t timestamp;
108  uint8_t pkt_ts_bits;
109  uint8_t pkt_has_ts;
113  uint8_t pkt_has_marker;
115  union {
116  uint8_t D8;
117  uint16_t D16;
118  uint32_t D32;
119  uint64_t D64;
121 
125 
131 typedef enum _hw_event_feat {
136 
137 
142 typedef struct _ocsd_stm_cfg
143 {
144  uint32_t reg_tcsr;
145  uint32_t reg_feat3r;
146  uint32_t reg_devid;
148  uint32_t reg_feat1r;
149  uint32_t reg_hwev_mast;
152 
156 #endif // ARM_TRC_PKT_TYPES_STM_H_INCLUDED
157 
158 /* End of File trc_pkt_types_stm.h */
struct _ocsd_stm_pkt ocsd_stm_pkt
enum _hw_event_feat hw_event_feat_t
_ocsd_stm_ts_type
_ocsd_stm_pkt_type
enum _ocsd_stm_ts_type ocsd_stm_ts_type
_hw_event_feat
struct _ocsd_stm_cfg ocsd_stm_cfg
enum _ocsd_stm_pkt_type ocsd_stm_pkt_type
@ STM_TS_NATBINARY
@ STM_TS_UNKNOWN
@ STM_TS_GREY
@ STM_PKT_D8
@ STM_PKT_FREQ
@ STM_PKT_NOTSYNC
@ STM_PKT_C16
@ STM_PKT_BAD_SEQUENCE
@ STM_PKT_ASYNC
@ STM_PKT_NULL
@ STM_PKT_GERR
@ STM_PKT_D32
@ STM_PKT_D16
@ STM_PKT_INCOMPLETE_EOT
@ STM_PKT_D64
@ STM_PKT_RESERVED
@ STM_PKT_NO_ERR_TYPE
@ STM_PKT_FLAG
@ STM_PKT_VERSION
@ STM_PKT_D4
@ STM_PKT_TRIG
@ STM_PKT_MERR
@ STM_PKT_C8
@ STM_PKT_M8
@ HwEvent_Unknown_Disabled
@ HwEvent_Enabled
@ HwEvent_UseRegisters
hw_event_feat_t hw_event
uint32_t reg_hwev_mast
ocsd_stm_pkt_type err_type
ocsd_stm_pkt_type type
ocsd_stm_ts_type ts_type
union _ocsd_stm_pkt::@28 payload
OpenCSD: Common "C" types for trace packets.