1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /*
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001 by Ralf Baechle
- * Copyright (C) 2000 Silicon Graphics, Inc.
- * Modified for further R[236]000 support by Paul M. Antoine, 1996.
- * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com
- * Copyright (C) 2000, 07 MIPS Technologies, Inc.
- * Copyright (C) 2003, 2004 Maciej W. Rozycki
- */
- #ifndef _ASM_MIPSREGS_H
- #define _ASM_MIPSREGS_H
- #include <linux/linkage.h>
- #include <asm/hazards.h>
- #include <asm/war.h>
- /*
- * The following macros are especially useful for __asm__
- * inline assembler.
- */
- #ifndef __STR
- #define __STR(x) #x
- #endif
- #ifndef STR
- #define STR(x) __STR(x)
- #endif
- /*
- * Configure language
- */
- #ifdef __ASSEMBLY__
- #define _ULCAST_
- #else
- #define _ULCAST_ (unsigned long)
- #endif
- /*
- * Coprocessor 0 register names
- */
- #define CP0_INDEX $0
- #define CP0_RANDOM $1
- #define CP0_ENTRYLO0 $2
- #define CP0_ENTRYLO1 $3
- #define CP0_CONF $3
- #define CP0_CONTEXT $4
- #define CP0_PAGEMASK $5
- #define CP0_WIRED $6
- #define CP0_INFO $7
- #define CP0_BADVADDR $8
- #define CP0_COUNT $9
- #define CP0_ENTRYHI $10
- #define CP0_COMPARE $11
- #define CP0_STATUS $12
- #define CP0_CAUSE $13
- #define CP0_EPC $14
- #define CP0_PRID $15
- #define CP0_CONFIG $16
- #define CP0_LLADDR $17
- #define CP0_WATCHLO $18
- #define CP0_WATCHHI $19
- #define CP0_XCONTEXT $20
- #define CP0_FRAMEMASK $21
- #define CP0_DIAGNOSTIC $22
- #define CP0_DEBUG $23
- #define CP0_DEPC $24
- #define CP0_PERFORMANCE $25
- #define CP0_ECC $26
- #define CP0_CACHEERR $27
|