diff options
Diffstat (limited to 'include/asm-powerpc/spu.h')
-rw-r--r-- | include/asm-powerpc/spu.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 34b7807f068b..f07c99ba5d13 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -104,6 +104,7 @@ | |||
104 | 104 | ||
105 | struct spu_context; | 105 | struct spu_context; |
106 | struct spu_runqueue; | 106 | struct spu_runqueue; |
107 | struct spu_lscsa; | ||
107 | struct device_node; | 108 | struct device_node; |
108 | 109 | ||
109 | enum spu_utilization_state { | 110 | enum spu_utilization_state { |
@@ -145,7 +146,6 @@ struct spu { | |||
145 | void (* ibox_callback)(struct spu *spu); | 146 | void (* ibox_callback)(struct spu *spu); |
146 | void (* stop_callback)(struct spu *spu); | 147 | void (* stop_callback)(struct spu *spu); |
147 | void (* mfc_callback)(struct spu *spu); | 148 | void (* mfc_callback)(struct spu *spu); |
148 | void (* dma_callback)(struct spu *spu, int type); | ||
149 | 149 | ||
150 | char irq_c0[8]; | 150 | char irq_c0[8]; |
151 | char irq_c1[8]; | 151 | char irq_c1[8]; |
@@ -196,10 +196,11 @@ struct cbe_spu_info { | |||
196 | extern struct cbe_spu_info cbe_spu_info[]; | 196 | extern struct cbe_spu_info cbe_spu_info[]; |
197 | 197 | ||
198 | void spu_init_channels(struct spu *spu); | 198 | void spu_init_channels(struct spu *spu); |
199 | int spu_irq_class_0_bottom(struct spu *spu); | ||
200 | int spu_irq_class_1_bottom(struct spu *spu); | ||
201 | void spu_irq_setaffinity(struct spu *spu, int cpu); | 199 | void spu_irq_setaffinity(struct spu *spu, int cpu); |
202 | 200 | ||
201 | void spu_setup_kernel_slbs(struct spu *spu, struct spu_lscsa *lscsa, | ||
202 | void *code, int code_size); | ||
203 | |||
203 | #ifdef CONFIG_KEXEC | 204 | #ifdef CONFIG_KEXEC |
204 | void crash_register_spus(struct list_head *list); | 205 | void crash_register_spus(struct list_head *list); |
205 | #else | 206 | #else |
@@ -210,6 +211,7 @@ static inline void crash_register_spus(struct list_head *list) | |||
210 | 211 | ||
211 | extern void spu_invalidate_slbs(struct spu *spu); | 212 | extern void spu_invalidate_slbs(struct spu *spu); |
212 | extern void spu_associate_mm(struct spu *spu, struct mm_struct *mm); | 213 | extern void spu_associate_mm(struct spu *spu, struct mm_struct *mm); |
214 | int spu_64k_pages_available(void); | ||
213 | 215 | ||
214 | /* Calls from the memory management to the SPU */ | 216 | /* Calls from the memory management to the SPU */ |
215 | struct mm_struct; | 217 | struct mm_struct; |
@@ -279,6 +281,8 @@ void spu_remove_sysdev_attr(struct sysdev_attribute *attr); | |||
279 | int spu_add_sysdev_attr_group(struct attribute_group *attrs); | 281 | int spu_add_sysdev_attr_group(struct attribute_group *attrs); |
280 | void spu_remove_sysdev_attr_group(struct attribute_group *attrs); | 282 | void spu_remove_sysdev_attr_group(struct attribute_group *attrs); |
281 | 283 | ||
284 | int spu_handle_mm_fault(struct mm_struct *mm, unsigned long ea, | ||
285 | unsigned long dsisr, unsigned *flt); | ||
282 | 286 | ||
283 | /* | 287 | /* |
284 | * Notifier blocks: | 288 | * Notifier blocks: |
@@ -303,7 +307,7 @@ extern void notify_spus_active(void); | |||
303 | extern void do_notify_spus_active(void); | 307 | extern void do_notify_spus_active(void); |
304 | 308 | ||
305 | /* | 309 | /* |
306 | * This defines the Local Store, Problem Area and Privlege Area of an SPU. | 310 | * This defines the Local Store, Problem Area and Privilege Area of an SPU. |
307 | */ | 311 | */ |
308 | 312 | ||
309 | union mfc_tag_size_class_cmd { | 313 | union mfc_tag_size_class_cmd { |
@@ -524,8 +528,24 @@ struct spu_priv1 { | |||
524 | #define CLASS2_ENABLE_SPU_STOP_INTR 0x2L | 528 | #define CLASS2_ENABLE_SPU_STOP_INTR 0x2L |
525 | #define CLASS2_ENABLE_SPU_HALT_INTR 0x4L | 529 | #define CLASS2_ENABLE_SPU_HALT_INTR 0x4L |
526 | #define CLASS2_ENABLE_SPU_DMA_TAG_GROUP_COMPLETE_INTR 0x8L | 530 | #define CLASS2_ENABLE_SPU_DMA_TAG_GROUP_COMPLETE_INTR 0x8L |
531 | #define CLASS2_ENABLE_MAILBOX_THRESHOLD_INTR 0x10L | ||
527 | u8 pad_0x118_0x140[0x28]; /* 0x118 */ | 532 | u8 pad_0x118_0x140[0x28]; /* 0x118 */ |
528 | u64 int_stat_RW[3]; /* 0x140 */ | 533 | u64 int_stat_RW[3]; /* 0x140 */ |
534 | #define CLASS0_DMA_ALIGNMENT_INTR 0x1L | ||
535 | #define CLASS0_INVALID_DMA_COMMAND_INTR 0x2L | ||
536 | #define CLASS0_SPU_ERROR_INTR 0x4L | ||
537 | #define CLASS0_INTR_MASK 0x7L | ||
538 | #define CLASS1_SEGMENT_FAULT_INTR 0x1L | ||
539 | #define CLASS1_STORAGE_FAULT_INTR 0x2L | ||
540 | #define CLASS1_LS_COMPARE_SUSPEND_ON_GET_INTR 0x4L | ||
541 | #define CLASS1_LS_COMPARE_SUSPEND_ON_PUT_INTR 0x8L | ||
542 | #define CLASS1_INTR_MASK 0xfL | ||
543 | #define CLASS2_MAILBOX_INTR 0x1L | ||
544 | #define CLASS2_SPU_STOP_INTR 0x2L | ||
545 | #define CLASS2_SPU_HALT_INTR 0x4L | ||
546 | #define CLASS2_SPU_DMA_TAG_GROUP_COMPLETE_INTR 0x8L | ||
547 | #define CLASS2_MAILBOX_THRESHOLD_INTR 0x10L | ||
548 | #define CLASS2_INTR_MASK 0x1fL | ||
529 | u8 pad_0x158_0x180[0x28]; /* 0x158 */ | 549 | u8 pad_0x158_0x180[0x28]; /* 0x158 */ |
530 | u64 int_route_RW; /* 0x180 */ | 550 | u64 int_route_RW; /* 0x180 */ |
531 | 551 | ||