2 * \file opencsd/trc_pkt_types.h
3 * \brief OpenCSD: Common "C" types for trace packets.
5 * \copyright Copyright (c) 2015, ARM Limited. All Rights Reserved.
10 * Redistribution and use in source and binary forms, with or without modification,
11 * are permitted provided that the following conditions are met:
13 * 1. Redistributions of source code must retain the above copyright notice,
14 * this list of conditions and the following disclaimer.
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.
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.
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.
36 #ifndef ARM_TRC_PKT_TYPES_H_INCLUDED
37 #define ARM_TRC_PKT_TYPES_H_INCLUDED
40 #include "opencsd/ocsd_if_types.h"
42 /** @defgroup trc_pkts OpenCSD Library : Trace Packet Types
44 @brief Types used in trace packet description structures.
49 /** @name Common Packet Types
52 typedef enum _ocsd_pkt_va_size
58 typedef struct _ocsd_pkt_vaddr
60 ocsd_pkt_va_size size; /**< Virtual address size. */
61 ocsd_vaddr_t val; /**< Current value */
62 uint8_t pkt_bits; /**< Bits updated this packet */
63 uint8_t valid_bits; /**< Currently valid bits */
66 typedef struct _ocsd_pkt_byte_sz_val
71 } ocsd_pkt_byte_sz_val;
73 typedef enum _ocsd_pkt_atm_type
75 ATOM_PATTERN, /**< set atom packet using pattern supplied */
76 ATOM_REPEAT /**< set atom packet using repeat value (convert to pattern) */
79 typedef enum _ocsd_atm_val {
84 typedef struct _ocsd_pkt_atom
86 /** pattern across num bits.
87 Bit sequence:- ls bit = oldest atom (1st instruction executed), ms bit = newest (last instruction executed),
88 Bit values :- 1'b1 = E atom, 1'b0 = N atom.
91 uint8_t num; /**< number of atoms represented */
94 /** Isync Reason - common to PTM and ETMv3 **/
95 typedef enum _ocsd_iSync_reason {
98 iSync_TraceRestartAfterOverflow,
103 typedef enum _ocsd_armv7_exception {
128 Excp_ThumbEECheckFail,
129 } ocsd_armv7_exception;
135 #endif // ARM_TRC_PKT_TYPES_H_INCLUDED
137 /* End of File opencsd/trc_pkt_types.h */