diff options
Diffstat (limited to 'include/asm-powerpc/spu.h')
-rw-r--r-- | include/asm-powerpc/spu.h | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 95713f397357..9609d3ee8798 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -24,8 +24,8 @@ | |||
24 | #define _SPU_H | 24 | #define _SPU_H |
25 | #ifdef __KERNEL__ | 25 | #ifdef __KERNEL__ |
26 | 26 | ||
27 | #include <linux/kref.h> | ||
28 | #include <linux/workqueue.h> | 27 | #include <linux/workqueue.h> |
28 | #include <linux/sysdev.h> | ||
29 | 29 | ||
30 | #define LS_SIZE (256 * 1024) | 30 | #define LS_SIZE (256 * 1024) |
31 | #define LS_ADDR_MASK (LS_SIZE - 1) | 31 | #define LS_ADDR_MASK (LS_SIZE - 1) |
@@ -122,7 +122,6 @@ struct spu { | |||
122 | u64 flags; | 122 | u64 flags; |
123 | u64 dar; | 123 | u64 dar; |
124 | u64 dsisr; | 124 | u64 dsisr; |
125 | struct kref kref; | ||
126 | size_t ls_size; | 125 | size_t ls_size; |
127 | unsigned int slb_replace; | 126 | unsigned int slb_replace; |
128 | struct mm_struct *mm; | 127 | struct mm_struct *mm; |
@@ -134,7 +133,6 @@ struct spu { | |||
134 | int class_0_pending; | 133 | int class_0_pending; |
135 | spinlock_t register_lock; | 134 | spinlock_t register_lock; |
136 | 135 | ||
137 | u32 stop_code; | ||
138 | void (* wbox_callback)(struct spu *spu); | 136 | void (* wbox_callback)(struct spu *spu); |
139 | void (* ibox_callback)(struct spu *spu); | 137 | void (* ibox_callback)(struct spu *spu); |
140 | void (* stop_callback)(struct spu *spu); | 138 | void (* stop_callback)(struct spu *spu); |
@@ -143,6 +141,8 @@ struct spu { | |||
143 | char irq_c0[8]; | 141 | char irq_c0[8]; |
144 | char irq_c1[8]; | 142 | char irq_c1[8]; |
145 | char irq_c2[8]; | 143 | char irq_c2[8]; |
144 | |||
145 | struct sys_device sysdev; | ||
146 | }; | 146 | }; |
147 | 147 | ||
148 | struct spu *spu_alloc(void); | 148 | struct spu *spu_alloc(void); |
@@ -181,29 +181,6 @@ static inline void unregister_spu_syscalls(struct spufs_calls *calls) | |||
181 | #endif /* MODULE */ | 181 | #endif /* MODULE */ |
182 | 182 | ||
183 | 183 | ||
184 | /* access to priv1 registers */ | ||
185 | void spu_int_mask_and(struct spu *spu, int class, u64 mask); | ||
186 | void spu_int_mask_or(struct spu *spu, int class, u64 mask); | ||
187 | void spu_int_mask_set(struct spu *spu, int class, u64 mask); | ||
188 | u64 spu_int_mask_get(struct spu *spu, int class); | ||
189 | void spu_int_stat_clear(struct spu *spu, int class, u64 stat); | ||
190 | u64 spu_int_stat_get(struct spu *spu, int class); | ||
191 | void spu_int_route_set(struct spu *spu, u64 route); | ||
192 | u64 spu_mfc_dar_get(struct spu *spu); | ||
193 | u64 spu_mfc_dsisr_get(struct spu *spu); | ||
194 | void spu_mfc_dsisr_set(struct spu *spu, u64 dsisr); | ||
195 | void spu_mfc_sdr_set(struct spu *spu, u64 sdr); | ||
196 | void spu_mfc_sr1_set(struct spu *spu, u64 sr1); | ||
197 | u64 spu_mfc_sr1_get(struct spu *spu); | ||
198 | void spu_mfc_tclass_id_set(struct spu *spu, u64 tclass_id); | ||
199 | u64 spu_mfc_tclass_id_get(struct spu *spu); | ||
200 | void spu_tlb_invalidate(struct spu *spu); | ||
201 | void spu_resource_allocation_groupID_set(struct spu *spu, u64 id); | ||
202 | u64 spu_resource_allocation_groupID_get(struct spu *spu); | ||
203 | void spu_resource_allocation_enable_set(struct spu *spu, u64 enable); | ||
204 | u64 spu_resource_allocation_enable_get(struct spu *spu); | ||
205 | |||
206 | |||
207 | /* | 184 | /* |
208 | * This defines the Local Store, Problem Area and Privlege Area of an SPU. | 185 | * This defines the Local Store, Problem Area and Privlege Area of an SPU. |
209 | */ | 186 | */ |