Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cerr-sb1.c File Reference
#include <linux/sched.h>
#include <asm/mipsregs.h>
#include <asm/sibyte/sb1250.h>
#include <asm/sibyte/sb1250_regs.h>
#include <asm/io.h>
#include <asm/sibyte/sb1250_scd.h>

Go to the source code of this file.

Data Structures

struct  dc_state
 

Macros

#define SB1_CACHE_INDEX_MASK   0x1fe0
 
#define CP0_ERRCTL_RECOVERABLE   (1 << 31)
 
#define CP0_ERRCTL_DCACHE   (1 << 30)
 
#define CP0_ERRCTL_ICACHE   (1 << 29)
 
#define CP0_ERRCTL_MULTIBUS   (1 << 23)
 
#define CP0_ERRCTL_MC_TLB   (1 << 15)
 
#define CP0_ERRCTL_MC_TIMEOUT   (1 << 14)
 
#define CP0_CERRI_TAG_PARITY   (1 << 29)
 
#define CP0_CERRI_DATA_PARITY   (1 << 28)
 
#define CP0_CERRI_EXTERNAL   (1 << 26)
 
#define CP0_CERRI_IDX_VALID(c)   (!((c) & CP0_CERRI_EXTERNAL))
 
#define CP0_CERRI_DATA   (CP0_CERRI_DATA_PARITY)
 
#define CP0_CERRD_MULTIPLE   (1 << 31)
 
#define CP0_CERRD_TAG_STATE   (1 << 30)
 
#define CP0_CERRD_TAG_ADDRESS   (1 << 29)
 
#define CP0_CERRD_DATA_SBE   (1 << 28)
 
#define CP0_CERRD_DATA_DBE   (1 << 27)
 
#define CP0_CERRD_EXTERNAL   (1 << 26)
 
#define CP0_CERRD_LOAD   (1 << 25)
 
#define CP0_CERRD_STORE   (1 << 24)
 
#define CP0_CERRD_FILLWB   (1 << 23)
 
#define CP0_CERRD_COHERENCY   (1 << 22)
 
#define CP0_CERRD_DUPTAG   (1 << 21)
 
#define CP0_CERRD_DPA_VALID(c)   (!((c) & CP0_CERRD_EXTERNAL))
 
#define CP0_CERRD_IDX_VALID(c)   (((c) & (CP0_CERRD_LOAD | CP0_CERRD_STORE)) ? (!((c) & CP0_CERRD_EXTERNAL)) : 0)
 
#define CP0_CERRD_CAUSES   (CP0_CERRD_LOAD | CP0_CERRD_STORE | CP0_CERRD_FILLWB | CP0_CERRD_COHERENCY | CP0_CERRD_DUPTAG)
 
#define CP0_CERRD_TYPES   (CP0_CERRD_TAG_STATE | CP0_CERRD_TAG_ADDRESS | CP0_CERRD_DATA_SBE | CP0_CERRD_DATA_DBE | CP0_CERRD_EXTERNAL)
 
#define CP0_CERRD_DATA   (CP0_CERRD_DATA_SBE | CP0_CERRD_DATA_DBE)
 
#define DC_TAG_VALID(state)
 

Functions

asmlinkage void sb1_cache_error (void)
 

Macro Definition Documentation

Definition at line 68 of file cerr-sb1.c.

#define CP0_CERRD_COHERENCY   (1 << 22)

Definition at line 62 of file cerr-sb1.c.

#define CP0_CERRD_DATA   (CP0_CERRD_DATA_SBE | CP0_CERRD_DATA_DBE)

Definition at line 72 of file cerr-sb1.c.

#define CP0_CERRD_DATA_DBE   (1 << 27)

Definition at line 57 of file cerr-sb1.c.

#define CP0_CERRD_DATA_SBE   (1 << 28)

Definition at line 56 of file cerr-sb1.c.

#define CP0_CERRD_DPA_VALID (   c)    (!((c) & CP0_CERRD_EXTERNAL))

Definition at line 65 of file cerr-sb1.c.

#define CP0_CERRD_DUPTAG   (1 << 21)

Definition at line 63 of file cerr-sb1.c.

#define CP0_CERRD_EXTERNAL   (1 << 26)

Definition at line 58 of file cerr-sb1.c.

#define CP0_CERRD_FILLWB   (1 << 23)

Definition at line 61 of file cerr-sb1.c.

#define CP0_CERRD_IDX_VALID (   c)    (((c) & (CP0_CERRD_LOAD | CP0_CERRD_STORE)) ? (!((c) & CP0_CERRD_EXTERNAL)) : 0)

Definition at line 66 of file cerr-sb1.c.

#define CP0_CERRD_LOAD   (1 << 25)

Definition at line 59 of file cerr-sb1.c.

#define CP0_CERRD_MULTIPLE   (1 << 31)

Definition at line 53 of file cerr-sb1.c.

#define CP0_CERRD_STORE   (1 << 24)

Definition at line 60 of file cerr-sb1.c.

#define CP0_CERRD_TAG_ADDRESS   (1 << 29)

Definition at line 55 of file cerr-sb1.c.

#define CP0_CERRD_TAG_STATE   (1 << 30)

Definition at line 54 of file cerr-sb1.c.

Definition at line 70 of file cerr-sb1.c.

#define CP0_CERRI_DATA   (CP0_CERRI_DATA_PARITY)

Definition at line 51 of file cerr-sb1.c.

#define CP0_CERRI_DATA_PARITY   (1 << 28)

Definition at line 47 of file cerr-sb1.c.

#define CP0_CERRI_EXTERNAL   (1 << 26)

Definition at line 48 of file cerr-sb1.c.

#define CP0_CERRI_IDX_VALID (   c)    (!((c) & CP0_CERRI_EXTERNAL))

Definition at line 50 of file cerr-sb1.c.

#define CP0_CERRI_TAG_PARITY   (1 << 29)

Definition at line 46 of file cerr-sb1.c.

#define CP0_ERRCTL_DCACHE   (1 << 30)

Definition at line 40 of file cerr-sb1.c.

#define CP0_ERRCTL_ICACHE   (1 << 29)

Definition at line 41 of file cerr-sb1.c.

#define CP0_ERRCTL_MC_TIMEOUT   (1 << 14)

Definition at line 44 of file cerr-sb1.c.

#define CP0_ERRCTL_MC_TLB   (1 << 15)

Definition at line 43 of file cerr-sb1.c.

#define CP0_ERRCTL_MULTIBUS   (1 << 23)

Definition at line 42 of file cerr-sb1.c.

#define CP0_ERRCTL_RECOVERABLE   (1 << 31)

Definition at line 39 of file cerr-sb1.c.

#define DC_TAG_VALID (   state)
Value:
(((state) == 0x0) || ((state) == 0xf) || ((state) == 0x13) || \
((state) == 0x19) || ((state) == 0x16) || ((state) == 0x1c))

Definition at line 477 of file cerr-sb1.c.

#define SB1_CACHE_INDEX_MASK   0x1fe0

Definition at line 37 of file cerr-sb1.c.

Function Documentation

asmlinkage void sb1_cache_error ( void  )

Definition at line 178 of file cerr-sb1.c.