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

TOMOYO Linux Cross Reference
Linux/arch/mips/include/asm/dec/ecc.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  *      include/asm-mips/dec/ecc.h
  4  *
  5  *      ECC handling logic definitions common to DECstation/DECsystem
  6  *      5000/200 (KN02), 5000/240 (KN03), 5000/260 (KN05) and
  7  *      DECsystem 5900 (KN03), 5900/260 (KN05) systems.
  8  *
  9  *      Copyright (C) 2003  Maciej W. Rozycki
 10  */
 11 #ifndef __ASM_MIPS_DEC_ECC_H
 12 #define __ASM_MIPS_DEC_ECC_H
 13 
 14 /*
 15  * Error Address Register bits.
 16  * The register is r/wc -- any write clears it.
 17  */
 18 #define KN0X_EAR_VALID          (1<<31)         /* error data valid, bus IRQ */
 19 #define KN0X_EAR_CPU            (1<<30)         /* CPU/DMA transaction */
 20 #define KN0X_EAR_WRITE          (1<<29)         /* write/read transaction */
 21 #define KN0X_EAR_ECCERR         (1<<28)         /* ECC/timeout or overrun */
 22 #define KN0X_EAR_RES_27         (1<<27)         /* unused */
 23 #define KN0X_EAR_ADDRESS        (0x7ffffff<<0)  /* address involved */
 24 
 25 /*
 26  * Error Syndrome Register bits.
 27  * The register is frozen when EAR.VALID is set, otherwise it records bits
 28  * from the last memory read.  The register is r/wc -- any write clears it.
 29  */
 30 #define KN0X_ESR_VLDHI          (1<<31)         /* error data valid hi word */
 31 #define KN0X_ESR_CHKHI          (0x7f<<24)      /* check bits read from mem */
 32 #define KN0X_ESR_SNGHI          (1<<23)         /* single/double bit error */
 33 #define KN0X_ESR_SYNHI          (0x7f<<16)      /* syndrome from ECC logic */
 34 #define KN0X_ESR_VLDLO          (1<<15)         /* error data valid lo word */
 35 #define KN0X_ESR_CHKLO          (0x7f<<8)       /* check bits read from mem */
 36 #define KN0X_ESR_SNGLO          (1<<7)          /* single/double bit error */
 37 #define KN0X_ESR_SYNLO          (0x7f<<0)       /* syndrome from ECC logic */
 38 
 39 
 40 #ifndef __ASSEMBLY__
 41 
 42 #include <linux/interrupt.h>
 43 
 44 struct pt_regs;
 45 
 46 extern void dec_ecc_be_init(void);
 47 extern int dec_ecc_be_handler(struct pt_regs *regs, int is_fixup);
 48 extern irqreturn_t dec_ecc_be_interrupt(int irq, void *dev_id);
 49 #endif
 50 
 51 #endif /* __ASM_MIPS_DEC_ECC_H */
 52 

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