v2.0.0-develop
sysinfo.h
1// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
8#ifndef _HARDWARE_STRUCTS_SYSINFO_H
9#define _HARDWARE_STRUCTS_SYSINFO_H
10
11#include "hardware/address_mapped.h"
12#include "hardware/regs/sysinfo.h"
13
14// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_sysinfo
15//
16// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
17// _REG_(x) will link to the corresponding register in hardware/regs/sysinfo.h.
18//
19// Bit-field descriptions are of the form:
20// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
21
22 typedef struct {
23 _REG_(SYSINFO_CHIP_ID_OFFSET) // SYSINFO_CHIP_ID
24 // JEDEC JEP-106 compliant chip identifier
25 // 0xf0000000 [31:28] REVISION (-)
26 // 0x0ffff000 [27:12] PART (-)
27 // 0x00000ffe [11:1] MANUFACTURER (-)
28 // 0x00000001 [0] STOP_BIT (1)
29 io_ro_32 chip_id;
30
31 _REG_(SYSINFO_PACKAGE_SEL_OFFSET) // SYSINFO_PACKAGE_SEL
32 // 0x00000001 [0] PACKAGE_SEL (0)
33 io_ro_32 package_sel;
34
35 _REG_(SYSINFO_PLATFORM_OFFSET) // SYSINFO_PLATFORM
36 // Platform register
37 // 0x00000010 [4] GATESIM (-)
38 // 0x00000008 [3] BATCHSIM (-)
39 // 0x00000004 [2] HDLSIM (-)
40 // 0x00000002 [1] ASIC (-)
41 // 0x00000001 [0] FPGA (-)
42 io_ro_32 platform;
43
44 uint32_t _pad0[2];
45
46 _REG_(SYSINFO_GITREF_RP2350_OFFSET) // SYSINFO_GITREF_RP2350
47 // Git hash of the chip source
48 // 0xffffffff [31:0] GITREF_RP2350 (-)
49 io_ro_32 gitref_rp2350;
50
51} sysinfo_hw_t;
52
53#define sysinfo_hw ((sysinfo_hw_t *)SYSINFO_BASE)
54static_assert(sizeof (sysinfo_hw_t) == 0x0018, "");
55
56#endif // _HARDWARE_STRUCTS_SYSINFO_H
57
address_mapped.h
sysinfo_hw_t
Definition: sysinfo.h:22