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

TOMOYO Linux Cross Reference
Linux/arch/sparc/include/asm/ecc.h

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/sparc/include/asm/ecc.h (Version linux-6.12-rc7) and /arch/i386/include/asm-i386/ecc.h (Version linux-4.11.12)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  * ecc.h: Definitions and defines for the exte    
  4  *        controller on the sun4m.                
  5  *                                                
  6  * Copyright (C) 1995 David S. Miller (davem@c    
  7  */                                               
  8                                                   
  9 #ifndef _SPARC_ECC_H                              
 10 #define _SPARC_ECC_H                              
 11                                                   
 12 /* These registers are accessed through the SR    
 13 #define ECC_ENABLE     0x00000000       /* ECC    
 14 #define ECC_FSTATUS    0x00000008       /* ECC    
 15 #define ECC_FADDR      0x00000010       /* ECC    
 16 #define ECC_DIGNOSTIC  0x00000018       /* ECC    
 17 #define ECC_MBAENAB    0x00000020       /* MBu    
 18 #define ECC_DMESG      0x00001000       /* Dia    
 19                                                   
 20 /* ECC MBus Arbiter Enable register:              
 21  *                                                
 22  * ----------------------------------------       
 23  * |              |SBUS|MOD3|MOD2|MOD1|RSV|       
 24  * ----------------------------------------       
 25  *  31           5   4   3    2    1    0         
 26  *                                                
 27  * SBUS: Enable MBus Arbiter on the SBus 0=off    
 28  * MOD3: Enable MBus Arbiter on MBus module 3     
 29  * MOD2: Enable MBus Arbiter on MBus module 2     
 30  * MOD1: Enable MBus Arbiter on MBus module 1     
 31  */                                               
 32                                                   
 33 #define ECC_MBAE_SBUS     0x00000010              
 34 #define ECC_MBAE_MOD3     0x00000008              
 35 #define ECC_MBAE_MOD2     0x00000004              
 36 #define ECC_MBAE_MOD1     0x00000002              
 37                                                   
 38 /* ECC Fault Control Register layout:             
 39  *                                                
 40  * -----------------------------                  
 41  * |    RESV   | ECHECK | EINT |                  
 42  * -----------------------------                  
 43  *  31        2     1       0                     
 44  *                                                
 45  * ECHECK:  Enable ECC checking.  0=off 1=on      
 46  * EINT:  Enable Interrupts for correctable er    
 47  */                                               
 48 #define ECC_FCR_CHECK    0x00000002               
 49 #define ECC_FCR_INTENAB  0x00000001               
 50                                                   
 51 /* ECC Fault Address Register Zero layout:        
 52  *                                                
 53  * -------------------------------------------    
 54  * | MID | S | RSV |  VA   | BM |AT| C| SZ |TY    
 55  * -------------------------------------------    
 56  *  31-28  27 26-22  21-14   13  12 11 10-8 7-    
 57  *                                                
 58  * MID: ModuleID of the faulting processor. ie    
 59  * S: Supervisor/Privileged access? 0=no 1=yes    
 60  * VA: Bits 19-12 of the virtual faulting addr    
 61  *     superset bits in the virtual cache and     
 62  *     a flush operation if necessary.            
 63  * BM: Boot mode? 0=no 1=yes  This is just lik    
 64  *     mode bit.                                  
 65  * AT: Did this fault happen during an atomic     
 66  *     1=yes.  This means either an 'ldstub' o    
 67  *     was in progress (but not finished) when    
 68  *     This indicated whether the bus was lock    
 69  *     occurred.                                  
 70  * C: Did the pte for this access indicate tha    
 71  *    0=no 1=yes                                  
 72  * SZ: The size of the transaction.               
 73  * TYP: The transaction type.                     
 74  * PADDR: Bits 35-32 of the physical address f    
 75  */                                               
 76 #define ECC_FADDR0_MIDMASK   0xf0000000           
 77 #define ECC_FADDR0_S         0x08000000           
 78 #define ECC_FADDR0_VADDR     0x003fc000           
 79 #define ECC_FADDR0_BMODE     0x00002000           
 80 #define ECC_FADDR0_ATOMIC    0x00001000           
 81 #define ECC_FADDR0_CACHE     0x00000800           
 82 #define ECC_FADDR0_SIZE      0x00000700           
 83 #define ECC_FADDR0_TYPE      0x000000f0           
 84 #define ECC_FADDR0_PADDR     0x0000000f           
 85                                                   
 86 /* ECC Fault Address Register One layout:         
 87  *                                                
 88  * -------------------------------------          
 89  * |          Physical Address 31-0    |          
 90  * -------------------------------------          
 91  *  31                               0            
 92  *                                                
 93  * You get the upper 4 bits of the physical ad    
 94  * PADDR field in ECC Fault Address Zero regis    
 95  */                                               
 96                                                   
 97 /* ECC Fault Status Register layout:              
 98  *                                                
 99  * -------------------------------------------    
100  * | RESV|C2E|MULT|SYNDROME|DWORD|UNC|TIMEO|BS    
101  * -------------------------------------------    
102  *  31-18  17  16    15-8    7-4   3    2    1    
103  *                                                
104  * C2E: A C2 graphics error occurred. 0=no 1=y    
105  * MULT: Multiple errors occurred ;-O 0=no 1=p    
106  * SYNDROME: Controller is mentally unstable.     
107  * DWORD:                                         
108  * UNC: Uncorrectable error.  0=no 1=yes          
109  * TIMEO: Timeout occurred. 0=no 1=yes            
110  * BS: C2 graphics bad slot access. 0=no 1=yes    
111  * C: Correctable error? 0=no 1=yes               
112  */                                               
113                                                   
114 #define ECC_FSR_C2ERR    0x00020000               
115 #define ECC_FSR_MULT     0x00010000               
116 #define ECC_FSR_SYND     0x0000ff00               
117 #define ECC_FSR_DWORD    0x000000f0               
118 #define ECC_FSR_UNC      0x00000008               
119 #define ECC_FSR_TIMEO    0x00000004               
120 #define ECC_FSR_BADSLOT  0x00000002               
121 #define ECC_FSR_C        0x00000001               
122                                                   
123 #endif /* !(_SPARC_ECC_H) */                      
124                                                   

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