~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/m68k/include/asm/m54xxacr.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/m68k/include/asm/m54xxacr.h (Architecture alpha) and /arch/ppc/include/asm-ppc/m54xxacr.h (Architecture ppc)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  * Bit definitions for the MCF54xx ACR and CAC    
  4  */                                               
  5                                                   
  6 #ifndef m54xxacr_h                                
  7 #define m54xxacr_h                                
  8                                                   
  9 /*                                                
 10  *      Define the Cache register flags.          
 11  */                                               
 12 #define CACR_DEC        0x80000000      /* Ena    
 13 #define CACR_DWP        0x40000000      /* Dat    
 14 #define CACR_DESB       0x20000000      /* Ena    
 15 #define CACR_DDPI       0x10000000      /* Dis    
 16 #define CACR_DHCLK      0x08000000      /* Hal    
 17 #define CACR_DDCM_WT    0x00000000      /* Wri    
 18 #define CACR_DDCM_CP    0x02000000      /* Cop    
 19 #define CACR_DDCM_P     0x04000000      /* No     
 20 #define CACR_DDCM_IMP   0x06000000      /* No     
 21 #define CACR_DCINVA     0x01000000      /* Inv    
 22 #define CACR_BEC        0x00080000      /* Ena    
 23 #define CACR_BCINVA     0x00040000      /* Inv    
 24 #define CACR_IEC        0x00008000      /* Ena    
 25 #define CACR_DNFB       0x00002000      /* Inh    
 26 #define CACR_IDPI       0x00001000      /* Dis    
 27 #define CACR_IHLCK      0x00000800      /* Ins    
 28 #define CACR_IDCM       0x00000400      /* Ins    
 29 #define CACR_ICINVA     0x00000100      /* Inv    
 30 #define CACR_EUSP       0x00000020      /* Ena    
 31                                                   
 32 #define ACR_BASE_POS    24              /* Add    
 33 #define ACR_MASK_POS    16              /* Add    
 34 #define ACR_ENABLE      0x00008000      /* Ena    
 35 #define ACR_USER        0x00000000      /* Use    
 36 #define ACR_SUPER       0x00002000      /* Sup    
 37 #define ACR_ANY         0x00004000      /* Mat    
 38 #define ACR_CM_WT       0x00000000      /* Wri    
 39 #define ACR_CM_CP       0x00000020      /* Cop    
 40 #define ACR_CM_OFF_PRE  0x00000040      /* No     
 41 #define ACR_CM_OFF_IMP  0x00000060      /* No     
 42 #define ACR_CM          0x00000060      /* Cac    
 43 #define ACR_SP          0x00000008      /* Sup    
 44 #define ACR_WPROTECT    0x00000004      /* Wri    
 45                                                   
 46 #define ACR_BA(x)       ((x) & 0xff000000)        
 47 #define ACR_ADMSK(x)    ((((x) - 1) & 0xff0000    
 48                                                   
 49 #if defined(CONFIG_M5407)                         
 50                                                   
 51 #define ICACHE_SIZE 0x4000      /* instruction    
 52 #define DCACHE_SIZE 0x2000      /* data - 8k *    
 53                                                   
 54 #elif defined(CONFIG_M54xx)                       
 55                                                   
 56 #define ICACHE_SIZE 0x8000      /* instruction    
 57 #define DCACHE_SIZE 0x8000      /* data - 32k     
 58                                                   
 59 #elif defined(CONFIG_M5441x)                      
 60                                                   
 61 #define ICACHE_SIZE 0x2000      /* instruction    
 62 #define DCACHE_SIZE 0x2000      /* data - 8k *    
 63 #endif                                            
 64                                                   
 65 #define CACHE_LINE_SIZE 0x0010  /* 16 bytes */    
 66 #define CACHE_WAYS 4            /* 4 ways */      
 67                                                   
 68 #define ICACHE_SET_MASK ((ICACHE_SIZE / 64 - 1    
 69 #define DCACHE_SET_MASK ((DCACHE_SIZE / 64 - 1    
 70 #define ICACHE_MAX_ADDR ICACHE_SET_MASK           
 71 #define DCACHE_MAX_ADDR DCACHE_SET_MASK           
 72                                                   
 73 /*                                                
 74  *      Version 4 cores have a true harvard st    
 75  *      and data cache. Enable data and instru    
 76  *      buffers and branch accelerator.           
 77  */                                               
 78 /* attention : enabling CACR_DESB requires a "    
 79 /* use '+' instead of '|' for assembler's sake    
 80                                                   
 81         /* Enable data cache */                   
 82         /* Enable data store buffer */            
 83         /* outside ACRs : No cache, precise */    
 84         /* Enable instruction+branch caches */    
 85 #if defined(CONFIG_M5407)                         
 86 #define CACHE_MODE (CACR_DEC+CACR_DESB+CACR_DD    
 87 #else                                             
 88 #define CACHE_MODE (CACR_DEC+CACR_DESB+CACR_DD    
 89 #endif                                            
 90 #define CACHE_INIT (CACR_DCINVA+CACR_BCINVA+CA    
 91                                                   
 92 #if defined(CONFIG_MMU)                           
 93 /*                                                
 94  *      If running with the MMU enabled then w    
 95  *      register region as non-cacheable. And     
 96  *      cacheable and supervisor access only.     
 97  */                                               
 98 #define ACR0_MODE       (ACR_BA(IOMEMBASE)+ACR    
 99                          ACR_ENABLE+ACR_SUPER+    
100 #if defined(CONFIG_CACHE_COPYBACK)                
101 #define ACR1_MODE       (ACR_BA(CONFIG_RAMBASE    
102                          ACR_ENABLE+ACR_SUPER+    
103 #else                                             
104 #define ACR1_MODE       (ACR_BA(CONFIG_RAMBASE    
105                          ACR_ENABLE+ACR_SUPER+    
106 #endif                                            
107 #define ACR2_MODE       0                         
108 #define ACR3_MODE       (ACR_BA(CONFIG_RAMBASE    
109                          ACR_ENABLE+ACR_SUPER+    
110                                                   
111 #else                                             
112                                                   
113 /*                                                
114  *      For the non-MMU enabled case we map al    
115  */                                               
116 #if defined(CONFIG_CACHE_COPYBACK)                
117 #define DATA_CACHE_MODE (ACR_ENABLE+ACR_ANY+AC    
118 #else                                             
119 #define DATA_CACHE_MODE (ACR_ENABLE+ACR_ANY+AC    
120 #endif                                            
121 #define INSN_CACHE_MODE (ACR_ENABLE+ACR_ANY)      
122                                                   
123 #define CACHE_INVALIDATE  (CACHE_MODE+CACR_DCI    
124 #define CACHE_INVALIDATEI (CACHE_MODE+CACR_BCI    
125 #define CACHE_INVALIDATED (CACHE_MODE+CACR_DCI    
126 #define ACR0_MODE       (0x000f0000+DATA_CACHE    
127 #define ACR1_MODE       0                         
128 #define ACR2_MODE       (0x000f0000+INSN_CACHE    
129 #define ACR3_MODE       0                         
130                                                   
131 #if ((DATA_CACHE_MODE & ACR_CM) == ACR_CM_CP)     
132 /* Copyback cache mode must push dirty cache l    
133 #define CACHE_PUSH                                
134 #endif                                            
135                                                   
136 #endif /* CONFIG_MMU */                           
137 #endif  /* m54xxacr_h */                          
138                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php