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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//=============================================================================
2
//
3
//      mod_regs_intc_2.h
4
//
5
//      INTC (interrupt controller) Module (type 2) 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-15
46
//              
47
//####DESCRIPTIONEND####
48
//
49
//=============================================================================
50
 
51
// NOTE: This'll need restructuring as other variants are added. Type 1 should
52
// be fewest common registers.
53
 
54
//--------------------------------------------------------------------------
55
// Interrupt registers, module type 1
56
#define CYGARC_REG_IPRA                   0xffff8348
57
#define CYGARC_REG_IPRB                   0xffff834a
58
#define CYGARC_REG_IPRC                   0xffff834c
59
#define CYGARC_REG_IPRD                   0xffff834e
60
#define CYGARC_REG_IPRE                   0xffff8350
61
#define CYGARC_REG_IPRF                   0xffff8352
62
#define CYGARC_REG_IPRG                   0xffff8354
63
#define CYGARC_REG_IPRH                   0xffff8356
64
#define CYGARC_REG_ICR                    0xffff8358
65
#define CYGARC_REG_ISR                    0xffff835a
66
 
67
 
68
#define CYGARC_REG_ICR_NMIL               0x8000
69
#define CYGARC_REG_ICR_NMIE               0x0100
70
#define CYGARC_REG_ICR_IRQ0S              0x0080
71
#define CYGARC_REG_ICR_IRQ1S              0x0040
72
#define CYGARC_REG_ICR_IRQ2S              0x0020
73
#define CYGARC_REG_ICR_IRQ3S              0x0010
74
#define CYGARC_REG_ICR_IRQ4S              0x0008
75
#define CYGARC_REG_ICR_IRQ5S              0x0004
76
#define CYGARC_REG_ICR_IRQ6S              0x0002
77
#define CYGARC_REG_ICR_IRQ7S              0x0001
78
 
79
#define CYGARC_REG_IPRA_IRQ0_MASK         0xf000
80
#define CYGARC_REG_IPRA_IRQ0_PRI1         0x1000
81
#define CYGARC_REG_IPRA_IRQ1_MASK         0x0f00
82
#define CYGARC_REG_IPRA_IRQ1_PRI1         0x0100
83
#define CYGARC_REG_IPRA_IRQ2_MASK         0x00f0
84
#define CYGARC_REG_IPRA_IRQ2_PRI1         0x0010
85
#define CYGARC_REG_IPRA_IRQ3_MASK         0x000f
86
#define CYGARC_REG_IPRA_IRQ3_PRI1         0x0001
87
 
88
#define CYGARC_REG_IPRB_IRQ4_MASK         0xf000
89
#define CYGARC_REG_IPRB_IRQ4_PRI1         0x1000
90
#define CYGARC_REG_IPRB_IRQ5_MASK         0x0f00
91
#define CYGARC_REG_IPRB_IRQ5_PRI1         0x0100
92
#define CYGARC_REG_IPRB_IRQ6_MASK         0x00f0
93
#define CYGARC_REG_IPRB_IRQ6_PRI1         0x0010
94
#define CYGARC_REG_IPRB_IRQ7_MASK         0x000f
95
#define CYGARC_REG_IPRB_IRQ7_PRI1         0x0001
96
 
97
#define CYGARC_REG_IPRC_DMAC0_MASK         0xf000
98
#define CYGARC_REG_IPRC_DMAC0_PRI1         0x1000
99
#define CYGARC_REG_IPRC_DMAC1_MASK         0x0f00
100
#define CYGARC_REG_IPRC_DMAC1_PRI1         0x0100
101
#define CYGARC_REG_IPRC_DMAC2_MASK         0x00f0
102
#define CYGARC_REG_IPRC_DMAC2_PRI1         0x0010
103
#define CYGARC_REG_IPRC_DMAC3_MASK         0x000f
104
#define CYGARC_REG_IPRC_DMAC3_PRI1         0x0001
105
 
106
#define CYGARC_REG_IPRD_MTU0A_MASK         0xf000
107
#define CYGARC_REG_IPRD_MTU0A_PRI1         0x1000
108
#define CYGARC_REG_IPRD_MTU0B_MASK         0x0f00
109
#define CYGARC_REG_IPRD_MTU0B_PRI1         0x0100
110
#define CYGARC_REG_IPRD_MTU1A_MASK         0x00f0
111
#define CYGARC_REG_IPRD_MTU1A_PRI1         0x0010
112
#define CYGARC_REG_IPRD_MTU1B_MASK         0x000f
113
#define CYGARC_REG_IPRD_MTU1B_PRI1         0x0001
114
 
115
#define CYGARC_REG_IPRE_MTU2A_MASK         0xf000
116
#define CYGARC_REG_IPRE_MTU2A_PRI1         0x1000
117
#define CYGARC_REG_IPRE_MTU2B_MASK         0x0f00
118
#define CYGARC_REG_IPRE_MTU2B_PRI1         0x0100
119
#define CYGARC_REG_IPRE_MTU3A_MASK         0x00f0
120
#define CYGARC_REG_IPRE_MTU3A_PRI1         0x0010
121
#define CYGARC_REG_IPRE_MTU3B_MASK         0x000f
122
#define CYGARC_REG_IPRE_MTU3B_PRI1         0x0001
123
 
124
#define CYGARC_REG_IPRF_MTU4A_MASK         0xf000
125
#define CYGARC_REG_IPRF_MTU4A_PRI1         0x1000
126
#define CYGARC_REG_IPRF_MTU4B_MASK         0x0f00
127
#define CYGARC_REG_IPRF_MTU4B_PRI1         0x0100
128
#define CYGARC_REG_IPRF_SCI0_MASK          0x00f0
129
#define CYGARC_REG_IPRF_SCI0_PRI1          0x0010
130
#define CYGARC_REG_IPRF_SCI1_MASK          0x000f
131
#define CYGARC_REG_IPRF_SCI1_PRI1          0x0001
132
 
133
#define CYGARC_REG_IPRG_AD_MASK            0xf000
134
#define CYGARC_REG_IPRG_AD_PRI1            0x1000
135
#define CYGARC_REG_IPRG_DTC_MASK           0x0f00
136
#define CYGARC_REG_IPRG_DTC_PRI1           0x0100
137
#define CYGARC_REG_IPRG_CMT0_MASK          0x00f0
138
#define CYGARC_REG_IPRG_CMT0_PRI1          0x0010
139
#define CYGARC_REG_IPRG_CMT1_MASK          0x000f
140
#define CYGARC_REG_IPRG_CMT1_PRI1          0x0001
141
 
142
#define CYGARC_REG_IPRH_WDT_MASK           0xf000
143
#define CYGARC_REG_IPRH_WDT_PRI1           0x1000
144
#define CYGARC_REG_IPRH_IO_MASK            0x0f00
145
#define CYGARC_REG_IPRH_IO_PRI1            0x0100
146
 
147
// The (initial) IRQ mode
148
#define CYGARC_REG_ICR_INIT 0x0000
149
 
150
#define CYGARC_REG_ISR_IRQ0F           0x0080
151
#define CYGARC_REG_ISR_IRQ1F           0x0040
152
#define CYGARC_REG_ISR_IRQ2F           0x0020
153
#define CYGARC_REG_ISR_IRQ3F           0x0010
154
#define CYGARC_REG_ISR_IRQ4F           0x0008
155
#define CYGARC_REG_ISR_IRQ5F           0x0004
156
#define CYGARC_REG_ISR_IRQ6F           0x0002
157
#define CYGARC_REG_ISR_IRQ7F           0x0001

powered by: WebSVN 2.1.0

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