diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 23:23:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 23:23:46 -0500 |
commit | f093182d313edde9b1f86dbdaf40ba4da2dbd0e7 (patch) | |
tree | ecfc614d514bd5b43a98cf4c62fdd2f47d86e33c /include/asm-powerpc/reg.h | |
parent | d27ba47e7e8c466c18983a1779d611f82d6a354f (diff) | |
parent | 76c8e25b905f99be5ddbe999597ba7c2c33ec64b (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge
Diffstat (limited to 'include/asm-powerpc/reg.h')
-rw-r--r-- | include/asm-powerpc/reg.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-powerpc/reg.h b/include/asm-powerpc/reg.h index da848412f11b..489cf4c99c21 100644 --- a/include/asm-powerpc/reg.h +++ b/include/asm-powerpc/reg.h | |||
@@ -396,6 +396,9 @@ | |||
396 | #define SPRN_VRSAVE 0x100 /* Vector Register Save Register */ | 396 | #define SPRN_VRSAVE 0x100 /* Vector Register Save Register */ |
397 | #define SPRN_XER 0x001 /* Fixed Point Exception Register */ | 397 | #define SPRN_XER 0x001 /* Fixed Point Exception Register */ |
398 | 398 | ||
399 | #define SPRN_SCOMC 0x114 /* SCOM Access Control */ | ||
400 | #define SPRN_SCOMD 0x115 /* SCOM Access DATA */ | ||
401 | |||
399 | /* Performance monitor SPRs */ | 402 | /* Performance monitor SPRs */ |
400 | #ifdef CONFIG_PPC64 | 403 | #ifdef CONFIG_PPC64 |
401 | #define SPRN_MMCR0 795 | 404 | #define SPRN_MMCR0 795 |
@@ -594,7 +597,11 @@ static inline void ppc64_runlatch_off(void) | |||
594 | mtspr(SPRN_CTRLT, ctrl); | 597 | mtspr(SPRN_CTRLT, ctrl); |
595 | } | 598 | } |
596 | } | 599 | } |
597 | #endif | 600 | |
601 | extern unsigned long scom970_read(unsigned int address); | ||
602 | extern void scom970_write(unsigned int address, unsigned long value); | ||
603 | |||
604 | #endif /* CONFIG_PPC64 */ | ||
598 | 605 | ||
599 | #define __get_SP() ({unsigned long sp; \ | 606 | #define __get_SP() ({unsigned long sp; \ |
600 | asm volatile("mr %0,1": "=r" (sp)); sp;}) | 607 | asm volatile("mr %0,1": "=r" (sp)); sp;}) |