![]() |
|
|||
File indexing completed on 2025-05-11 08:24:08
0001 /* SPDX-License-Identifier: BSD-2-Clause */ 0002 0003 /** 0004 * @file 0005 * 0006 * @ingroup RTEMSBSPsGR740Bootstrap 0007 * 0008 * @brief This header file defines the GR740 Boostrap Signals register block 0009 * interface. 0010 */ 0011 0012 /* 0013 * Copyright (C) 2021, 2023 embedded brains GmbH & Co. KG 0014 * 0015 * Redistribution and use in source and binary forms, with or without 0016 * modification, are permitted provided that the following conditions 0017 * are met: 0018 * 1. Redistributions of source code must retain the above copyright 0019 * notice, this list of conditions and the following disclaimer. 0020 * 2. Redistributions in binary form must reproduce the above copyright 0021 * notice, this list of conditions and the following disclaimer in the 0022 * documentation and/or other materials provided with the distribution. 0023 * 0024 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0025 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0026 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0027 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 0028 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0029 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0030 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 0031 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 0032 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 0033 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0034 * POSSIBILITY OF SUCH DAMAGE. 0035 */ 0036 0037 /* 0038 * This file is part of the RTEMS quality process and was automatically 0039 * generated. If you find something that needs to be fixed or 0040 * worded better please post a report or patch to an RTEMS mailing list 0041 * or raise a bug report: 0042 * 0043 * https://www.rtems.org/bugs.html 0044 * 0045 * For information on updating and regenerating please refer to the How-To 0046 * section in the Software Requirements Engineering chapter of the 0047 * RTEMS Software Engineering manual. The manual is provided as a part of 0048 * a release. For development sources please refer to the online 0049 * documentation at: 0050 * 0051 * https://docs.rtems.org 0052 */ 0053 0054 /* Generated from spec:/bsp/sparc/leon3/if/gr740-bootstrap-header */ 0055 0056 #ifndef _BSP_GR740_BOOTSTRAP_REGS_H 0057 #define _BSP_GR740_BOOTSTRAP_REGS_H 0058 0059 #include <stdint.h> 0060 0061 #ifdef __cplusplus 0062 extern "C" { 0063 #endif 0064 0065 /* Generated from spec:/bsp/sparc/leon3/if/gr740-bootstrap */ 0066 0067 /** 0068 * @defgroup RTEMSBSPsGR740Bootstrap GR740 Bootstrap Signals 0069 * 0070 * @ingroup RTEMSBSPsSPARCLEON3 0071 * 0072 * @brief This group contains the GR740 Bootstrap Signals interfaces. 0073 * 0074 * @{ 0075 */ 0076 0077 /** 0078 * @defgroup RTEMSBSPsGR740BootstrapBOOTSTRAP Bootstrap register (BOOTSTRAP) 0079 * 0080 * @brief This group contains register bit definitions. 0081 * 0082 * @{ 0083 */ 0084 0085 #define GR740_BOOTSTRAP_BOOTSTRAP_B10 0x2000000U 0086 0087 #define GR740_BOOTSTRAP_BOOTSTRAP_B9 0x1000000U 0088 0089 #define GR740_BOOTSTRAP_BOOTSTRAP_B8 0x800000U 0090 0091 #define GR740_BOOTSTRAP_BOOTSTRAP_B7 0x400000U 0092 0093 #define GR740_BOOTSTRAP_BOOTSTRAP_B6 0x200000U 0094 0095 #define GR740_BOOTSTRAP_BOOTSTRAP_B5 0x100000U 0096 0097 #define GR740_BOOTSTRAP_BOOTSTRAP_B4 0x80000U 0098 0099 #define GR740_BOOTSTRAP_BOOTSTRAP_B3 0x40000U 0100 0101 #define GR740_BOOTSTRAP_BOOTSTRAP_B2 0x20000U 0102 0103 #define GR740_BOOTSTRAP_BOOTSTRAP_B1 0x10000U 0104 0105 #define GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SHIFT 0 0106 #define GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK 0xffffU 0107 #define GR740_BOOTSTRAP_BOOTSTRAP_GPIO_GET( _reg ) \ 0108 ( ( ( _reg ) & GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK ) >> \ 0109 GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SHIFT ) 0110 #define GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SET( _reg, _val ) \ 0111 ( ( ( _reg ) & ~GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK ) | \ 0112 ( ( ( _val ) << GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SHIFT ) & \ 0113 GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK ) ) 0114 #define GR740_BOOTSTRAP_BOOTSTRAP_GPIO( _val ) \ 0115 ( ( ( _val ) << GR740_BOOTSTRAP_BOOTSTRAP_GPIO_SHIFT ) & \ 0116 GR740_BOOTSTRAP_BOOTSTRAP_GPIO_MASK ) 0117 0118 /** @} */ 0119 0120 /** 0121 * @brief This structure defines the GR740 Bootstrap Signals register block 0122 * memory map. 0123 */ 0124 typedef struct gr740_bootstrap { 0125 /** 0126 * @brief See @ref RTEMSBSPsGR740BootstrapBOOTSTRAP. 0127 */ 0128 uint32_t bootstrap; 0129 } gr740_bootstrap; 0130 0131 /** @} */ 0132 0133 #ifdef __cplusplus 0134 } 0135 #endif 0136 0137 #endif /* _BSP_GR740_BOOTSTRAP_REGS_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |