diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-05-05 12:45:59 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:31:12 -0400 |
commit | 4194318c3941fa9cfaa63dfdab9054fcae5e08d3 (patch) | |
tree | 2b44341a9cb911e34efbb33a35142fd2dcd536ff /include/asm-mips/mipsregs.h | |
parent | cd21dfcfbb5c43de54f6be795dde07397da2bc2f (diff) |
Cleanup decoding of MIPSxx config registers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/mipsregs.h')
-rw-r--r-- | include/asm-mips/mipsregs.h | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/include/asm-mips/mipsregs.h b/include/asm-mips/mipsregs.h index f3b0b4181508..9b0ce451286e 100644 --- a/include/asm-mips/mipsregs.h +++ b/include/asm-mips/mipsregs.h | |||
@@ -8,7 +8,7 @@ | |||
8 | * Modified for further R[236]000 support by Paul M. Antoine, 1996. | 8 | * Modified for further R[236]000 support by Paul M. Antoine, 1996. |
9 | * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com | 9 | * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com |
10 | * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. | 10 | * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. |
11 | * Copyright (C) 2003 Maciej W. Rozycki | 11 | * Copyright (C) 2003, 2004 Maciej W. Rozycki |
12 | */ | 12 | */ |
13 | #ifndef _ASM_MIPSREGS_H | 13 | #ifndef _ASM_MIPSREGS_H |
14 | #define _ASM_MIPSREGS_H | 14 | #define _ASM_MIPSREGS_H |
@@ -478,6 +478,51 @@ | |||
478 | #define MIPS_CONF_M (_ULCAST_(1) << 31) | 478 | #define MIPS_CONF_M (_ULCAST_(1) << 31) |
479 | 479 | ||
480 | /* | 480 | /* |
481 | * Bits in the MIPS32/64 PRA coprocessor 0 config registers 1 and above. | ||
482 | */ | ||
483 | #define MIPS_CONF1_FP (_ULCAST_(1) << 0) | ||
484 | #define MIPS_CONF1_EP (_ULCAST_(1) << 1) | ||
485 | #define MIPS_CONF1_CA (_ULCAST_(1) << 2) | ||
486 | #define MIPS_CONF1_WR (_ULCAST_(1) << 3) | ||
487 | #define MIPS_CONF1_PC (_ULCAST_(1) << 4) | ||
488 | #define MIPS_CONF1_MD (_ULCAST_(1) << 5) | ||
489 | #define MIPS_CONF1_C2 (_ULCAST_(1) << 6) | ||
490 | #define MIPS_CONF1_DA (_ULCAST_(7) << 7) | ||
491 | #define MIPS_CONF1_DL (_ULCAST_(7) << 10) | ||
492 | #define MIPS_CONF1_DS (_ULCAST_(7) << 13) | ||
493 | #define MIPS_CONF1_IA (_ULCAST_(7) << 16) | ||
494 | #define MIPS_CONF1_IL (_ULCAST_(7) << 19) | ||
495 | #define MIPS_CONF1_IS (_ULCAST_(7) << 22) | ||
496 | #define MIPS_CONF1_TLBS (_ULCAST_(63)<< 25) | ||
497 | |||
498 | #define MIPS_CONF2_SA (_ULCAST_(15)<< 0) | ||
499 | #define MIPS_CONF2_SL (_ULCAST_(15)<< 4) | ||
500 | #define MIPS_CONF2_SS (_ULCAST_(15)<< 8) | ||
501 | #define MIPS_CONF2_SU (_ULCAST_(15)<< 12) | ||
502 | #define MIPS_CONF2_TA (_ULCAST_(15)<< 16) | ||
503 | #define MIPS_CONF2_TL (_ULCAST_(15)<< 20) | ||
504 | #define MIPS_CONF2_TS (_ULCAST_(15)<< 24) | ||
505 | #define MIPS_CONF2_TU (_ULCAST_(7) << 28) | ||
506 | |||
507 | #define MIPS_CONF3_TL (_ULCAST_(1) << 0) | ||
508 | #define MIPS_CONF3_SM (_ULCAST_(1) << 1) | ||
509 | #define MIPS_CONF3_SP (_ULCAST_(1) << 4) | ||
510 | #define MIPS_CONF3_VINT (_ULCAST_(1) << 5) | ||
511 | #define MIPS_CONF3_VEIC (_ULCAST_(1) << 6) | ||
512 | #define MIPS_CONF3_LPA (_ULCAST_(1) << 7) | ||
513 | |||
514 | /* | ||
515 | * Bits in the MIPS32/64 coprocessor 1 (FPU) revision register. | ||
516 | */ | ||
517 | #define MIPS_FPIR_S (_ULCAST_(1) << 16) | ||
518 | #define MIPS_FPIR_D (_ULCAST_(1) << 17) | ||
519 | #define MIPS_FPIR_PS (_ULCAST_(1) << 18) | ||
520 | #define MIPS_FPIR_3D (_ULCAST_(1) << 19) | ||
521 | #define MIPS_FPIR_W (_ULCAST_(1) << 20) | ||
522 | #define MIPS_FPIR_L (_ULCAST_(1) << 21) | ||
523 | #define MIPS_FPIR_F64 (_ULCAST_(1) << 22) | ||
524 | |||
525 | /* | ||
481 | * R10000 performance counter definitions. | 526 | * R10000 performance counter definitions. |
482 | * | 527 | * |
483 | * FIXME: The R10000 performance counter opens a nice way to implement CPU | 528 | * FIXME: The R10000 performance counter opens a nice way to implement CPU |