30 #define NR_SPU_GPRS 128
32 #define NR_SPU_REGS_PAD 7
33 #define NR_SPU_SPILL_REGS 144
34 #define SIZEOF_SPU_SPILL_REGS NR_SPU_SPILL_REGS * 16
36 #define SPU_SAVE_COMPLETE 0x3FFB
37 #define SPU_RESTORE_COMPLETE 0x3FFC
43 #define SPU_STOPPED_STATUS_P 1
44 #define SPU_STOPPED_STATUS_I 2
45 #define SPU_STOPPED_STATUS_H 3
46 #define SPU_STOPPED_STATUS_S 4
47 #define SPU_STOPPED_STATUS_S_I 5
48 #define SPU_STOPPED_STATUS_S_P 6
49 #define SPU_STOPPED_STATUS_P_H 7
50 #define SPU_STOPPED_STATUS_P_I 8
51 #define SPU_STOPPED_STATUS_R 9
56 #define SPU_DECR_STATUS_RUNNING 0x1
57 #define SPU_DECR_STATUS_WRAPPED 0x2
85 struct spu_reg128 gprs[128];
86 struct spu_reg128
fpcr;
87 struct spu_reg128 decr;
88 struct spu_reg128 decr_status;
89 struct spu_reg128 ppu_mb;
90 struct spu_reg128 ppuint_mb;
91 struct spu_reg128 tag_mask;
92 struct spu_reg128 event_mask;
93 struct spu_reg128 srr0;
94 struct spu_reg128 stopped_status;
110 struct spu_problem_collapsed {
115 union mfc_tag_size_class_cmd mfc_union_W;
117 u32 dma_querytype_RW;
118 u32 dma_querymask_RW;
135 struct spu_priv1_collapsed {
141 u64 int_mask_class0_RW;
142 u64 int_mask_class1_RW;
143 u64 int_mask_class2_RW;
144 u64 int_stat_class0_RW;
145 u64 int_stat_class1_RW;
146 u64 int_stat_class2_RW;
148 u64 mfc_atomic_flush_RW;
149 u64 resource_allocation_groupID_RW;
150 u64 resource_allocation_enable_RW;
152 u64 mfc_fir_status_or_W;
153 u64 mfc_fir_status_and_W;
155 u64 mfc_fir_mask_or_W;
156 u64 mfc_fir_mask_and_W;
157 u64 mfc_fir_chkstp_enable_RW;
158 u64 smf_sbi_signal_sel;
159 u64 smf_ato_signal_sel;
160 u64 tlb_index_hint_RO;
164 u64 tlb_invalidate_entry_W;
165 u64 tlb_invalidate_all_W;
175 u64 mfc_tclass_id_RW;
177 u64 smf_dma_signal_sel;
199 struct spu_priv2_collapsed {
203 u64 slb_invalidate_entry_W;
204 u64 slb_invalidate_all_W;
211 u64 spu_chnlcntptr_RW;
215 u64 spu_tag_status_query_RW;
218 u64 spu_atomic_status_RW;
243 struct spu_lscsa *lscsa;
244 #ifdef CONFIG_SPU_FS_64K_LS
247 #define SPU_LSCSA_NUM_BIG_PAGES (sizeof(struct spu_lscsa) / 0x10000)
248 struct page *lscsa_pages[SPU_LSCSA_NUM_BIG_PAGES];
250 struct spu_problem_collapsed prob;
251 struct spu_priv1_collapsed priv1;
252 struct spu_priv2_collapsed priv2;
253 u64 spu_chnlcnt_RW[32];
254 u64 spu_chnldata_RW[32];
255 u32 spu_mailbox_data[4];
256 u32 pu_mailbox_data[1];
257 u64 class_0_dar, class_0_pending;
258 u64 class_1_dar, class_1_dsisr;
259 unsigned long suspend_time;