Loading...
Searching...
No Matches
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
14
16#include "hardware/regs/sysinfo.h"
17
18// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_sysinfo
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/sysinfo.h.
22//
23// Bit-field descriptions are of the form:
24// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
25
26typedef struct {
27 _REG_(SYSINFO_CHIP_ID_OFFSET) // SYSINFO_CHIP_ID
28 // JEDEC JEP-106 compliant chip identifier
29 // 0xf0000000 [31:28] REVISION (0x3)
30 // 0x0ffff000 [27:12] PART (0x0004)
31 // 0x00000ffe [11:1] MANUFACTURER (0x493)
32 // 0x00000001 [0] STOP_BIT (1)
33 io_ro_32 chip_id;
34
35 _REG_(SYSINFO_PACKAGE_SEL_OFFSET) // SYSINFO_PACKAGE_SEL
36 // Package selection indicator, 0 = QFN80, 1 = QFN60
37 // 0x00000001 [0] PACKAGE_SEL (0)
38 io_ro_32 package_sel;
39
40 _REG_(SYSINFO_PLATFORM_OFFSET) // SYSINFO_PLATFORM
41 // Platform register
42 // 0x00000010 [4] GATESIM (-)
43 // 0x00000008 [3] BATCHSIM (-)
44 // 0x00000004 [2] HDLSIM (-)
45 // 0x00000002 [1] ASIC (-)
46 // 0x00000001 [0] FPGA (-)
47 io_ro_32 platform;
48
49 uint32_t _pad0[2];
50
51 _REG_(SYSINFO_GITREF_RP2350_OFFSET) // SYSINFO_GITREF_RP2350
52 // Git hash of the chip source
53 // 0xffffffff [31:0] GITREF_RP2350 (-)
54 io_ro_32 gitref_rp2350;
56
57#define sysinfo_hw ((sysinfo_hw_t *)SYSINFO_BASE)
58static_assert(sizeof (sysinfo_hw_t) == 0x0018, "");
59
60#endif // _HARDWARE_STRUCTS_SYSINFO_H
Definition sysinfo.h:26