comparison packages/hal/sh/sh3/current/include/mod_7729.h @ 134:d2f49caf9e38 ecos-sw-2000-11-03

Merge from eCos master repository on 2000-11-03-09:00:49-GMT
author jlarmour
date Fri, 03 Nov 2000 21:17:40 +0000
parents
children 0d0f03f76f6a
comparison
equal deleted inserted replaced
133:98d71f4d8243 134:d2f49caf9e38
1 #ifndef CYGONCE_HAL_MOD_77xx_H
2 #define CYGONCE_HAL_MOD_77xx_H
3
4 //=============================================================================
5 //
6 // mod_7729.h
7 //
8 // List modules available on CPU
9 //
10 //=============================================================================
11 //####COPYRIGHTBEGIN####
12 //
13 // -------------------------------------------
14 // The contents of this file are subject to the Red Hat eCos Public License
15 // Version 1.1 (the "License"); you may not use this file except in
16 // compliance with the License. You may obtain a copy of the License at
17 // http://www.redhat.com/
18 //
19 // Software distributed under the License is distributed on an "AS IS"
20 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
21 // License for the specific language governing rights and limitations under
22 // the License.
23 //
24 // The Original Code is eCos - Embedded Configurable Operating System,
25 // released September 30, 1998.
26 //
27 // The Initial Developer of the Original Code is Red Hat.
28 // Portions created by Red Hat are
29 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
30 // All Rights Reserved.
31 // -------------------------------------------
32 //
33 //####COPYRIGHTEND####
34 //=============================================================================
35 //#####DESCRIPTIONBEGIN####
36 //
37 // Author(s): jskov
38 // Contributors:jskov
39 // Date: 2000-08-29
40 // Purpose: Define modules (and versions) available on this CPU.
41 // Usage: Included from <cyg/hal/sh_regs.h>
42 //
43 //
44 //####DESCRIPTIONEND####
45 //
46 //=============================================================================
47
48 //-----------------------------------------------------------------------------
49 // Modules provided by the CPU
50
51 #define CYGARC_SH_MOD_BCN 2
52 #define CYGARC_SH_MOD_CPG 3
53 #define CYGARC_SH_MOD_INTC 3
54 #define CYGARC_SH_MOD_IRDA 1
55 #define CYGARC_SH_MOD_PFC 1
56 #define CYGARC_SH_MOD_SCI 1
57 #define CYGARC_SH_MOD_SCIF 1
58 #define CYGARC_SH_MOD_UBC 3
59
60 //-----------------------------------------------------------------------------
61 // Extra details for Cache Module (CAC)
62
63 // Cache dimenions - one unified cache
64 #define CYGARC_SH_MOD_CAC_SIZE 16384 // Size of cache in bytes
65 #define CYGARC_SH_MOD_CAC_LINE_SIZE 16 // Size of a cache line
66 #define CYGARC_SH_MOD_CAC_WAYS 4 // Associativity of the cache
67
68 // Cache addressing information
69 // way: bits 13 - 12
70 // entry: bits 11 - 4
71 #define CYGARC_SH_MOD_CAC_ADDRESS_BASE 0xf0000000
72 #define CYGARC_SH_MOD_CAC_ADDRESS_TOP 0xf0004000
73 #define CYGARC_SH_MOD_CAC_ADDRESS_STEP 0x00000010
74 // U : bit 1
75 // V : bit 0
76 // Writing zero to both forces a flush of the line if it is dirty.
77 #define CYGARC_SH_MOD_CAC_ADDRESS_FLUSH 0x00000000
78
79 //-----------------------------------------------------------------------------
80 // Extra details for interrupt handling
81 #define CYGARC_SH_SOFTWARE_IP_UPDATE
82
83 #endif // CYGONCE_HAL_MOD_77xx_H