| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: ctlreg.h,v 1.29 2013/12/04 18:44:14 jdc Exp $ */ | | 1 | /* $NetBSD: ctlreg.h,v 1.30 2019/08/29 05:55:18 msaitoh Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1996 | | 4 | * Copyright (c) 1996 |
5 | * The President and Fellows of Harvard College. All rights reserved. | | 5 | * The President and Fellows of Harvard College. All rights reserved. |
6 | * Copyright (c) 1992, 1993 | | 6 | * Copyright (c) 1992, 1993 |
7 | * The Regents of the University of California. All rights reserved. | | 7 | * The Regents of the University of California. All rights reserved. |
8 | * | | 8 | * |
9 | * This software was developed by the Computer Systems Engineering group | | 9 | * This software was developed by the Computer Systems Engineering group |
10 | * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and | | 10 | * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and |
11 | * contributed to Berkeley. | | 11 | * contributed to Berkeley. |
12 | * | | 12 | * |
13 | * All advertising materials mentioning features or use of this software | | 13 | * All advertising materials mentioning features or use of this software |
14 | * must display the following acknowledgement: | | 14 | * must display the following acknowledgement: |
| @@ -366,27 +366,27 @@ | | | @@ -366,27 +366,27 @@ |
366 | #define SFSR_P 0x00004000 /* SS: Parity error */ | | 366 | #define SFSR_P 0x00004000 /* SS: Parity error */ |
367 | #define SFSR_UC 0x00001000 /* Uncorrectable error */ | | 367 | #define SFSR_UC 0x00001000 /* Uncorrectable error */ |
368 | #define SFSR_TO 0x00000800 /* S-Bus timeout */ | | 368 | #define SFSR_TO 0x00000800 /* S-Bus timeout */ |
369 | #define SFSR_BE 0x00000400 /* S-Bus bus error */ | | 369 | #define SFSR_BE 0x00000400 /* S-Bus bus error */ |
370 | #define SFSR_LVL 0x00000300 /* Pagetable level causing the fault */ | | 370 | #define SFSR_LVL 0x00000300 /* Pagetable level causing the fault */ |
371 | #define SFSR_AT 0x000000e0 /* Access type */ | | 371 | #define SFSR_AT 0x000000e0 /* Access type */ |
372 | #define SFSR_FT 0x0000001c /* Fault type */ | | 372 | #define SFSR_FT 0x0000001c /* Fault type */ |
373 | #define SFSR_FAV 0x00000002 /* Fault Address is valid */ | | 373 | #define SFSR_FAV 0x00000002 /* Fault Address is valid */ |
374 | #define SFSR_OW 0x00000001 /* Overwritten with new fault */ | | 374 | #define SFSR_OW 0x00000001 /* Overwritten with new fault */ |
375 | | | 375 | |
376 | #define SFSR_BITS "\177\020" \ | | 376 | #define SFSR_BITS "\177\020" \ |
377 | "b\21EM\0b\20CS\0b\17SB\0f\15\2PERR\0" \ | | 377 | "b\21EM\0b\20CS\0b\17SB\0f\15\2PERR\0" \ |
378 | "b\14UC\0b\13TO\0b\12BE\0f\10\2LVL\0" \ | | 378 | "b\14UC\0b\13TO\0b\12BE\0f\10\2LVL\0" \ |
379 | "f\05\3AT\0f\02\3FT\0b\01FAV\0b\01OW" | | 379 | "f\05\3AT\0f\02\3FT\0b\01FAV\0b\01OW\0" |
380 | | | 380 | |
381 | /* [4m] Synchronous Fault Types */ | | 381 | /* [4m] Synchronous Fault Types */ |
382 | #define SFSR_FT_NONE (0 << 2) /* no fault */ | | 382 | #define SFSR_FT_NONE (0 << 2) /* no fault */ |
383 | #define SFSR_FT_INVADDR (1 << 2) /* invalid address fault */ | | 383 | #define SFSR_FT_INVADDR (1 << 2) /* invalid address fault */ |
384 | #define SFSR_FT_PROTERR (2 << 2) /* protection fault */ | | 384 | #define SFSR_FT_PROTERR (2 << 2) /* protection fault */ |
385 | #define SFSR_FT_PRIVERR (3 << 2) /* privelege violation */ | | 385 | #define SFSR_FT_PRIVERR (3 << 2) /* privelege violation */ |
386 | #define SFSR_FT_TRANSERR (4 << 2) /* translation fault */ | | 386 | #define SFSR_FT_TRANSERR (4 << 2) /* translation fault */ |
387 | #define SFSR_FT_BUSERR (5 << 2) /* access bus error */ | | 387 | #define SFSR_FT_BUSERR (5 << 2) /* access bus error */ |
388 | #define SFSR_FT_INTERR (6 << 2) /* internal error */ | | 388 | #define SFSR_FT_INTERR (6 << 2) /* internal error */ |
389 | #define SFSR_FT_RESERVED (7 << 2) /* reserved */ | | 389 | #define SFSR_FT_RESERVED (7 << 2) /* reserved */ |
390 | | | 390 | |
391 | /* [4m] Synchronous Fault Access Types */ | | 391 | /* [4m] Synchronous Fault Access Types */ |
392 | #define SFSR_AT_LDUDATA (0 << 5) /* Load user data */ | | 392 | #define SFSR_AT_LDUDATA (0 << 5) /* Load user data */ |