RTEMS 6.1-rc2
Loading...
Searching...
No Matches
gr740-bootstrap-regs.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
12/*
13 * Copyright (C) 2021, 2023 embedded brains GmbH & Co. KG
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37/*
38 * This file is part of the RTEMS quality process and was automatically
39 * generated. If you find something that needs to be fixed or
40 * worded better please post a report or patch to an RTEMS mailing list
41 * or raise a bug report:
42 *
43 * https://www.rtems.org/bugs.html
44 *
45 * For information on updating and regenerating please refer to the How-To
46 * section in the Software Requirements Engineering chapter of the
47 * RTEMS Software Engineering manual. The manual is provided as a part of
48 * a release. For development sources please refer to the online
49 * documentation at:
50 *
51 * https://docs.rtems.org
52 */
53
54/* Generated from spec:/bsp/sparc/leon3/if/gr740-bootstrap-header */
55
56#ifndef _BSP_GR740_BOOTSTRAP_REGS_H
57#define _BSP_GR740_BOOTSTRAP_REGS_H
58
59#include <stdint.h>
60
61#ifdef __cplusplus
62extern "C" {
63#endif
64
65/* Generated from spec:/bsp/sparc/leon3/if/gr740-bootstrap */
66
85#define GR740_BOOTSTRAP_BOOTSTRAP_B10 0x2000000U
86
87#define GR740_BOOTSTRAP_BOOTSTRAP_B9 0x1000000U
88
89#define GR740_BOOTSTRAP_BOOTSTRAP_B8 0x800000U
90
91#define GR740_BOOTSTRAP_BOOTSTRAP_B7 0x400000U
92
93#define GR740_BOOTSTRAP_BOOTSTRAP_B6 0x200000U
94
95#define GR740_BOOTSTRAP_BOOTSTRAP_B5 0x100000U
96
97#define GR740_BOOTSTRAP_BOOTSTRAP_B4 0x80000U
98
99#define GR740_BOOTSTRAP_BOOTSTRAP_B3 0x40000U
100
101#define GR740_BOOTSTRAP_BOOTSTRAP_B2 0x20000U
102
103#define GR740_BOOTSTRAP_BOOTSTRAP_B1 0x10000U
104
105#define GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SHIFT 0
106#define GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK 0xffffU
107#define GR740_BOOTSTRAP_BOOTSTRAP_GPIO_GET( _reg ) \
108 ( ( ( _reg ) & GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK ) >> \
109 GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SHIFT )
110#define GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SET( _reg, _val ) \
111 ( ( ( _reg ) & ~GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK ) | \
112 ( ( ( _val ) << GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SHIFT ) & \
113 GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK ) )
114#define GR740_BOOTSTRAP_BOOTSTRAP_GPIO( _val ) \
115 ( ( ( _val ) << GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SHIFT ) & \
116 GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK )
117
124typedef struct gr740_bootstrap {
128 uint32_t bootstrap;
130
133#ifdef __cplusplus
134}
135#endif
136
137#endif /* _BSP_GR740_BOOTSTRAP_REGS_H */
This structure defines the GR740 Bootstrap Signals register block memory map.
Definition: gr740-bootstrap-regs.h:124
uint32_t bootstrap
See Bootstrap register (BOOTSTRAP).
Definition: gr740-bootstrap-regs.h:128