1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _HARDWARE_STRUCTS_ROSC_H
8 #define _HARDWARE_STRUCTS_ROSC_H
9 
10 #include "hardware/address_mapped.h"
11 #include "hardware/platform_defs.h"
12 #include "hardware/regs/rosc.h"
13 
14 typedef struct {
15     io_rw_32 ctrl;
16     io_rw_32 freqa;
17     io_rw_32 freqb;
18     io_rw_32 dormant;
19     io_rw_32 div;
20     io_rw_32 phase;
21     io_rw_32 status;
22     io_rw_32 randombit;
23     io_rw_32 count;
24     io_rw_32 dftx;
25 } rosc_hw_t;
26 
27 #define rosc_hw ((rosc_hw_t *const)ROSC_BASE)
28 
29 #endif
30