at91_mc.h

Go to the documentation of this file.
00001 
00041 /*
00042  * Copyright (C) 2005-2006 by egnite Software GmbH. All rights reserved.
00043  *
00044  * Redistribution and use in source and binary forms, with or without
00045  * modification, are permitted provided that the following conditions
00046  * are met:
00047  *
00048  * 1. Redistributions of source code must retain the above copyright
00049  *    notice, this list of conditions and the following disclaimer.
00050  * 2. Redistributions in binary form must reproduce the above copyright
00051  *    notice, this list of conditions and the following disclaimer in the
00052  *    documentation and/or other materials provided with the distribution.
00053  * 3. Neither the name of the copyright holders nor the names of
00054  *    contributors may be used to endorse or promote products derived
00055  *    from this software without specific prior written permission.
00056  *
00057  * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
00058  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00059  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00060  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
00061  * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00062  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00063  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00064  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00065  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00066  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00067  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00068  * SUCH DAMAGE.
00069  *
00070  * For additional information see http://www.ethernut.de/
00071  */
00072 
00073 #ifndef AT91_MC_H
00074 #define AT91_MC_H
00075 
00076 #define MC_RCR_OFF              0x00000000      
00077 #define MC_RCR      (*((reg32_t *)(MC_BASE + MC_RCR_OFF)))      
00078 #define MC_RCB                           0      
00079 
00080 #define MC_ASR_OFF              0x00000004      
00081 #define MC_ASR      (*((reg32_t *)(MC_BASE + MC_ASR_OFF)))      
00082 #define MC_UNDADD                        0      
00083 #define MC_MISADD                        1      
00084 #define MC_ABTSZ_MASK           0x00000300      
00085 #define MC_ABTSZ_BYTE           0x00000000      
00086 #define MC_ABTSZ_HWORD          0x00000100      
00087 #define MC_ABTSZ_WORD           0x00000200      
00088 #define MC_ABTTYP_MASK          0x00000C00      
00089 #define MC_ABTTYP_DATAR         0x00000000      
00090 #define MC_ABTTYP_DATAW         0x00000400      
00091 #define MC_ABTTYP_FETCH         0x00000800      
00092 #define MC_MST_PDC              0x00020000      
00093 #define MC_MST_ARM              0x00040000      
00094 #define MC_SVMST_PDC            0x02000000      
00095 #define MC_SVMST_ARM            0x04000000      
00096 
00097 #define MC_AASR_OFF             0x00000008      
00098 #define MC_AASR     (*((reg32_t *)(MC_BASE + MC_AASR_OFF)))     
00099 
00100 #define MC_FMR_OFF              0x00000060      
00101 #define MC_FMR      (*((reg32_t *)(MC_BASE + MC_FMR_OFF)))      
00102 #define MC_FRDY                          0      
00103 #define MC_LOCKE                         2      
00104 #define MC_PROGE                         3      
00105 #define MC_NEBP                          7      
00106 #define MC_FWS_MASK             0x00000300      
00107 #define MC_FWS_1R2W             0x00000000      
00108 #define MC_FWS_2R3W             0x00000100      
00109 #define MC_FWS_3R4W             0x00000200      
00110 #define MC_FWS_4R4W             0x00000300      
00111 #define MC_FMCN_MASK            0x00FF0000      
00112 
00113 #define MC_FCR_OFF              0x00000064      
00114 #define MC_FCR      (*((reg32_t *)(MC_BASE + MC_FCR_OFF)))      
00115 #define MC_FCMD_MASK            0x0000000F      
00116 #define MC_FCMD_NOP             0x00000000      
00117 #define MC_FCMD_WP              0x00000001      
00118 #define MC_FCMD_SLB             0x00000002      
00119 #define MC_FCMD_WPL             0x00000003      
00120 #define MC_FCMD_CLB             0x00000004      
00121 #define MC_FCMD_EA              0x00000008      
00122 #define MC_FCMD_SGPB            0x0000000B      
00123 #define MC_FCMD_CGPB            0x0000000D      
00124 #define MC_FCMD_SSB             0x0000000F      
00125 #define MC_PAGEN_MASK           0x0003FF00      
00126 #define MC_KEY                  0x5A000000      
00127 
00128 #define MC_FSR_OFF              0x00000068      
00129 #define MC_FSR      (*((reg32_t *)(MC_BASE + MC_FSR_OFF)))      
00130 #define MC_SECURITY                      4      
00131 
00132 #define MC_GPNVM0                        8      
00133 #define MC_GPNVM1                        9      
00134 #define MC_GPNVM2                       10      
00135 
00136 #define MC_LOCKS0                       16      
00137 #define MC_LOCKS1                       17      
00138 #define MC_LOCKS2                       18      
00139 #define MC_LOCKS3                       19      
00140 #define MC_LOCKS4                       20      
00141 #define MC_LOCKS5                       21      
00142 #define MC_LOCKS6                       22      
00143 #define MC_LOCKS7                       23      
00144 #define MC_LOCKS8                       24      
00145 #define MC_LOCKS9                       25      
00146 #define MC_LOCKS10                      26      
00147 #define MC_LOCKS11                      27      
00148 #define MC_LOCKS12                      28      
00149 #define MC_LOCKS13                      29      
00150 #define MC_LOCKS14                      30      
00151 #define MC_LOCKS15                      31      
00152 
00153 #endif /* AT91_MC_H */