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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#ifndef CYGONCE_HAL_SD0001_H
2
#define CYGONCE_HAL_SD0001_H
3
 
4
//=============================================================================
5
//
6
//      sd0001.h
7
//
8
//      SD0001 support chip - used with SH/7729
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:        2001-05-25
48
// Purpose:     Support chip
49
// Usage:       Included from <cyg/hal/sh_regs.h>
50
//
51
//              
52
//####DESCRIPTIONEND####
53
//
54
//=============================================================================
55
#ifndef _SD0001_BASE
56
# define _SD0001_BASE 0xb0000000
57
#endif
58
 
59
//-----------------------------------------------------------------------------
60
// System configuration
61
#define CYGARC_REG_SD0001_RESET             (_SD0001_BASE + 0x08)
62
#define CYGARC_REG_SD0001_SDRAM             (_SD0001_BASE + 0x10)
63
#define CYGARC_REG_SD0001_INT_STS1          (_SD0001_BASE + 0x20)
64
#define CYGARC_REG_SD0001_INT_ENABLE        (_SD0001_BASE + 0x24)
65
#define CYGARC_REG_SD0001_INT_STS2          (_SD0001_BASE + 0x28)
66
#define CYGARC_REG_SD0001_PCI_CTL           (_SD0001_BASE + 0x50)
67
 
68
#define CYGARC_REG_PCI_IO_MEMOFFSET         (_SD0001_BASE + 0x58)
69
#define CYGARC_REG_PCI_MEM_MEMOFFSET        (_SD0001_BASE + 0x5c)
70
 
71
 
72
#define CYGARC_REG_PCI_CFG_ADDR             (_SD0001_BASE + 0x60)
73
#define CYGARC_REG_PCI_CFG_DATA             (_SD0001_BASE + 0x64)
74
#define CYGARC_REG_PCI_CFG_CMD              (_SD0001_BASE + 0x68)
75
#define CYGARC_REG_PCI_CFG_FLG              (_SD0001_BASE + 0x6c)
76
 
77
#define CYGARC_REG_PCI_CFG_ADDR_ENABLE      0x80000000
78
#define CYGARC_REG_PCI_CFG_ADDR_BUSNO_shift 16
79
#define CYGARC_REG_PCI_CFG_ADDR_FUNC_shift  8
80
 
81
#define CYGARC_REG_PCI_CFG_CMD_BE3          0x00080000
82
#define CYGARC_REG_PCI_CFG_CMD_BE2          0x00040000
83
#define CYGARC_REG_PCI_CFG_CMD_BE1          0x00020000
84
#define CYGARC_REG_PCI_CFG_CMD_BE0          0x00010000
85
 
86
#define CYGARC_REG_PCI_CFG_CMD_CMDEN        0x00008000
87
 
88
#define CYGARC_REG_PCI_CFG_CMD_IO_WRITE     0x00000300
89
#define CYGARC_REG_PCI_CFG_CMD_IO_READ      0x00000200
90
 
91
#define CYGARC_REG_PCI_CFG_CMD_WT           0x00000008
92
#define CYGARC_REG_PCI_CFG_CMD_RD           0x00000004
93
#define CYGARC_REG_PCI_CFG_CMD_CFWT         0x00000002
94
#define CYGARC_REG_PCI_CFG_CMD_CFRD         0x00000001
95
 
96
 
97
#define CYGARC_REG_PCI_CFG_CMD_WCFG         (CYGARC_REG_PCI_CFG_CMD_BE3|CYGARC_REG_PCI_CFG_CMD_BE2|CYGARC_REG_PCI_CFG_CMD_BE1|CYGARC_REG_PCI_CFG_CMD_BE0|CYGARC_REG_PCI_CFG_CMD_CFWT)
98
#define CYGARC_REG_PCI_CFG_CMD_RCFG         (CYGARC_REG_PCI_CFG_CMD_BE3|CYGARC_REG_PCI_CFG_CMD_BE2|CYGARC_REG_PCI_CFG_CMD_BE1|CYGARC_REG_PCI_CFG_CMD_BE0|CYGARC_REG_PCI_CFG_CMD_CFRD)
99
 
100
 
101
 
102
#define CYGARC_REG_SD0001_PCI_CTL_ENDIAN2          0x40000000
103
#define CYGARC_REG_SD0001_PCI_CTL_MAX_DEADLOCK_CNT 0x0000ff00
104
#define CYGARC_REG_SD0001_PCI_CTL_MAX_RETRY_CNT    0x000000f0
105
 
106
 
107
#define CYGARC_REG_PCI_CFG_FLG_ACTIVE       0x00000001
108
 
109
 
110
#define CYGARC_REG_SD0001_RESET_SWRST       0x80000000
111
#define CYGARC_REG_SD0001_RESET_PCIRST      0x40000000
112
 
113
 
114
#define CYGARC_REG_SD0001_SDRAM_SDKIND_128M 0x80000000
115
#define CYGARC_REG_SD0001_SDRAM_SDSIZE_8    0x10000000
116
#define CYGARC_REG_SD0001_SDRAM_REF_MUMBLE  0x00008000
117
#define CYGARC_REG_SD0001_SDRAM_LMODE_CAS2  0x00000010
118
 
119
#define CYGARC_REG_SD0001_SDRAM_INIT (CYGARC_REG_SD0001_SDRAM_SDKIND_128M\
120
                                      |CYGARC_REG_SD0001_SDRAM_SDSIZE_8\
121
                                      |CYGARC_REG_SD0001_SDRAM_REF_MUMBLE\
122
                                      |CYGARC_REG_SD0001_SDRAM_LMODE_CAS2)
123
 
124
 
125
#define CYGARC_REG_SD0001_INT_EN       0x80000000
126
#define CYGARC_REG_SD0001_INT_INTD     0x00000008
127
#define CYGARC_REG_SD0001_INT_INTC     0x00000004
128
#define CYGARC_REG_SD0001_INT_INTB     0x00000002
129
#define CYGARC_REG_SD0001_INT_INTA     0x00000001
130
 
131
 
132
#endif // CYGONCE_HAL_SD0001_H

powered by: WebSVN 2.1.0

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