Loading...
Searching...
No Matches
trc_pkt_types.h
Go to the documentation of this file.
/*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef ARM_TRC_PKT_TYPES_H_INCLUDED
#define ARM_TRC_PKT_TYPES_H_INCLUDED
#include <stdint.h>
#include "opencsd/ocsd_if_types.h"
typedef enum _ocsd_pkt_va_size
{
VA_32BIT,
VA_64BIT
} ocsd_pkt_va_size;
typedef struct _ocsd_pkt_vaddr
{
ocsd_pkt_va_size size;
ocsd_vaddr_t val;
uint8_t pkt_bits;
uint8_t valid_bits;
} ocsd_pkt_vaddr;
typedef struct _ocsd_pkt_byte_sz_val
{
uint32_t val;
uint8_t size_bytes;
uint8_t valid_bytes;
} ocsd_pkt_byte_sz_val;
typedef enum _ocsd_pkt_atm_type
{
ATOM_PATTERN,
ATOM_REPEAT
} ocsd_pkt_atm_type;
typedef enum _ocsd_atm_val {
ATOM_N,
ATOM_E
} ocsd_atm_val;
typedef struct _ocsd_pkt_atom
{
uint32_t En_bits;
uint8_t num;
} ocsd_pkt_atom;
typedef enum _ocsd_iSync_reason {
iSync_Periodic = 0,
iSync_TraceEnable,
iSync_TraceRestartAfterOverflow,
iSync_DebugExit
} ocsd_iSync_reason;
typedef enum _ocsd_armv7_exception {
Excp_Reserved,
Excp_NoException,
Excp_Reset,
Excp_IRQ,
Excp_FIQ,
Excp_AsyncDAbort,
Excp_DebugHalt,
Excp_Jazelle,
Excp_SVC,
Excp_SMC,
Excp_Hyp,
Excp_Undef,
Excp_PrefAbort,
Excp_Generic,
Excp_SyncDataAbort,
Excp_CMUsageFault,
Excp_CMNMI,
Excp_CMDebugMonitor,
Excp_CMMemManage,
Excp_CMPendSV,
Excp_CMSysTick,
Excp_CMBusFault,
Excp_CMHardFault,
Excp_CMIRQn,
Excp_ThumbEECheckFail,
} ocsd_armv7_exception;
#endif // ARM_TRC_PKT_TYPES_H_INCLUDED
/* End of File opencsd/trc_pkt_types.h */
ocsd_vaddr_t
uint64_t ocsd_vaddr_t
Definition ocsd_if_types.h:306
_ocsd_atm_val
_ocsd_atm_val
Definition trc_pkt_types.h:79
_ocsd_iSync_reason
_ocsd_iSync_reason
Definition trc_pkt_types.h:95
ocsd_pkt_vaddr
struct _ocsd_pkt_vaddr ocsd_pkt_vaddr
ocsd_pkt_byte_sz_val
struct _ocsd_pkt_byte_sz_val ocsd_pkt_byte_sz_val
_ocsd_pkt_va_size
_ocsd_pkt_va_size
Definition trc_pkt_types.h:53
_ocsd_pkt_atm_type
_ocsd_pkt_atm_type
Definition trc_pkt_types.h:74
ocsd_atm_val
enum _ocsd_atm_val ocsd_atm_val
ocsd_armv7_exception
enum _ocsd_armv7_exception ocsd_armv7_exception
_ocsd_armv7_exception
_ocsd_armv7_exception
Definition trc_pkt_types.h:103
ocsd_pkt_atm_type
enum _ocsd_pkt_atm_type ocsd_pkt_atm_type
ocsd_pkt_va_size
enum _ocsd_pkt_va_size ocsd_pkt_va_size
ocsd_pkt_atom
struct _ocsd_pkt_atom ocsd_pkt_atom
ocsd_iSync_reason
enum _ocsd_iSync_reason ocsd_iSync_reason
ATOM_N
@ ATOM_N
Definition trc_pkt_types.h:80
ATOM_E
@ ATOM_E
Definition trc_pkt_types.h:81
iSync_DebugExit
@ iSync_DebugExit
Definition trc_pkt_types.h:99
iSync_TraceRestartAfterOverflow
@ iSync_TraceRestartAfterOverflow
Definition trc_pkt_types.h:98
iSync_TraceEnable
@ iSync_TraceEnable
Definition trc_pkt_types.h:97
iSync_Periodic
@ iSync_Periodic
Definition trc_pkt_types.h:96
VA_32BIT
@ VA_32BIT
Definition trc_pkt_types.h:54
VA_64BIT
@ VA_64BIT
Definition trc_pkt_types.h:55
ATOM_PATTERN
@ ATOM_PATTERN
Definition trc_pkt_types.h:75
ATOM_REPEAT
@ ATOM_REPEAT
Definition trc_pkt_types.h:76
Excp_CMPendSV
@ Excp_CMPendSV
Definition trc_pkt_types.h:123
Excp_Undef
@ Excp_Undef
Definition trc_pkt_types.h:115
Excp_DebugHalt
@ Excp_DebugHalt
Definition trc_pkt_types.h:110
Excp_CMMemManage
@ Excp_CMMemManage
Definition trc_pkt_types.h:122
Excp_Hyp
@ Excp_Hyp
Definition trc_pkt_types.h:114
Excp_CMUsageFault
@ Excp_CMUsageFault
Definition trc_pkt_types.h:119
Excp_CMIRQn
@ Excp_CMIRQn
Definition trc_pkt_types.h:127
Excp_PrefAbort
@ Excp_PrefAbort
Definition trc_pkt_types.h:116
Excp_CMDebugMonitor
@ Excp_CMDebugMonitor
Definition trc_pkt_types.h:121
Excp_AsyncDAbort
@ Excp_AsyncDAbort
Definition trc_pkt_types.h:109
Excp_ThumbEECheckFail
@ Excp_ThumbEECheckFail
Definition trc_pkt_types.h:128
Excp_SVC
@ Excp_SVC
Definition trc_pkt_types.h:112
Excp_FIQ
@ Excp_FIQ
Definition trc_pkt_types.h:108
Excp_NoException
@ Excp_NoException
Definition trc_pkt_types.h:105
Excp_CMSysTick
@ Excp_CMSysTick
Definition trc_pkt_types.h:124
Excp_CMBusFault
@ Excp_CMBusFault
Definition trc_pkt_types.h:125
Excp_CMNMI
@ Excp_CMNMI
Definition trc_pkt_types.h:120
Excp_IRQ
@ Excp_IRQ
Definition trc_pkt_types.h:107
Excp_Reset
@ Excp_Reset
Definition trc_pkt_types.h:106
Excp_SyncDataAbort
@ Excp_SyncDataAbort
Definition trc_pkt_types.h:118
Excp_Jazelle
@ Excp_Jazelle
Definition trc_pkt_types.h:111
Excp_Generic
@ Excp_Generic
Definition trc_pkt_types.h:117
Excp_SMC
@ Excp_SMC
Definition trc_pkt_types.h:113
Excp_Reserved
@ Excp_Reserved
Definition trc_pkt_types.h:104
Excp_CMHardFault
@ Excp_CMHardFault
Definition trc_pkt_types.h:126
ocsd_if_types.h
OpenCSD : Standard Types used in the library interfaces.
_ocsd_pkt_atom
Definition trc_pkt_types.h:85
_ocsd_pkt_atom::num
uint8_t num
Definition trc_pkt_types.h:91
_ocsd_pkt_atom::En_bits
uint32_t En_bits
Definition trc_pkt_types.h:90
_ocsd_pkt_byte_sz_val
Definition trc_pkt_types.h:67
_ocsd_pkt_byte_sz_val::size_bytes
uint8_t size_bytes
Definition trc_pkt_types.h:69
_ocsd_pkt_byte_sz_val::val
uint32_t val
Definition trc_pkt_types.h:68
_ocsd_pkt_byte_sz_val::valid_bytes
uint8_t valid_bytes
Definition trc_pkt_types.h:70
_ocsd_pkt_vaddr
Definition trc_pkt_types.h:59
_ocsd_pkt_vaddr::valid_bits
uint8_t valid_bits
Definition trc_pkt_types.h:63
_ocsd_pkt_vaddr::size
ocsd_pkt_va_size size
Definition trc_pkt_types.h:60
_ocsd_pkt_vaddr::val
ocsd_vaddr_t val
Definition trc_pkt_types.h:61
_ocsd_pkt_vaddr::pkt_bits
uint8_t pkt_bits
Definition trc_pkt_types.h:62