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

TOMOYO Linux Cross Reference
Linux/arch/mips/dec/wbflush.c

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/mips/dec/wbflush.c (Version linux-6.12-rc7) and /arch/sparc/dec/wbflush.c (Version linux-6.9.12)


  1 /*                                                  1 
  2  * Setup the right wbflush routine for the dif    
  3  *                                                
  4  * Created with information from:                 
  5  *      DECstation 3100 Desktop Workstation Fu    
  6  *      DECstation 5000/200 KN02 System Module    
  7  *      mipsel-linux-objdump --disassemble vmu    
  8  *                                                
  9  * This file is subject to the terms and condi    
 10  * License.  See the file "COPYING" in the mai    
 11  * for more details.                              
 12  *                                                
 13  * Copyright (C) 1998 Harald Koerfgen             
 14  * Copyright (C) 2002 Maciej W. Rozycki           
 15  */                                               
 16                                                   
 17 #include <linux/export.h>                         
 18 #include <linux/init.h>                           
 19                                                   
 20 #include <asm/bootinfo.h>                         
 21 #include <asm/wbflush.h>                          
 22 #include <asm/barrier.h>                          
 23                                                   
 24 static void wbflush_kn01(void);                   
 25 static void wbflush_kn210(void);                  
 26 static void wbflush_mips(void);                   
 27                                                   
 28 void (*__wbflush) (void);                         
 29                                                   
 30 void __init wbflush_setup(void)                   
 31 {                                                 
 32         switch (mips_machtype) {                  
 33         case MACH_DS23100:                        
 34         case MACH_DS5000_200:   /* DS5000 3max    
 35                 __wbflush = wbflush_kn01;         
 36                 break;                            
 37         case MACH_DS5100:       /* DS5100 MIPS    
 38                 __wbflush = wbflush_kn210;        
 39                 break;                            
 40         case MACH_DS5000_1XX:   /* DS5000/100     
 41         case MACH_DS5000_XX:    /* Personal DS    
 42         case MACH_DS5000_2X0:   /* DS5000/240     
 43         case MACH_DS5900:       /* DS5900 bigm    
 44         default:                                  
 45                 __wbflush = wbflush_mips;         
 46                 break;                            
 47         }                                         
 48 }                                                 
 49                                                   
 50 /*                                                
 51  * For the DS3100 and DS5000/200 the R2020/R32    
 52  * as part of Coprocessor 0.                      
 53  */                                               
 54 static void wbflush_kn01(void)                    
 55 {                                                 
 56     asm(".set\tpush\n\t"                          
 57         ".set\tnoreorder\n\t"                     
 58         "1:\tbc0f\t1b\n\t"                        
 59         "nop\n\t"                                 
 60         ".set\tpop");                             
 61 }                                                 
 62                                                   
 63 /*                                                
 64  * For the DS5100 the writeback buffer seems t    
 65  * But CP3 has to enabled first.                  
 66  */                                               
 67 static void wbflush_kn210(void)                   
 68 {                                                 
 69     asm(".set\tpush\n\t"                          
 70         ".set\tnoreorder\n\t"                     
 71         "mfc0\t$2,$12\n\t"                        
 72         "lui\t$3,0x8000\n\t"                      
 73         "or\t$3,$2,$3\n\t"                        
 74         "mtc0\t$3,$12\n\t"                        
 75         "nop\n"                                   
 76         "1:\tbc3f\t1b\n\t"                        
 77         "nop\n\t"                                 
 78         "mtc0\t$2,$12\n\t"                        
 79         "nop\n\t"                                 
 80         ".set\tpop"                               
 81         : : : "$2", "$3");                        
 82 }                                                 
 83                                                   
 84 /*                                                
 85  * I/O ASIC systems use a standard writeback b    
 86  * upon an uncached read.                         
 87  */                                               
 88 static void wbflush_mips(void)                    
 89 {                                                 
 90         __fast_iob();                             
 91 }                                                 
 92 EXPORT_SYMBOL(__wbflush);                         
 93                                                   

~ [ 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