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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [powerpc/] [ppc60x/] [v2_0/] [include/] [var_regs.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef CYGONCE_HAL_VAR_REGS_H
2
#define CYGONCE_HAL_VAR_REGS_H
3
 
4
//==========================================================================
5
//
6
//      var_regs.h
7
//
8
//      PowerPC 60x variant CPU definitions
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-02-04
49
// Purpose:      Provide PPC60x register definitions
50
// Description:  Provide PPC60x register definitions
51
//               The short difinitions (sans CYGARC_REG_) are exported only
52
//               if CYGARC_HAL_COMMON_EXPORT_CPU_MACROS is defined.
53
// Usage:        Included via the acrhitecture register header:
54
//               #include <cyg/hal/ppc_regs.h>
55
//               ...
56
//              
57
//
58
//####DESCRIPTIONEND####
59
//
60
//==========================================================================
61
 
62
#include <cyg/hal/plf_regs.h>  // Get any platform specifics
63
 
64
//--------------------------------------------------------------------------
65
// Cache
66
#define CYGARC_REG_HID0   1008
67
#define _HID0       CYGARC_REG_HID0
68
#define _HID0_EMCP  0x80000000  // Enable machine check
69
#define _HID0_EBA   0x20000000  // Enable bus address parity
70
#define _HID0_EBD   0x10000000  // Enable bus data parity
71
#define _HID0_BCLK  0x08000000
72
#define _HID0_EICE  0x04000000
73
#define _HID0_ECLK  0x02000000
74
#define _HID0_PAR   0x01000000
75
#define _HID0_DOZE  0x00800000
76
#define _HID0_NAP   0x00400000
77
#define _HID0_SLEEP 0x00200000
78
#define _HID0_DPM   0x00100000
79
#define _HID0_ICE   0x00008000  // Enable Instruction Cache
80
#define _HID0_DCE   0x00004000  // Enable Data Cache
81
#define _HID0_ILOCK 0x00002000  // Instruction Cache Lock
82
#define _HID0_DLOCK 0x00001000  // Data Cache Lock
83
#define _HID0_ICFI  0x00000800  // Instruction Cache [flash] Invalidate
84
#define _HID0_DCFI  0x00000400  // Data Cache [flash] Invalidate
85
#define _HID0_IFEM  0x00000080
86
#define _HID0_FBIOB 0x00000010
87
#define _HID0_ABE   0x00000008
88
#define _HID0_NOOPT 0x00000001
89
 
90
//--------------------------------------------------------------------------
91
// BATs
92
#ifdef CYGARC_HAL_COMMON_EXPORT_CPU_MACROS
93
#define IBAT0U          528
94
#define IBAT0L          529
95
#define IBAT1U          530
96
#define IBAT1L          531
97
#define IBAT2U          532
98
#define IBAT2L          533
99
#define IBAT3U          534
100
#define IBAT3L          535
101
 
102
#define DBAT0U          536
103
#define DBAT0L          537
104
#define DBAT1U          538
105
#define DBAT1L          539
106
#define DBAT2U          540
107
#define DBAT2L          541
108
#define DBAT3U          542
109
#define DBAT3L          543
110
 
111
#define UBAT_BEPIMASK   0xfffe0000      // effective address mask
112
#define UBAT_BLMASK     0x00001ffc      // block length mask
113
#define UBAT_VS         0x00000002      // supervisor mode valid bit
114
#define UBAT_VP         0x00000001      // problem mode valid bit
115
 
116
#define LBAT_BRPNMASK   0xfffe0000      // real address mask
117
#define LBAT_W          0x00000040      // write-through
118
#define LBAT_I          0x00000020      // caching-inhibited
119
#define LBAT_M          0x00000010      // memory coherence
120
#define LBAT_G          0x00000008      // guarded
121
 
122
#define LBAT_PP_NA      0x00000000      // no access
123
#define LBAT_PP_RO      0x00000001      // read-only
124
#define LBAT_PP_RW      0x00000002      // read/write
125
#endif // ifdef CYGARC_HAL_COMMON_EXPORT_CPU_MACROS
126
 
127
//-----------------------------------------------------------------------------
128
#endif // ifdef CYGONCE_HAL_VAR_REGS_H
129
// End of var_regs.h

powered by: WebSVN 2.1.0

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