diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2007-12-20 02:39:59 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-21 03:46:20 -0500 |
commit | 8af30675c3e7b945bbaf6f57b724f246e56eb209 (patch) | |
tree | a883fbefe8d2a4dc8c8ef4855e1159c94bcf7c64 /include/asm-powerpc/spu.h | |
parent | c40aa4710479b5d9f0e1fdf71b151f4c3708e3eb (diff) |
[POWERPC] spufs: use #defines for SPU class [012] exception status
Add a few #defines for the class 0, 1 and 2 interrupt status bits, and
use them instead of magic numbers when we're setting or checking for
these interrupts.
Also, add a #define for the class 2 mailbox threshold interrupt mask.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/spu.h')
-rw-r--r-- | include/asm-powerpc/spu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 543c83c2dc62..816e3dc1f66f 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -527,8 +527,22 @@ struct spu_priv1 { | |||
527 | #define CLASS2_ENABLE_SPU_STOP_INTR 0x2L | 527 | #define CLASS2_ENABLE_SPU_STOP_INTR 0x2L |
528 | #define CLASS2_ENABLE_SPU_HALT_INTR 0x4L | 528 | #define CLASS2_ENABLE_SPU_HALT_INTR 0x4L |
529 | #define CLASS2_ENABLE_SPU_DMA_TAG_GROUP_COMPLETE_INTR 0x8L | 529 | #define CLASS2_ENABLE_SPU_DMA_TAG_GROUP_COMPLETE_INTR 0x8L |
530 | #define CLASS2_ENABLE_MAILBOX_THRESHOLD_INTR 0x10L | ||
530 | u8 pad_0x118_0x140[0x28]; /* 0x118 */ | 531 | u8 pad_0x118_0x140[0x28]; /* 0x118 */ |
531 | u64 int_stat_RW[3]; /* 0x140 */ | 532 | u64 int_stat_RW[3]; /* 0x140 */ |
533 | #define CLASS0_DMA_ALIGNMENT_INTR 0x1L | ||
534 | #define CLASS0_INVALID_DMA_COMMAND_INTR 0x2L | ||
535 | #define CLASS0_SPU_ERROR_INTR 0x4L | ||
536 | #define CLASS0_INTR_MASK 0x7L | ||
537 | #define CLASS1_SEGMENT_FAULT_INTR 0x1L | ||
538 | #define CLASS1_STORAGE_FAULT_INTR 0x2L | ||
539 | #define CLASS1_LS_COMPARE_SUSPEND_ON_GET_INTR 0x4L | ||
540 | #define CLASS1_LS_COMPARE_SUSPEND_ON_PUT_INTR 0x8L | ||
541 | #define CLASS2_MAILBOX_INTR 0x1L | ||
542 | #define CLASS2_SPU_STOP_INTR 0x2L | ||
543 | #define CLASS2_SPU_HALT_INTR 0x4L | ||
544 | #define CLASS2_SPU_DMA_TAG_GROUP_COMPLETE_INTR 0x8L | ||
545 | #define CLASS2_MAILBOX_THRESHOLD_INTR 0x10L | ||
532 | u8 pad_0x158_0x180[0x28]; /* 0x158 */ | 546 | u8 pad_0x158_0x180[0x28]; /* 0x158 */ |
533 | u64 int_route_RW; /* 0x180 */ | 547 | u64 int_route_RW; /* 0x180 */ |
534 | 548 | ||