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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [sh/] [sh4/] [v2_0/] [include/] [mod_regs_intc.h] - Blame information for rev 584

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

Line No. Rev Author Line
1 27 unneback
//=============================================================================
2
//
3
//      mod_regs_intc.h
4
//
5
//      INTC (interrupt 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:        2000-10-30
46
//              
47
//####DESCRIPTIONEND####
48
//
49
//=============================================================================
50
 
51
//--------------------------------------------------------------------------
52
// Interrupt registers, module type 1
53
#define CYGARC_REG_EXCEVT               0xFF000024
54
#define CYGARC_REG_INTEVT               0xFF000028
55
 
56
#define CYGARC_REG_ICR                  0xFFD00000
57
#define CYGARC_REG_IPRA                 0xFFD00004
58
#define CYGARC_REG_IPRB                 0xFFD00008
59
#define CYGARC_REG_IPRC                 0xFFD0000C
60
 
61
#define CYGARC_REG_ICR_NMIL             0x8000
62
#define CYGARC_REG_ICR_MAI              0x4000
63
#define CYGARC_REG_ICR_NMIB             0x0200
64
#define CYGARC_REG_ICR_NMIE             0x0100
65
#define CYGARC_REG_ICR_IRLM             0x0080
66
#define CYGARC_REG_ICR_SRST             0x0001
67
 
68
#define CYGARC_REG_IPRA_TMU0_MASK       0xf000
69
#define CYGARC_REG_IPRA_TMU0_PRI1       0x1000
70
#define CYGARC_REG_IPRA_TMU1_MASK       0x0f00
71
#define CYGARC_REG_IPRA_TMU1_PRI1       0x0100
72
#define CYGARC_REG_IPRA_TMU2_MASK       0x00f0
73
#define CYGARC_REG_IPRA_TMU2_PRI1       0x0010
74
#define CYGARC_REG_IPRA_RTC_MASK        0x000f
75
#define CYGARC_REG_IPRA_RTC_PRI1        0x0001
76
 
77
#define CYGARC_REG_IPRB_WDT_MASK        0xf000
78
#define CYGARC_REG_IPRB_WDT_PRI1        0x1000
79
#define CYGARC_REG_IPRB_REF_MASK        0x0f00
80
#define CYGARC_REG_IPRB_REF_PRI1        0x0100
81
#define CYGARC_REG_IPRB_SCI_MASK        0x00f0
82
#define CYGARC_REG_IPRB_SCI_PRI1        0x0010
83
 
84
#define CYGARC_REG_IPRC_GPIO_MASK       0xF000
85
#define CYGARC_REG_IPRC_GPIO_PRI1       0x1000
86
#define CYGARC_REG_IPRC_DMAC_MASK       0x0F00
87
#define CYGARC_REG_IPRC_DMAC_PRI1       0x0100
88
#define CYGARC_REG_IPRC_SCIF_MASK       0x00F0
89
#define CYGARC_REG_IPRC_SCIF_PRI1       0x0010
90
#define CYGARC_REG_IPRC_HUDI_MASK       0x000F
91
#define CYGARC_REG_IPRC_HUDI_PRI1       0x0001
92
 
93
#if (CYGARC_SH_MOD_INTC == 2)
94
#define CYGARC_REG_IPRD                  0xffd00010
95
#define CYGARC_REG_INTPRI00              0xfe080000
96
#define CYGARC_REG_INTREQ00              0xfe080020
97
#define CYGARC_REG_INTMSK00              0xfe080040
98
#define CYGARC_REG_INTMSKCLR00           0xfe080060
99
 
100
#ifndef CYGHWR_HAL_SH_IRQ_USE_IRQLVL
101
#define CYGARC_REG_IPRD_IRL0_MASK        0xf000
102
#define CYGARC_REG_IPRD_IRL0_PRI1        0x1000
103
#define CYGARC_REG_IPRD_IRL1_MASK        0x0f00
104
#define CYGARC_REG_IPRD_IRL1_PRI1        0x0100
105
#define CYGARC_REG_IPRD_IRL2_MASK        0x00f0
106
#define CYGARC_REG_IPRD_IRL2_PRI1        0x0010
107
#define CYGARC_REG_IPRD_IRL3_MASK        0x000f
108
#define CYGARC_REG_IPRD_IRL3_PRI1        0x0001
109
#endif
110
 
111
#define CYGARC_REG_INTPRI00_PCISERR_MASK 0x0000000f
112
#define CYGARC_REG_INTPRI00_PCISERR_PRI1 0x00000001
113
#define CYGARC_REG_INTPRI00_PCIERR_MASK  0x000000f0
114
#define CYGARC_REG_INTPRI00_PCIERR_PRI1  0x00000010
115
#define CYGARC_REG_INTPRI00_TUNI3_MASK   0x00000f00
116
#define CYGARC_REG_INTPRI00_TUNI3_PRI1   0x00000100
117
#define CYGARC_REG_INTPRI00_TUNI4_MASK   0x0000f000
118
#define CYGARC_REG_INTPRI00_TUNI4_PRI1   0x00001000
119
 
120
#endif
121
 
122
// The (initial) IRQ mode is controlled by configuration.
123
#ifdef CYGHWR_HAL_SH_IRQ_USE_IRQLVL
124
# define CYGARC_REG_ICR_INIT 0x0000
125
#else
126
# define CYGARC_REG_ICR_INIT (CYGARC_REG_ICR_IRLM)
127
#endif

powered by: WebSVN 2.1.0

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