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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [sh/] [sh2/] [v2_0/] [include/] [mod_regs_pfc.h] - Blame information for rev 174

Details | Compare with Previous | View Log

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