diff options
Diffstat (limited to 'include/asm-powerpc')
| -rw-r--r-- | include/asm-powerpc/mediabay.h | 12 | ||||
| -rw-r--r-- | include/asm-powerpc/spu.h | 1 | ||||
| -rw-r--r-- | include/asm-powerpc/spu_csa.h | 2 | ||||
| -rw-r--r-- | include/asm-powerpc/system.h | 2 |
4 files changed, 12 insertions, 5 deletions
diff --git a/include/asm-powerpc/mediabay.h b/include/asm-powerpc/mediabay.h index df111c362a7f..b2efb3325808 100644 --- a/include/asm-powerpc/mediabay.h +++ b/include/asm-powerpc/mediabay.h | |||
| @@ -17,8 +17,6 @@ | |||
| 17 | #define MB_POWER 6 /* media bay contains a Power device (???) */ | 17 | #define MB_POWER 6 /* media bay contains a Power device (???) */ |
| 18 | #define MB_NO 7 /* media bay contains nothing */ | 18 | #define MB_NO 7 /* media bay contains nothing */ |
| 19 | 19 | ||
| 20 | int check_media_bay(struct device_node *which_bay, int what); | ||
| 21 | |||
| 22 | /* Number of bays in the machine or 0 */ | 20 | /* Number of bays in the machine or 0 */ |
| 23 | extern int media_bay_count; | 21 | extern int media_bay_count; |
| 24 | 22 | ||
| @@ -29,6 +27,16 @@ int check_media_bay_by_base(unsigned long base, int what); | |||
| 29 | /* called by IDE PMAC host driver to register IDE controller for media bay */ | 27 | /* called by IDE PMAC host driver to register IDE controller for media bay */ |
| 30 | int media_bay_set_ide_infos(struct device_node *which_bay, unsigned long base, | 28 | int media_bay_set_ide_infos(struct device_node *which_bay, unsigned long base, |
| 31 | int irq, ide_hwif_t *hwif); | 29 | int irq, ide_hwif_t *hwif); |
| 30 | |||
| 31 | int check_media_bay(struct device_node *which_bay, int what); | ||
| 32 | |||
| 33 | #else | ||
| 34 | |||
| 35 | static inline int check_media_bay(struct device_node *which_bay, int what) | ||
| 36 | { | ||
| 37 | return -ENODEV; | ||
| 38 | } | ||
| 39 | |||
| 32 | #endif | 40 | #endif |
| 33 | 41 | ||
| 34 | #endif /* __KERNEL__ */ | 42 | #endif /* __KERNEL__ */ |
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 6abead6e681a..99348c1f4cab 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
| @@ -131,7 +131,6 @@ struct spu { | |||
| 131 | u64 flags; | 131 | u64 flags; |
| 132 | u64 class_0_pending; | 132 | u64 class_0_pending; |
| 133 | u64 class_0_dar; | 133 | u64 class_0_dar; |
| 134 | u64 class_0_dsisr; | ||
| 135 | u64 class_1_dar; | 134 | u64 class_1_dar; |
| 136 | u64 class_1_dsisr; | 135 | u64 class_1_dsisr; |
| 137 | size_t ls_size; | 136 | size_t ls_size; |
diff --git a/include/asm-powerpc/spu_csa.h b/include/asm-powerpc/spu_csa.h index 129ec148d451..a40fd491250c 100644 --- a/include/asm-powerpc/spu_csa.h +++ b/include/asm-powerpc/spu_csa.h | |||
| @@ -254,7 +254,7 @@ struct spu_state { | |||
| 254 | u64 spu_chnldata_RW[32]; | 254 | u64 spu_chnldata_RW[32]; |
| 255 | u32 spu_mailbox_data[4]; | 255 | u32 spu_mailbox_data[4]; |
| 256 | u32 pu_mailbox_data[1]; | 256 | u32 pu_mailbox_data[1]; |
| 257 | u64 class_0_dar, class_0_dsisr, class_0_pending; | 257 | u64 class_0_dar, class_0_pending; |
| 258 | u64 class_1_dar, class_1_dsisr; | 258 | u64 class_1_dar, class_1_dsisr; |
| 259 | unsigned long suspend_time; | 259 | unsigned long suspend_time; |
| 260 | spinlock_t register_lock; | 260 | spinlock_t register_lock; |
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h index 2b6559a6d113..5235f875b932 100644 --- a/include/asm-powerpc/system.h +++ b/include/asm-powerpc/system.h | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | * SMP since it is only used to order updates to system memory. | 34 | * SMP since it is only used to order updates to system memory. |
| 35 | */ | 35 | */ |
| 36 | #define mb() __asm__ __volatile__ ("sync" : : : "memory") | 36 | #define mb() __asm__ __volatile__ ("sync" : : : "memory") |
| 37 | #define rmb() __asm__ __volatile__ (__stringify(LWSYNC) : : : "memory") | 37 | #define rmb() __asm__ __volatile__ ("sync" : : : "memory") |
| 38 | #define wmb() __asm__ __volatile__ ("sync" : : : "memory") | 38 | #define wmb() __asm__ __volatile__ ("sync" : : : "memory") |
| 39 | #define read_barrier_depends() do { } while(0) | 39 | #define read_barrier_depends() do { } while(0) |
| 40 | 40 | ||
