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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [sh/] [sh4/] [current/] [include/] [mod_regs_intc.h] - Blame information for rev 817

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

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

powered by: WebSVN 2.1.0

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