Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
Main Page
Address Space
Data Structures
Files
File List
All
Data Structures
Variables
Typedefs
Groups
alt_dap.h
1
/***********************************************************************************
2
* *
3
* Copyright 2013-2015 Altera Corporation. All Rights Reserved. *
4
* *
5
* Redistribution and use in source and binary forms, with or without *
6
* modification, are permitted provided that the following conditions are met: *
7
* *
8
* 1. Redistributions of source code must retain the above copyright notice, *
9
* this list of conditions and the following disclaimer. *
10
* *
11
* 2. Redistributions in binary form must reproduce the above copyright notice, *
12
* this list of conditions and the following disclaimer in the documentation *
13
* and/or other materials provided with the distribution. *
14
* *
15
* 3. Neither the name of the copyright holder nor the names of its contributors *
16
* may be used to endorse or promote products derived from this software without *
17
* specific prior written permission. *
18
* *
19
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" *
20
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE *
21
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE *
22
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE *
23
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR *
24
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF *
25
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS *
26
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN *
27
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) *
28
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
29
* POSSIBILITY OF SUCH DAMAGE. *
30
* *
31
***********************************************************************************/
32
35
#ifndef __ALTERA_ALT_DAP_H__
36
#define __ALTERA_ALT_DAP_H__
37
38
#ifdef __cplusplus
39
extern
"C"
40
{
41
#endif
/* __cplusplus */
42
74
#define ALT_DAP_REG_FLD_LSB 0
75
76
#define ALT_DAP_REG_FLD_MSB 31
77
78
#define ALT_DAP_REG_FLD_WIDTH 32
79
80
#define ALT_DAP_REG_FLD_SET_MSK 0xffffffff
81
82
#define ALT_DAP_REG_FLD_CLR_MSK 0x00000000
83
84
#define ALT_DAP_REG_FLD_RESET 0x0
85
86
#define ALT_DAP_REG_FLD_GET(value) (((value) & 0xffffffff) >> 0)
87
88
#define ALT_DAP_REG_FLD_SET(value) (((value) << 0) & 0xffffffff)
89
90
#ifndef __ASSEMBLY__
91
101
struct
ALT_DAP_REG_s
102
{
103
uint32_t
fld
: 32;
104
};
105
107
typedef
volatile
struct
ALT_DAP_REG_s
ALT_DAP_REG_t
;
108
#endif
/* __ASSEMBLY__ */
109
111
#define ALT_DAP_REG_OFST 0x0
112
113
#ifndef __ASSEMBLY__
114
124
struct
ALT_DAP_s
125
{
126
volatile
ALT_DAP_REG_t
reg
;
127
};
128
130
typedef
volatile
struct
ALT_DAP_s
ALT_DAP_t
;
132
struct
ALT_DAP_raw_s
133
{
134
volatile
uint32_t
reg
;
135
};
136
138
typedef
volatile
struct
ALT_DAP_raw_s
ALT_DAP_raw_t
;
139
#endif
/* __ASSEMBLY__ */
140
142
#ifdef __cplusplus
143
}
144
#endif
/* __cplusplus */
145
#endif
/* __ALTERA_ALT_DAP_H__ */
146
include
soc_cv_av
socal
alt_dap.h
Generated on Tue Sep 8 2015 13:28:41 for Altera SoCAL by
1.8.2