diff options
author | Ishizaki Kou <kou.ishizaki@toshiba.co.jp> | 2007-02-02 02:45:33 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-06 22:03:21 -0500 |
commit | c9868fe0e091f64241a372b45f08097c013e41b2 (patch) | |
tree | a5e46ebaab4a16e1163f8984dc1aa3dd2bc6972c /include | |
parent | 3cdc20e51791bd2fd67781e65640a4650f99c63e (diff) |
[POWERPC] Celleb: consolidate spu management ops
Spu management ops in arch/platforms/cell/spu_priv1_mmio.h can be used
commonly in of based platform. This patch separates spu management ops
from native cell code and uses on celleb platform.
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/spu.h | 13 | ||||
-rw-r--r-- | include/asm-powerpc/spu_priv1.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 3d90264e9d36..b634e16575f2 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 device_node; | ||
107 | 108 | ||
108 | struct spu { | 109 | struct spu { |
109 | const char *name; | 110 | const char *name; |
@@ -142,7 +143,19 @@ struct spu { | |||
142 | char irq_c1[8]; | 143 | char irq_c1[8]; |
143 | char irq_c2[8]; | 144 | char irq_c2[8]; |
144 | 145 | ||
146 | u64 spe_id; | ||
147 | |||
145 | void* pdata; /* platform private data */ | 148 | void* pdata; /* platform private data */ |
149 | |||
150 | /* of based platforms only */ | ||
151 | struct device_node *devnode; | ||
152 | |||
153 | /* native only */ | ||
154 | struct spu_priv1 __iomem *priv1; | ||
155 | |||
156 | /* beat only */ | ||
157 | u64 shadow_int_mask_RW[3]; | ||
158 | |||
146 | struct sys_device sysdev; | 159 | struct sys_device sysdev; |
147 | }; | 160 | }; |
148 | 161 | ||
diff --git a/include/asm-powerpc/spu_priv1.h b/include/asm-powerpc/spu_priv1.h index 69dcb0c53884..7e78f6a1ab8b 100644 --- a/include/asm-powerpc/spu_priv1.h +++ b/include/asm-powerpc/spu_priv1.h | |||
@@ -206,6 +206,8 @@ spu_destroy_spu (struct spu *spu) | |||
206 | */ | 206 | */ |
207 | 207 | ||
208 | extern const struct spu_priv1_ops spu_priv1_mmio_ops; | 208 | extern const struct spu_priv1_ops spu_priv1_mmio_ops; |
209 | extern const struct spu_priv1_ops spu_priv1_beat_ops; | ||
210 | |||
209 | extern const struct spu_management_ops spu_management_of_ops; | 211 | extern const struct spu_management_ops spu_management_of_ops; |
210 | 212 | ||
211 | #endif /* __KERNEL__ */ | 213 | #endif /* __KERNEL__ */ |