RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
riscv
niosv
include
altera_avalon_jtag_uart_regs.h
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
3
/*
4
*
5
* Copyright (C) 2024 Kevin Kirspel
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
9
* are met:
10
* 1. Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
* 2. Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26
* SUCH DAMAGE.
27
*/
28
29
/******************************************************************************
30
* *
31
* License Agreement *
32
* *
33
* Copyright (c) 2008 Altera Corporation, San Jose, California, USA. *
34
* All rights reserved. *
35
* *
36
* Permission is hereby granted, free of charge, to any person obtaining a *
37
* copy of this software and associated documentation files (the "Software"), *
38
* to deal in the Software without restriction, including without limitation *
39
* the rights to use, copy, modify, merge, publish, distribute, sublicense, *
40
* and/or sell copies of the Software, and to permit persons to whom the *
41
* Software is furnished to do so, subject to the following conditions: *
42
* *
43
* The above copyright notice and this permission notice shall be included in *
44
* all copies or substantial portions of the Software. *
45
* *
46
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
47
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
48
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
49
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
50
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *
51
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *
52
* DEALINGS IN THE SOFTWARE. *
53
* *
54
* This agreement shall be governed in all respects by the laws of the State *
55
* of California and by the laws of the United States of America. *
56
* *
57
******************************************************************************/
58
59
#ifndef _ALTERA_AVALON_JTAG_UART_REGS_H
60
#define _ALTERA_AVALON_JTAG_UART_REGS_H
61
62
#include <bsp_system.h>
63
64
#ifdef __cplusplus
65
extern
"C"
{
66
#endif
67
68
#define ALTERA_AVALON_JTAG_UART_DATA_DATA_MSK (0x000000FFu)
69
#define ALTERA_AVALON_JTAG_UART_DATA_DATA_OFST (0)
70
#define ALTERA_AVALON_JTAG_UART_DATA_RVALID_MSK (0x00008000u)
71
#define ALTERA_AVALON_JTAG_UART_DATA_RVALID_OFST (15)
72
#define ALTERA_AVALON_JTAG_UART_DATA_RAVAIL_MSK (0xFFFF0000u)
73
#define ALTERA_AVALON_JTAG_UART_DATA_RAVAIL_OFST (16)
74
75
#define ALTERA_AVALON_JTAG_UART_CONTROL_RE_MSK (0x00000001u)
76
#define ALTERA_AVALON_JTAG_UART_CONTROL_RE_OFST (0)
77
#define ALTERA_AVALON_JTAG_UART_CONTROL_WE_MSK (0x00000002u)
78
#define ALTERA_AVALON_JTAG_UART_CONTROL_WE_OFST (1)
79
#define ALTERA_AVALON_JTAG_UART_CONTROL_RI_MSK (0x00000100u)
80
#define ALTERA_AVALON_JTAG_UART_CONTROL_RI_OFST (8)
81
#define ALTERA_AVALON_JTAG_UART_CONTROL_WI_MSK (0x00000200u)
82
#define ALTERA_AVALON_JTAG_UART_CONTROL_WI_OFST (9)
83
#define ALTERA_AVALON_JTAG_UART_CONTROL_AC_MSK (0x00000400u)
84
#define ALTERA_AVALON_JTAG_UART_CONTROL_AC_OFST (10)
85
#define ALTERA_AVALON_JTAG_UART_CONTROL_WSPACE_MSK (0xFFFF0000u)
86
#define ALTERA_AVALON_JTAG_UART_CONTROL_WSPACE_OFST (16)
87
88
typedef
struct
89
{
90
volatile
uint32_t data;
91
volatile
uint32_t
control
;
92
}
altera_avalon_jtag_uart_regs
;
93
94
#define JTAG_UART_REGS \
95
((volatile altera_avalon_jtag_uart_regs*)JTAG_UART_BASE)
96
97
#ifdef __cplusplus
98
}
99
#endif
100
101
#endif
altera_avalon_jtag_uart_regs
Definition
bsp.h:126
control
Definition
intercom.c:87
Generated by
1.18.0