OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [sh/] [sh2/] [current/] [include/] [mod_regs_pfc.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//=============================================================================
2
//
3
//      mod_regs_pfc.h
4
//
5
//      PFC (pin function controller) Module register definitions
6
//
7
//=============================================================================
8
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
9
// -------------------------------------------                              
10
// This file is part of eCos, the Embedded Configurable Operating System.   
11
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
//
13
// eCos is free software; you can redistribute it and/or modify it under    
14
// the terms of the GNU General Public License as published by the Free     
15
// Software Foundation; either version 2 or (at your option) any later      
16
// version.                                                                 
17
//
18
// eCos is distributed in the hope that it will be useful, but WITHOUT      
19
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
20
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
21
// for more details.                                                        
22
//
23
// You should have received a copy of the GNU General Public License        
24
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
25
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
26
//
27
// As a special exception, if other files instantiate templates or use      
28
// macros or inline functions from this file, or you compile this file      
29
// and link it with other works to produce a work based on this file,       
30
// this file does not by itself cause the resulting work to be covered by   
31
// the GNU General Public License. However the source code for this file    
32
// must still be made available in accordance with section (3) of the GNU   
33
// General Public License v2.                                               
34
//
35
// This exception does not invalidate any other reasons why a work based    
36
// on this file might be covered by the GNU General Public License.         
37
// -------------------------------------------                              
38
// ####ECOSGPLCOPYRIGHTEND####                                              
39
//=============================================================================
40
//#####DESCRIPTIONBEGIN####
41
//
42
// Author(s):   jskov
43
// Contributors:jskov
44
// Date:        2002-01-30
45
//              
46
//####DESCRIPTIONEND####
47
//
48
//=============================================================================
49
 
50
#define CYGARC_REG_PACR                 0xfffffc80 // port A control
51
#define CYGARC_REG_PAIOR                0xfffffc82 // port A IO
52
#define CYGARC_REG_PBCR                 0xfffffc88 // port A control
53
#define CYGARC_REG_PBIOR                0xfffffc8a // port A IO
54
#define CYGARC_REG_PBCR2                0xfffffc8e // port A control 2
55
 
56
#define CYGARC_REG_PADR                 0xfffffc84 // port A data
57
#define CYGARC_REG_PBDR                 0xfffffc8c // port B data
58
 
59
 
60
// Port A
61
#define CYGARC_REG_PACR_PA13MD          0x2000
62
#define CYGARC_REG_PACR_PA12MD          0x1000
63
#define CYGARC_REG_PACR_PA11MD          0x0800
64
#define CYGARC_REG_PACR_PA10MD          0x0400
65
#define CYGARC_REG_PACR_PA9MD           0x0200
66
#define CYGARC_REG_PACR_PA8MD           0x0100
67
#define CYGARC_REG_PACR_PA7MD           0x0080
68
#define CYGARC_REG_PACR_PA6MD           0x0040
69
#define CYGARC_REG_PACR_PA5MD           0x0020
70
#define CYGARC_REG_PACR_PA4MD           0x0010
71
#define CYGARC_REG_PACR_PA3MD           0x0008
72
#define CYGARC_REG_PACR_PA2MD           0x0004
73
#define CYGARC_REG_PACR_PA1MD           0x0002
74
#define CYGARC_REG_PACR_PA0MD           0x0001
75
 
76
#define CYGARC_REG_PAIOR_PA13IOR        0x2000
77
#define CYGARC_REG_PAIOR_PA12IOR        0x1000
78
#define CYGARC_REG_PAIOR_PA11IOR        0x0800
79
#define CYGARC_REG_PAIOR_PA10IOR        0x0400
80
#define CYGARC_REG_PAIOR_PA9IOR         0x0200
81
#define CYGARC_REG_PAIOR_PA8IOR         0x0100
82
#define CYGARC_REG_PAIOR_PA7IOR         0x0080
83
#define CYGARC_REG_PAIOR_PA6IOR         0x0040
84
#define CYGARC_REG_PAIOR_PA5IOR         0x0020
85
#define CYGARC_REG_PAIOR_PA4IOR         0x0010
86
//#define CYGARC_REG_PAIOR_PA3IOR       0x0008
87
#define CYGARC_REG_PAIOR_PA2IOR         0x0004
88
#define CYGARC_REG_PAIOR_PA1IOR         0x0002
89
#define CYGARC_REG_PAIOR_PA0IOR         0x0001
90
 
91
#define CYGARC_REG_PBCR_PB15MD_mask     0xc000
92
#define CYGARC_REG_PBCR_PB15MD_shift    14
93
#define CYGARC_REG_PBCR_PB14MD_mask     0x3000
94
#define CYGARC_REG_PBCR_PB14MD_shift    12
95
#define CYGARC_REG_PBCR_PB13MD_mask     0x0c00
96
#define CYGARC_REG_PBCR_PB13MD_shift    10
97
#define CYGARC_REG_PBCR_PB12MD_mask     0x0300
98
#define CYGARC_REG_PBCR_PB12MD_shift    8
99
#define CYGARC_REG_PBCR_PB11MD_mask     0x00c0
100
#define CYGARC_REG_PBCR_PB11MD_shift    6
101
#define CYGARC_REG_PBCR_PB10MD_mask     0x0030
102
#define CYGARC_REG_PBCR_PB10MD_shift    4
103
#define CYGARC_REG_PBCR_PB9MD_mask      0x000c
104
#define CYGARC_REG_PBCR_PB9MD_shift     2
105
#define CYGARC_REG_PBCR_PB8MD_mask      0x0003
106
#define CYGARC_REG_PBCR_PB8MD_shift     0
107
 
108
#define CYGARC_REG_PBCR2_PB7MD_mask     0xc000
109
#define CYGARC_REG_PBCR2_PB7MD_shift    14
110
#define CYGARC_REG_PBCR2_PB6MD_mask     0x3000
111
#define CYGARC_REG_PBCR2_PB6MD_shift    12
112
#define CYGARC_REG_PBCR2_PB5MD_mask     0x0c00
113
#define CYGARC_REG_PBCR2_PB5MD_shift    10
114
#define CYGARC_REG_PBCR2_PB4MD_mask     0x0300
115
#define CYGARC_REG_PBCR2_PB4MD_shift    8
116
#define CYGARC_REG_PBCR2_PB3MD_mask     0x00c0
117
#define CYGARC_REG_PBCR2_PB3MD_shift    6
118
#define CYGARC_REG_PBCR2_PB2MD_mask     0x0030
119
#define CYGARC_REG_PBCR2_PB2MD_shift    4
120
#define CYGARC_REG_PBCR2_PB1MD_mask     0x000c
121
#define CYGARC_REG_PBCR2_PB1MD_shift    2
122
#define CYGARC_REG_PBCR2_PB0MD_mask     0x0003
123
#define CYGARC_REG_PBCR2_PB0MD_shift    0
124
 
125
#define CYGARC_REG_PBIOR_PB15IOR_OUT    0x8000
126
#define CYGARC_REG_PBIOR_PB14IOR_OUT    0x4000
127
#define CYGARC_REG_PBIOR_PB13IOR_OUT    0x2000
128
#define CYGARC_REG_PBIOR_PB12IOR_OUT    0x1000
129
#define CYGARC_REG_PBIOR_PB11IOR_OUT    0x0800
130
#define CYGARC_REG_PBIOR_PB10IOR_OUT    0x0400
131
#define CYGARC_REG_PBIOR_PB9IOR_OUT     0x0200
132
#define CYGARC_REG_PBIOR_PB8IOR_OUT     0x0100
133
#define CYGARC_REG_PBIOR_PB7IOR_OUT     0x0080
134
#define CYGARC_REG_PBIOR_PB6IOR_OUT     0x0040
135
#define CYGARC_REG_PBIOR_PB5IOR_OUT     0x0020
136
#define CYGARC_REG_PBIOR_PB4IOR_OUT     0x0010
137
#define CYGARC_REG_PBIOR_PB3IOR_OUT     0x0008
138
#define CYGARC_REG_PBIOR_PB2IOR_OUT     0x0004
139
#define CYGARC_REG_PBIOR_PB1IOR_OUT     0x0002
140
#define CYGARC_REG_PBIOR_PB0IOR_OUT     0x0001
141
 
142
#define CYGARC_REG_PBIOR_PB15IOR_IN     0x0000
143
#define CYGARC_REG_PBIOR_PB14IOR_IN     0x0000
144
#define CYGARC_REG_PBIOR_PB13IOR_IN     0x0000
145
#define CYGARC_REG_PBIOR_PB12IOR_IN     0x0000
146
#define CYGARC_REG_PBIOR_PB11IOR_IN     0x0000
147
#define CYGARC_REG_PBIOR_PB10IOR_IN     0x0000
148
#define CYGARC_REG_PBIOR_PB9IOR_IN      0x0000
149
#define CYGARC_REG_PBIOR_PB8IOR_IN      0x0000
150
#define CYGARC_REG_PBIOR_PB7IOR_IN      0x0000
151
#define CYGARC_REG_PBIOR_PB6IOR_IN      0x0000
152
#define CYGARC_REG_PBIOR_PB5IOR_IN      0x0000
153
#define CYGARC_REG_PBIOR_PB4IOR_IN      0x0000
154
#define CYGARC_REG_PBIOR_PB3IOR_IN      0x0000
155
#define CYGARC_REG_PBIOR_PB2IOR_IN      0x0000
156
#define CYGARC_REG_PBIOR_PB1IOR_IN      0x0000
157
#define CYGARC_REG_PBIOR_PB0IOR_IN      0x0000
158
 
159
//#define CYGARC_REG_PADR_PA15DR        0x8000
160
//#define CYGARC_REG_PADR_PA14DR        0x4000
161
#define CYGARC_REG_PADR_PA13DR          0x2000
162
#define CYGARC_REG_PADR_PA12DR          0x1000
163
#define CYGARC_REG_PADR_PA11DR          0x0800
164
#define CYGARC_REG_PADR_PA10DR          0x0400
165
#define CYGARC_REG_PADR_PA9DR           0x0200
166
#define CYGARC_REG_PADR_PA8DR           0x0100
167
#define CYGARC_REG_PADR_PA7DR           0x0080
168
#define CYGARC_REG_PADR_PA6DR           0x0040
169
#define CYGARC_REG_PADR_PA5DR           0x0020
170
#define CYGARC_REG_PADR_PA4DR           0x0010
171
//#define CYGARC_REG_PADR_PA3DR         0x0008
172
#define CYGARC_REG_PADR_PA2DR           0x0004
173
#define CYGARC_REG_PADR_PA1DR           0x0002
174
#define CYGARC_REG_PADR_PA0DR           0x0001
175
 
176
#define CYGARC_REG_PBDR_PB15DR          0x8000
177
#define CYGARC_REG_PBDR_PB14DR          0x4000
178
#define CYGARC_REG_PBDR_PB13DR          0x2000
179
#define CYGARC_REG_PBDR_PB12DR          0x1000
180
#define CYGARC_REG_PBDR_PB11DR          0x0800
181
#define CYGARC_REG_PBDR_PB10DR          0x0400
182
#define CYGARC_REG_PBDR_PB9DR           0x0200
183
#define CYGARC_REG_PBDR_PB8DR           0x0100
184
#define CYGARC_REG_PBDR_PB7DR           0x0080
185
#define CYGARC_REG_PBDR_PB6DR           0x0040
186
#define CYGARC_REG_PBDR_PB5DR           0x0020
187
#define CYGARC_REG_PBDR_PB4DR           0x0010
188
#define CYGARC_REG_PBDR_PB3DR           0x0008
189
#define CYGARC_REG_PBDR_PB2DR           0x0004
190
#define CYGARC_REG_PBDR_PB1DR           0x0002
191
#define CYGARC_REG_PBDR_PB0DR           0x0001

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.