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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [common/] [current/] [include/] [hal_misc.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#ifndef CYGONCE_HAL_HAL_MISC_H
2
#define CYGONCE_HAL_HAL_MISC_H
3
 
4
//=============================================================================
5
//
6
//      hal_misc.h
7
//
8
//      HAL header for miscellaneous helper routines
9
//
10
//=============================================================================
11
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
12
// -------------------------------------------                              
13
// This file is part of eCos, the Embedded Configurable Operating System.   
14
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
15
//
16
// eCos is free software; you can redistribute it and/or modify it under    
17
// the terms of the GNU General Public License as published by the Free     
18
// Software Foundation; either version 2 or (at your option) any later      
19
// version.                                                                 
20
//
21
// eCos is distributed in the hope that it will be useful, but WITHOUT      
22
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
23
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
24
// for more details.                                                        
25
//
26
// You should have received a copy of the GNU General Public License        
27
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
28
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
29
//
30
// As a special exception, if other files instantiate templates or use      
31
// macros or inline functions from this file, or you compile this file      
32
// and link it with other works to produce a work based on this file,       
33
// this file does not by itself cause the resulting work to be covered by   
34
// the GNU General Public License. However the source code for this file    
35
// must still be made available in accordance with section (3) of the GNU   
36
// General Public License v2.                                               
37
//
38
// This exception does not invalidate any other reasons why a work based    
39
// on this file might be covered by the GNU General Public License.         
40
// -------------------------------------------                              
41
// ####ECOSGPLCOPYRIGHTEND####                                              
42
//=============================================================================
43
//#####DESCRIPTIONBEGIN####
44
//
45
// Author(s):   jskov
46
// Contributors:jskov
47
// Date:        2000-06-08
48
// Purpose:     Miscellaneous routines shared between HALs
49
// Usage:       #include <cyg/hal/hal_misc.h>
50
//                           
51
//####DESCRIPTIONEND####
52
//
53
//=============================================================================
54
 
55
#ifndef __ASSEMBLER__
56
#include <cyg/infra/cyg_type.h>         // types & externC
57
 
58
//=============================================================================
59
externC cyg_bool cyg_hal_is_break(char *buf, int size);
60
externC void cyg_hal_user_break( CYG_ADDRWORD *regs );
61
#endif
62
 
63
//=============================================================================
64
 
65
#define BIT0            0x00000001
66
#define BIT1            0x00000002
67
#define BIT2            0x00000004
68
#define BIT3            0x00000008
69
#define BIT4            0x00000010
70
#define BIT5            0x00000020
71
#define BIT6            0x00000040
72
#define BIT7            0x00000080
73
#define BIT8            0x00000100
74
#define BIT9            0x00000200
75
#define BIT10           0x00000400
76
#define BIT11           0x00000800
77
#define BIT12           0x00001000
78
#define BIT13           0x00002000
79
#define BIT14           0x00004000
80
#define BIT15           0x00008000
81
#define BIT16           0x00010000
82
#define BIT17           0x00020000
83
#define BIT18           0x00040000
84
#define BIT19           0x00080000
85
#define BIT20           0x00100000
86
#define BIT21           0x00200000
87
#define BIT22           0x00400000
88
#define BIT23           0x00800000
89
#define BIT24           0x01000000
90
#define BIT25           0x02000000
91
#define BIT26           0x04000000
92
#define BIT27           0x08000000
93
#define BIT28           0x10000000
94
#define BIT29           0x20000000
95
#define BIT30           0x40000000
96
#define BIT31           0x80000000
97
 
98
#define SZ_1K           0x00000400
99
#define SZ_2K           0x00000800
100
#define SZ_4K           0x00001000
101
#define SZ_8K           0x00002000
102
#define SZ_16K          0x00004000
103
#define SZ_32K          0x00008000
104
#define SZ_64K          0x00010000
105
#define SZ_128K         0x00020000
106
#define SZ_256K         0x00040000
107
#define SZ_512K         0x00080000
108
#define SZ_1M           0x00100000
109
#define SZ_2M           0x00200000
110
#define SZ_4M           0x00400000
111
#define SZ_8M           0x00800000
112
#define SZ_16M          0x01000000
113
#define SZ_32M          0x02000000
114
#define SZ_64M          0x04000000
115
#define SZ_128M         0x08000000
116
#define SZ_256M         0x10000000
117
#define SZ_512M         0x20000000
118
#define SZ_1G           0x40000000
119
 
120
//-----------------------------------------------------------------------------
121
#endif // CYGONCE_HAL_HAL_MISC_H
122
// End of hal_misc.h

powered by: WebSVN 2.1.0

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