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_TBMAN_H 9 #define _HARDWARE_STRUCTS_TBMAN_H 10 11 /** 12 * \file rp2040/tbman.h 13 */ 14 15 #include "hardware/address_mapped.h" 16 #include "hardware/regs/tbman.h" 17 18 // Reference to datasheet: https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf#tab-registerlist_tbman 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/tbman.h. 22 // 23 // Bit-field descriptions are of the form: 24 // BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION 25 26 typedef struct { 27 _REG_(TBMAN_PLATFORM_OFFSET) // TBMAN_PLATFORM 28 // Indicates the type of platform in use 29 // 0x00000002 [1] FPGA (0) Indicates the platform is an FPGA 30 // 0x00000001 [0] ASIC (1) Indicates the platform is an ASIC 31 io_ro_32 platform; 32 } tbman_hw_t; 33 34 #define tbman_hw ((tbman_hw_t *)TBMAN_BASE) 35 static_assert(sizeof (tbman_hw_t) == 0x0004, ""); 36 37 #endif // _HARDWARE_STRUCTS_TBMAN_H 38 39