1
2
3
8
9
10
11
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* ... */
#ifndef _HARDWARE_STRUCTS_XIP_H
#define _HARDWARE_STRUCTS_XIP_H
/* ... */
#include "hardware/address_mapped.h"
#include "hardware/regs/xip.h"
typedef struct {
_REG_(XIP_CTRL_OFFSET)
io_rw_32 ctrl;
uint32_t _pad0;
_REG_(XIP_STAT_OFFSET)
io_ro_32 stat;
_REG_(XIP_CTR_HIT_OFFSET)
io_rw_32 ctr_hit;
_REG_(XIP_CTR_ACC_OFFSET)
io_rw_32 ctr_acc;
_REG_(XIP_STREAM_ADDR_OFFSET)
io_rw_32 stream_addr;
_REG_(XIP_STREAM_CTR_OFFSET)
io_rw_32 stream_ctr;
_REG_(XIP_STREAM_FIFO_OFFSET)
io_ro_32 stream_fifo;
...} xip_ctrl_hw_t;
#define xip_ctrl_hw ((xip_ctrl_hw_t *)XIP_CTRL_BASE)
static_assert(sizeof (xip_ctrl_hw_t) == 0x0020, "");
/* ... */
#endif