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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [cpu/] [mips64orion/] [idtmon.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 
3
Based upon IDT provided code with the following release:
4
 
5
This source code has been made available to you by IDT on an AS-IS
6
basis. Anyone receiving this source is licensed under IDT copyrights
7
to use it in any way he or she deems fit, including copying it,
8
modifying it, compiling it, and redistributing it either with or
9
without modifications.  No license under IDT patents or patent
10
applications is to be implied by the copyright license.
11
 
12
Any user of this software should understand that IDT cannot provide
13
technical support for this software and will not be responsible for
14
any consequences resulting from the use of this software.
15
 
16
Any person who transfers this source code or any derivative work must
17
include the IDT copyright notice, this paragraph, and the preceeding
18
two paragraphs in the transferred software.
19
 
20
COPYRIGHT IDT CORPORATION 1996
21
LICENSED MATERIAL - PROGRAM PROPERTY OF IDT
22
 
23
  $Id: idtmon.h,v 1.2 2001-09-27 11:59:28 chris Exp $
24
*/
25
 
26
/*
27
**      idtmon.h - General header file for the IDT Prom Monitor
28
**
29
**      Copyright 1989  Integrated Device Technology, Inc.
30
**      All Rights Reserved.
31
**
32
**      June 1989 - D.Cahoon
33
*/
34
#ifndef __IDTMON_H__
35
#define __IDTMON_H__
36
 
37
/*
38
** P_STACKSIZE is the size of the Prom Stack.
39
** the prom stack grows downward
40
*/
41
#define P_STACKSIZE     0x2000   /* sets stack size to 8k */
42
 
43
/*
44
** M_BUSWIDTH
45
** Memory bus width (including bank interleaving) in bytes
46
** used when doing memory sizing to prevent bus capacitance
47
** reporting ghost memory locations
48
*/
49
#if defined(CPU_R3000)
50
#define M_BUSWIDTH      8       /* 32bit memory bank interleaved */
51
#endif
52
#if defined(CPU_R4000)
53
#define M_BUSWIDTH      16      /* 64 bit memory bank interleaved */
54
#endif
55
 
56
/*
57
** this is the default value for the number of bytes to add in calculating
58
** the checksums in the checksum command
59
*/
60
#define CHK_SUM_CNT     0x20000      /* number of bytes to calc chksum for */
61
 
62
/*
63
** Monitor modes
64
*/
65
#define MODE_MONITOR    5       /* IDT Prom Monitor is executing */
66
#define MODE_USER       0xa     /* USER is executing */
67
 
68
/*
69
** memory reference widths
70
*/
71
#define SW_BYTE         1
72
#define SW_HALFWORD     2
73
#define SW_WORD         4
74
#define SW_TRIBYTEL     12
75
#define SW_TRIBYTER     20
76
 
77
#ifdef CPU_R4000
78
/*
79
** definitions for select_cache call
80
*/
81
#define DCACHE          0
82
#define ICACHE          1
83
#define SCACHE          2
84
 
85
#endif
86
 
87
#ifndef ASM
88
typedef struct {
89
        unsigned int    mem_size;
90
        unsigned int    icache_size;
91
        unsigned int    dcache_size;
92
#ifdef CPU_R4000
93
    unsigned int    scache_size;
94
#endif
95
 
96
        } mem_config;
97
 
98
#endif
99
 
100
/*
101
** general equates for diagnostics and boolean functions
102
*/
103
#define PASS                    0
104
#define FAIL                    1
105
 
106
#ifndef TRUE
107
#define TRUE                    1
108
#endif  TRUE
109
#ifndef NULL
110
#define NULL                    0
111
#endif  NULL
112
 
113
#ifndef FALSE
114
#define FALSE                   0
115
#endif  FALSE
116
 
117
 
118
/*
119
**      portablility equates
120
*/
121
 
122
#ifndef BOOL
123
#define BOOL    unsigned int
124
#endif  BOOL
125
 
126
#ifndef GLOBAL
127
#define GLOBAL  /**/
128
#endif  GLOBAL
129
 
130
#ifndef MLOCAL
131
#define MLOCAL  static
132
#endif  MLOCAL
133
 
134
 
135
#ifdef XDS
136
#define CONST const
137
#else
138
#define CONST
139
#endif XDS 
140
 
141
#define u_char  unsigned char
142
#define u_short unsigned short
143
#define u_int   unsigned int
144
/*
145
** assembly instructions for compatability between xds and mips
146
*/
147
#ifndef XDS
148
#define sllv sll
149
#define srlv srl
150
#endif XDS
151
/*
152
**      debugger macros for assembly language routines. Allows the
153
**      programmer to set up the necessary stack frame info
154
**      required by debuggers to do stack traces.
155
*/
156
 
157
#ifndef XDS 
158
#define FRAME(name,frm_reg,offset,ret_reg)      \
159
        .globl  name;                           \
160
        .ent    name;                           \
161
name:;                                          \
162
        .frame  frm_reg,offset,ret_reg
163
#define ENDFRAME(name)                          \
164
        .end name
165
#else
166
#define FRAME(name,frm_reg,offset,ret_reg)      \
167
        .globl  _##name;\
168
_##name:
169
#define ENDFRAME(name)
170
#endif  XDS
171
#endif /* __IDTMON_H__ */

powered by: WebSVN 2.1.0

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