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_ubc.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//=============================================================================
2
//
3
//      mod_regs_ubc.h
4
//
5
//      UBC (user break 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
// User Break Control
53
 
54
#define CYGARC_REG_BARA                 0xffffff00 // 32 bit
55
#define CYGARC_REG_BAMRA                0xffffff04 // 8 bit (v1) / 32 bit
56
#define CYGARC_REG_BBRA                 0xffffff08 // 16 bit
57
 
58
#define CYGARC_REG_BARB                 0xffffff20 // 32 bit
59
#define CYGARC_REG_BAMRB                0xffffff24 // 8 bit (v1) / 32 bit
60
#define CYGARC_REG_BBRB                 0xffffff28 // 16 bit
61
 
62
#define CYGARC_REG_BARC                 0xffffff40 // 32 bit
63
#define CYGARC_REG_BAMRC                0xffffff44 // 8 bit (v1) / 32 bit
64
#define CYGARC_REG_BBRC                 0xffffff48 // 16 bit
65
 
66
#define CYGARC_REG_BARD                 0xffffff60 // 32 bit
67
#define CYGARC_REG_BAMRD                0xffffff64 // 8 bit (v1) / 32 bit
68
#define CYGARC_REG_BBRD                 0xffffff68 // 16 bit
69
 
70
 
71
#define CYGARC_REG_BRCR                 0xffffff30 // 32 bit
72
 
73
#ifdef CYGARC_SH_MOD_UBC
74
 
75
#if (CYGARC_SH_MOD_UBC == 1)
76
#else
77
# define CYGARC_REG_BRCR_CMFCA          0x80000000
78
# define CYGARC_REG_BRCR_CMFPA          0x40000000
79
# define CYGARC_REG_BRCR_PCTE           0x08000000 // PC trace enable
80
# define CYGARC_REG_BRCR_PCBA           0x04000000 // post execute
81
# define CYGARC_REG_BRCR_CMFCB          0x00800000
82
# define CYGARC_REG_BRCR_CMFPB          0x00400000
83
# define CYGARC_REG_BRCR_SEQ1           0x00100000 // A and B channel in sequence
84
# define CYGARC_REG_BRCR_SEQ0           0x00080000 // A and B channel in sequence
85
# define CYGARC_REG_BRCR_PCBB           0x00040000
86
 
87
# define CYGARC_REG_BRCR_CMFCC          0x00008000
88
# define CYGARC_REG_BRCR_CMFPC          0x00004000
89
# define CYGARC_REG_BRCR_ETBEC          0x00002000
90
# define CYGARC_REG_BRCR_DBEC           0x00000800
91
# define CYGARC_REG_BRCR_PCBC           0x00000400
92
# define CYGARC_REG_BRCR_CMFCD          0x00000080
93
# define CYGARC_REG_BRCR_CMFPD          0x00000040
94
# define CYGARC_REG_BRCR_ETBED          0x00000020
95
# define CYGARC_REG_BRCR_DBED           0x00000008
96
# define CYGARC_REG_BRCR_PCBD           0x00000004
97
 
98
# define CYGARC_REG_BRCR_ONE_STEP       (CYGARC_REG_BRCR_PCBA)
99
#endif
100
 
101
 
102
#if (CYGARC_SH_MOD_UBC == 1)
103
#else
104
// mask is fully configurable in other versions of the UBC
105
#endif
106
 
107
#define CYGARC_REG_BBRA_DFETCH          0x0020 // Break on DFETCH
108
#define CYGARC_REG_BBRA_IFETCH          0x0010 // Break on IFETCH
109
#define CYGARC_REG_BBRA_WRITE           0x0008 // Break on WRITE
110
#define CYGARC_REG_BBRA_READ            0x0004 // Break on READ
111
#define CYGARC_REG_BBRA_SIZE_LONG       0x0003 // Break on long access
112
#define CYGARC_REG_BBRA_SIZE_WORD       0x0002 // Break on word access
113
#define CYGARC_REG_BBRA_SIZE_BYTE       0x0001 // Break on byte access
114
#define CYGARC_REG_BBRA_SIZE_ANY        0x0000 // Break on any size
115
 
116
 
117
//----------------------------------------------------------------------------
118
// Other types
119
#if (CYGARC_SH_MOD_UBC == 2)
120
#define CYGARC_REG_BETR                 0xffffff9c // 16 bit
121
#define CYGARC_REG_BRSR                 0xffffffac // 32 bit
122
#define CYGARC_REG_BRDR                 0xffffffbc // 32 bit
123
 
124
#define CYGARC_REG_BBRA_DMA             0x0080 // Break on DMAC cycle
125
#define CYGARC_REG_BBRA_CPU             0x0040 // Break on CPU cycle
126
#endif
127
 
128
#endif // CYGARC_SH_MOD_UBC

powered by: WebSVN 2.1.0

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