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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [common/] [v2_0/] [include/] [hal_misc.h] - Blame information for rev 279

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

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