1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 #ifndef _HARDWARE_STRUCTS_RESETS_H
7 #define _HARDWARE_STRUCTS_RESETS_H
8 
9 #include "hardware/address_mapped.h"
10 #include "hardware/regs/resets.h"
11 
12 /// \tag::resets_hw[]
13 typedef struct {
14     io_rw_32 reset;
15     io_rw_32 wdsel;
16     io_rw_32 reset_done;
17 } resets_hw_t;
18 
19 #define resets_hw ((resets_hw_t *const)RESETS_BASE)
20 /// \end::resets_hw[]
21 
22 #endif
23