]> err.no Git - linux-2.6/blobdiff - include/asm-powerpc/spu.h
[PATCH] struct path: move struct path from fs/namei.c into include/linux
[linux-2.6] / include / asm-powerpc / spu.h
index ffa4df083609aad35752f50eacb7e4db06b63415..fdad4267b447d10dbd48e9219ed45fa35b2475f3 100644 (file)
@@ -111,13 +111,11 @@ struct spu {
        u8 *local_store;
        unsigned long problem_phys;
        struct spu_problem __iomem *problem;
-       struct spu_priv1 __iomem *priv1;
        struct spu_priv2 __iomem *priv2;
        struct list_head list;
        struct list_head sched_list;
        struct list_head full_list;
        int number;
-       int nid;
        unsigned int irqs[3];
        u32 node;
        u64 flags;
@@ -144,8 +142,7 @@ struct spu {
        char irq_c1[8];
        char irq_c2[8];
 
-       struct device_node *devnode;
-
+       void* pdata; /* platform private data */
        struct sys_device sysdev;
 };
 
@@ -172,6 +169,13 @@ extern struct spufs_calls {
        struct module *owner;
 } spufs_calls;
 
+/* coredump calls implemented in spufs */
+struct spu_coredump_calls {
+       asmlinkage int (*arch_notes_size)(void);
+       asmlinkage void (*arch_write_notes)(struct file *file);
+       struct module *owner;
+};
+
 /* return status from spu_run, same as in libspe */
 #define SPE_EVENT_DMA_ALIGNMENT                0x0008  /*A DMA alignment error */
 #define SPE_EVENT_SPE_ERROR            0x0010  /*An illegal instruction error*/
@@ -203,6 +207,9 @@ static inline void unregister_spu_syscalls(struct spufs_calls *calls)
 }
 #endif /* MODULE */
 
+int register_arch_coredump_calls(struct spu_coredump_calls *calls);
+void unregister_arch_coredump_calls(struct spu_coredump_calls *calls);
+
 int spu_add_sysdev_attr(struct sysdev_attribute *attr);
 void spu_remove_sysdev_attr(struct sysdev_attribute *attr);