git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull ec into release branch
[pandora-kernel.git]
/
include
/
asm-powerpc
/
spu.h
diff --git
a/include/asm-powerpc/spu.h
b/include/asm-powerpc/spu.h
index
3d90264
..
31d5054
100644
(file)
--- a/
include/asm-powerpc/spu.h
+++ b/
include/asm-powerpc/spu.h
@@
-104,6
+104,7
@@
struct spu_context;
struct spu_runqueue;
struct spu_context;
struct spu_runqueue;
+struct device_node;
struct spu {
const char *name;
struct spu {
const char *name;
@@
-128,7
+129,6
@@
struct spu {
struct spu_runqueue *rq;
unsigned long long timestamp;
pid_t pid;
struct spu_runqueue *rq;
unsigned long long timestamp;
pid_t pid;
- int prio;
int class_0_pending;
spinlock_t register_lock;
int class_0_pending;
spinlock_t register_lock;
@@
-142,7
+142,19
@@
struct spu {
char irq_c1[8];
char irq_c2[8];
char irq_c1[8];
char irq_c2[8];
+ u64 spe_id;
+
void* pdata; /* platform private data */
void* pdata; /* platform private data */
+
+ /* of based platforms only */
+ struct device_node *devnode;
+
+ /* native only */
+ struct spu_priv1 __iomem *priv1;
+
+ /* beat only */
+ u64 shadow_int_mask_RW[3];
+
struct sys_device sysdev;
};
struct sys_device sysdev;
};
@@
-153,6
+165,13
@@
int spu_irq_class_0_bottom(struct spu *spu);
int spu_irq_class_1_bottom(struct spu *spu);
void spu_irq_setaffinity(struct spu *spu, int cpu);
int spu_irq_class_1_bottom(struct spu *spu);
void spu_irq_setaffinity(struct spu *spu, int cpu);
+extern void spu_invalidate_slbs(struct spu *spu);
+extern void spu_associate_mm(struct spu *spu, struct mm_struct *mm);
+
+/* Calls from the memory management to the SPU */
+struct mm_struct;
+extern void spu_flush_all_slbs(struct mm_struct *mm);
+
/* system callbacks from the SPU */
struct spu_syscall_block {
u64 nr_ret;
/* system callbacks from the SPU */
struct spu_syscall_block {
u64 nr_ret;