1 // THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT 2 3 /** 4 * Copyright (c) 2024 Raspberry Pi Ltd. 5 * 6 * SPDX-License-Identifier: BSD-3-Clause 7 */ 8 #ifndef _HARDWARE_STRUCTS_CORESIGHT_TRACE_H 9 #define _HARDWARE_STRUCTS_CORESIGHT_TRACE_H 10 11 /** 12 * \file rp2350/coresight_trace.h 13 */ 14 15 #include "hardware/address_mapped.h" 16 #include "hardware/regs/coresight_trace.h" 17 18 // Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_coresight_trace 19 // 20 // The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature) 21 // _REG_(x) will link to the corresponding register in hardware/regs/coresight_trace.h. 22 // 23 // Bit-field descriptions are of the form: 24 // BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION 25 26 typedef struct { 27 _REG_(CORESIGHT_TRACE_CTRL_STATUS_OFFSET) // CORESIGHT_TRACE_CTRL_STATUS 28 // Control and status register 29 // 0x00000002 [1] TRACE_CAPTURE_FIFO_OVERFLOW (0) This status flag is set high when trace data has been... 30 // 0x00000001 [0] TRACE_CAPTURE_FIFO_FLUSH (1) Set to 1 to continuously hold the trace FIFO in a... 31 io_rw_32 ctrl_status; 32 33 _REG_(CORESIGHT_TRACE_TRACE_CAPTURE_FIFO_OFFSET) // CORESIGHT_TRACE_TRACE_CAPTURE_FIFO 34 // FIFO for trace data captured from the TPIU 35 // 0xffffffff [31:0] RDATA (0x00000000) Read from an 8 x 32-bit FIFO containing trace data... 36 io_ro_32 trace_capture_fifo; 37 } coresight_trace_hw_t; 38 39 #define coresight_trace_hw ((coresight_trace_hw_t *)CORESIGHT_TRACE_BASE) 40 static_assert(sizeof (coresight_trace_hw_t) == 0x0008, ""); 41 42 #endif // _HARDWARE_STRUCTS_CORESIGHT_TRACE_H 43 44