v2.0.0
bootram.h
1// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
8#ifndef _HARDWARE_STRUCTS_BOOTRAM_H
9#define _HARDWARE_STRUCTS_BOOTRAM_H
10
15#include "hardware/address_mapped.h"
16#include "hardware/regs/bootram.h"
17
18// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_bootram
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/bootram.h.
22//
23// Bit-field descriptions are of the form:
24// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
25
26 typedef struct {
27 // (Description copied from array index 0 register BOOTRAM_WRITE_ONCE0 applies similarly to other array indexes)
28 _REG_(BOOTRAM_WRITE_ONCE0_OFFSET) // BOOTRAM_WRITE_ONCE0
29 // This registers always ORs writes into its current contents
30 // 0xffffffff [31:0] WRITE_ONCE0 (0x00000000)
31 io_rw_32 write_once[2];
32
33 _REG_(BOOTRAM_BOOTLOCK_STAT_OFFSET) // BOOTRAM_BOOTLOCK_STAT
34 // Bootlock status register
35 // 0x000000ff [7:0] BOOTLOCK_STAT (0xff)
36 io_rw_32 bootlock_stat;
37
38 // (Description copied from array index 0 register BOOTRAM_BOOTLOCK0 applies similarly to other array indexes)
39 _REG_(BOOTRAM_BOOTLOCK0_OFFSET) // BOOTRAM_BOOTLOCK0
40 // Read to claim and check
41 // 0xffffffff [31:0] BOOTLOCK0 (0x00000000)
42 io_rw_32 bootlock[8];
43} bootram_hw_t;
44
45#define bootram_hw ((bootram_hw_t *)(BOOTRAM_BASE + BOOTRAM_WRITE_ONCE0_OFFSET))
46static_assert(sizeof (bootram_hw_t) == 0x002c, "");
47
48#endif // _HARDWARE_STRUCTS_BOOTRAM_H
49
address_mapped.h
bootram_hw_t
Definition: bootram.h:26