OpenCSD - CoreSight Trace Decode Library
0.14.3
include
opencsd
trc_pkt_types.h
Go to the documentation of this file.
1
9
/*
10
* Redistribution and use in source and binary forms, with or without modification,
11
* are permitted provided that the following conditions are met:
12
*
13
* 1. Redistributions of source code must retain the above copyright notice,
14
* this list of conditions and the following disclaimer.
15
*
16
* 2. Redistributions in binary form must reproduce the above copyright notice,
17
* this list of conditions and the following disclaimer in the documentation
18
* and/or other materials provided with the distribution.
19
*
20
* 3. Neither the name of the copyright holder nor the names of its contributors
21
* may be used to endorse or promote products derived from this software without
22
* specific prior written permission.
23
*
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
25
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
28
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
31
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
*/
35
36
#ifndef ARM_TRC_PKT_TYPES_H_INCLUDED
37
#define ARM_TRC_PKT_TYPES_H_INCLUDED
38
39
#include <stdint.h>
40
#include "
opencsd/ocsd_if_types.h
"
41
52
typedef
enum
_ocsd_pkt_va_size
53
{
54
VA_32BIT
,
55
VA_64BIT
56
}
ocsd_pkt_va_size
;
57
58
typedef
struct
_ocsd_pkt_vaddr
59
{
60
ocsd_pkt_va_size
size
;
61
ocsd_vaddr_t
val
;
62
uint8_t
pkt_bits
;
63
uint8_t
valid_bits
;
64
}
ocsd_pkt_vaddr
;
65
66
typedef
struct
_ocsd_pkt_byte_sz_val
67
{
68
uint32_t
val
;
69
uint8_t
size_bytes
;
70
uint8_t
valid_bytes
;
71
}
ocsd_pkt_byte_sz_val
;
72
73
typedef
enum
_ocsd_pkt_atm_type
74
{
75
ATOM_PATTERN
,
76
ATOM_REPEAT
77
}
ocsd_pkt_atm_type
;
78
79
typedef
enum
_ocsd_atm_val
{
80
ATOM_N
,
81
ATOM_E
82
}
ocsd_atm_val
;
83
84
typedef
struct
_ocsd_pkt_atom
85
{
90
uint32_t
En_bits
;
91
uint8_t
num
;
92
}
ocsd_pkt_atom
;
93
95
typedef
enum
_ocsd_iSync_reason
{
96
iSync_Periodic
= 0,
97
iSync_TraceEnable
,
98
iSync_TraceRestartAfterOverflow
,
99
iSync_DebugExit
100
}
ocsd_iSync_reason
;
101
102
103
typedef
enum
_ocsd_armv7_exception
{
104
Excp_Reserved
,
105
Excp_NoException
,
106
Excp_Reset
,
107
Excp_IRQ
,
108
Excp_FIQ
,
109
Excp_AsyncDAbort
,
110
Excp_DebugHalt
,
111
Excp_Jazelle
,
112
Excp_SVC
,
113
Excp_SMC
,
114
Excp_Hyp
,
115
Excp_Undef
,
116
Excp_PrefAbort
,
117
Excp_Generic
,
118
Excp_SyncDataAbort
,
119
Excp_CMUsageFault
,
120
Excp_CMNMI
,
121
Excp_CMDebugMonitor
,
122
Excp_CMMemManage
,
123
Excp_CMPendSV
,
124
Excp_CMSysTick
,
125
Excp_CMBusFault
,
126
Excp_CMHardFault
,
127
Excp_CMIRQn
,
128
Excp_ThumbEECheckFail
,
129
}
ocsd_armv7_exception
;
130
135
#endif // ARM_TRC_PKT_TYPES_H_INCLUDED
136
137
/* End of File opencsd/trc_pkt_types.h */
Excp_CMDebugMonitor
@ Excp_CMDebugMonitor
Definition:
trc_pkt_types.h:121
Excp_PrefAbort
@ Excp_PrefAbort
Definition:
trc_pkt_types.h:116
ocsd_pkt_atom
struct _ocsd_pkt_atom ocsd_pkt_atom
iSync_DebugExit
@ iSync_DebugExit
Definition:
trc_pkt_types.h:99
_ocsd_pkt_byte_sz_val::valid_bytes
uint8_t valid_bytes
Definition:
trc_pkt_types.h:70
_ocsd_armv7_exception
_ocsd_armv7_exception
Definition:
trc_pkt_types.h:103
_ocsd_pkt_byte_sz_val
Definition:
trc_pkt_types.h:67
Excp_Generic
@ Excp_Generic
Definition:
trc_pkt_types.h:117
_ocsd_pkt_byte_sz_val::val
uint32_t val
Definition:
trc_pkt_types.h:68
ocsd_iSync_reason
enum _ocsd_iSync_reason ocsd_iSync_reason
Excp_CMMemManage
@ Excp_CMMemManage
Definition:
trc_pkt_types.h:122
iSync_TraceRestartAfterOverflow
@ iSync_TraceRestartAfterOverflow
Definition:
trc_pkt_types.h:98
Excp_FIQ
@ Excp_FIQ
Definition:
trc_pkt_types.h:108
Excp_CMUsageFault
@ Excp_CMUsageFault
Definition:
trc_pkt_types.h:119
ocsd_armv7_exception
enum _ocsd_armv7_exception ocsd_armv7_exception
Excp_Reserved
@ Excp_Reserved
Definition:
trc_pkt_types.h:104
_ocsd_pkt_atom::En_bits
uint32_t En_bits
Definition:
trc_pkt_types.h:90
_ocsd_pkt_vaddr::valid_bits
uint8_t valid_bits
Definition:
trc_pkt_types.h:63
_ocsd_iSync_reason
_ocsd_iSync_reason
Definition:
trc_pkt_types.h:95
_ocsd_pkt_atm_type
_ocsd_pkt_atm_type
Definition:
trc_pkt_types.h:74
ocsd_pkt_atm_type
enum _ocsd_pkt_atm_type ocsd_pkt_atm_type
ocsd_if_types.h
OpenCSD : Standard Types used in the library interfaces.
_ocsd_atm_val
_ocsd_atm_val
Definition:
trc_pkt_types.h:79
iSync_Periodic
@ iSync_Periodic
Definition:
trc_pkt_types.h:96
VA_64BIT
@ VA_64BIT
Definition:
trc_pkt_types.h:55
Excp_SVC
@ Excp_SVC
Definition:
trc_pkt_types.h:112
Excp_CMHardFault
@ Excp_CMHardFault
Definition:
trc_pkt_types.h:126
_ocsd_pkt_vaddr::size
ocsd_pkt_va_size size
Definition:
trc_pkt_types.h:60
ocsd_vaddr_t
uint64_t ocsd_vaddr_t
Definition:
ocsd_if_types.h:308
_ocsd_pkt_byte_sz_val::size_bytes
uint8_t size_bytes
Definition:
trc_pkt_types.h:69
Excp_CMSysTick
@ Excp_CMSysTick
Definition:
trc_pkt_types.h:124
Excp_DebugHalt
@ Excp_DebugHalt
Definition:
trc_pkt_types.h:110
ocsd_atm_val
enum _ocsd_atm_val ocsd_atm_val
Excp_NoException
@ Excp_NoException
Definition:
trc_pkt_types.h:105
VA_32BIT
@ VA_32BIT
Definition:
trc_pkt_types.h:54
ATOM_PATTERN
@ ATOM_PATTERN
Definition:
trc_pkt_types.h:75
ocsd_pkt_byte_sz_val
struct _ocsd_pkt_byte_sz_val ocsd_pkt_byte_sz_val
Excp_CMIRQn
@ Excp_CMIRQn
Definition:
trc_pkt_types.h:127
_ocsd_pkt_vaddr
Definition:
trc_pkt_types.h:59
ATOM_E
@ ATOM_E
Definition:
trc_pkt_types.h:81
Excp_CMPendSV
@ Excp_CMPendSV
Definition:
trc_pkt_types.h:123
Excp_IRQ
@ Excp_IRQ
Definition:
trc_pkt_types.h:107
ATOM_REPEAT
@ ATOM_REPEAT
Definition:
trc_pkt_types.h:76
ocsd_pkt_va_size
enum _ocsd_pkt_va_size ocsd_pkt_va_size
_ocsd_pkt_atom::num
uint8_t num
Definition:
trc_pkt_types.h:91
ocsd_pkt_vaddr
struct _ocsd_pkt_vaddr ocsd_pkt_vaddr
_ocsd_pkt_vaddr::pkt_bits
uint8_t pkt_bits
Definition:
trc_pkt_types.h:62
_ocsd_pkt_atom
Definition:
trc_pkt_types.h:85
Excp_Reset
@ Excp_Reset
Definition:
trc_pkt_types.h:106
Excp_ThumbEECheckFail
@ Excp_ThumbEECheckFail
Definition:
trc_pkt_types.h:128
_ocsd_pkt_va_size
_ocsd_pkt_va_size
Definition:
trc_pkt_types.h:53
iSync_TraceEnable
@ iSync_TraceEnable
Definition:
trc_pkt_types.h:97
_ocsd_pkt_vaddr::val
ocsd_vaddr_t val
Definition:
trc_pkt_types.h:61
Excp_SyncDataAbort
@ Excp_SyncDataAbort
Definition:
trc_pkt_types.h:118
Excp_CMBusFault
@ Excp_CMBusFault
Definition:
trc_pkt_types.h:125
Excp_CMNMI
@ Excp_CMNMI
Definition:
trc_pkt_types.h:120
Excp_Jazelle
@ Excp_Jazelle
Definition:
trc_pkt_types.h:111
Excp_Undef
@ Excp_Undef
Definition:
trc_pkt_types.h:115
Excp_SMC
@ Excp_SMC
Definition:
trc_pkt_types.h:113
Excp_AsyncDAbort
@ Excp_AsyncDAbort
Definition:
trc_pkt_types.h:109
ATOM_N
@ ATOM_N
Definition:
trc_pkt_types.h:80
Excp_Hyp
@ Excp_Hyp
Definition:
trc_pkt_types.h:114
Generated on Tue Sep 29 2020 01:40:21 for OpenCSD - CoreSight Trace Decode Library by
1.8.20