Nut/OS  4.10.3
API Reference
at91_ebi.h
Go to the documentation of this file.
00001 #ifndef _ARCH_ARM_AT91_EBI_H_
00002 #define _ARCH_ARM_AT91_EBI_H_
00003 
00004 /*
00005  * Copyright (C) 2005-2006 by egnite Software GmbH. All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions
00009  * are met:
00010  *
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  * 2. Redistributions in binary form must reproduce the above copyright
00014  *    notice, this list of conditions and the following disclaimer in the
00015  *    documentation and/or other materials provided with the distribution.
00016  * 3. Neither the name of the copyright holders nor the names of
00017  *    contributors may be used to endorse or promote products derived
00018  *    from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
00021  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00022  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00023  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
00024  * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00025  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00026  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00027  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00028  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00029  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00030  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00031  * SUCH DAMAGE.
00032  *
00033  * For additional information see http://www.ethernut.de/
00034  */
00035 
00057 
00058 #if defined(EBI_HAS_CSA)
00059 
00060 #define EBI_CSA_OFF             0x00000000      
00061 #define EBI_CSA     (EBI_BASE + EBI_CSA_OFF)    
00063 #define EBI_CS1A                0x00000002      
00064 #define EBI_CS2A                0x00000004      
00065 #define EBI_CS3A                0x00000008      
00066 #define EBI_CS4A                0x00000010      
00067 #define EBI_CS5A                0x00000020      
00068 #define EBI_DBPUC               0x00000100      
00069 #define EBI_NWPC                0x00010000      
00070 #define EBI_DRIVE               0x00030000      
00071 #define EBI_DRIVE_18L           0x00000000      
00072 #define EBI_DRIVE_33L           0x00010000      
00073 #define EBI_DRIVE_18H           0x00020000      
00074 #define EBI_DRIVE_33H           0x00030000      
00076 #else /* EBI_HAS_CSA */
00077 
00080 #define EBI_CSR(i)      (EBI_BASE + i * 4)      
00082 #define EBI_DBW                 0x00000003      
00083 #define EBI_DBW_16              0x00000001      
00084 #define EBI_DBW_8               0x00000002      
00086 #define EBI_NWS                 0x0000001C      
00087 #define EBI_NWS_1               0x00000000      
00088 #define EBI_NWS_2               0x00000004      
00089 #define EBI_NWS_3               0x00000008      
00090 #define EBI_NWS_4               0x0000000C      
00091 #define EBI_NWS_5               0x00000010      
00092 #define EBI_NWS_6               0x00000014      
00093 #define EBI_NWS_7               0x00000018      
00094 #define EBI_NWS_8               0x0000001C      
00096 #define EBI_WSE                 0x00000020      
00098 #define EBI_PAGES               0x00000180      
00099 #define EBI_PAGES_1M            0x00000000      
00100 #define EBI_PAGES_4M            0x00000080      
00101 #define EBI_PAGES_16M           0x00000100      
00102 #define EBI_PAGES_64M           0x00000180      
00104 #define EBI_TDF                 0x00000E00      
00105 #define EBI_TDF_0               0x00000000      
00106 #define EBI_TDF_1               0x00000200      
00107 #define EBI_TDF_2               0x00000400      
00108 #define EBI_TDF_3               0x00000600      
00109 #define EBI_TDF_4               0x00000800      
00110 #define EBI_TDF_5               0x00000A00      
00111 #define EBI_TDF_6               0x00000C00      
00112 #define EBI_TDF_7               0x00000E00      
00114 #define EBI_BAT                 0x00001000      
00115 #define EBI_BAT_BYTE_WRITE      0x00000000      
00116 #define EBI_BAT_BYTE_SELECT     0x00001000      
00118 #define EBI_CSEN                0x00002000      
00120 #define EBI_BA                  0xFFF00000      
00122 
00123 
00125 #define EBI_RCR         (EBI_BASE + 0x20)       
00126 #define EBI_RCB                 0x00000001      
00128 
00129 
00131 #define EBI_MCR         (EBI_BASE + 0x24)       
00132 #define EBI_ALE                 0x00000007      
00133 #define EBI_ALE_16M             0x00000000      
00134 #define EBI_ALE_8M              0x00000004      
00135 #define EBI_ALE_4M              0x00000005      
00136 #define EBI_ALE_2M              0x00000006      
00137 #define EBI_ALE_1M              0x00000007      
00139 #define EBI_DRP                 0x00000010      
00140 #define EBI_DRP_STANDARD        0x00000000      
00141 #define EBI_DRP_EARLY           0x00000010      
00143 
00144 #endif
00145 
00148 #endif                          /* _ARCH_ARM_AT91_EBI_H_ */