]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-powerpc/spu.h
[POWERPC] Improve MPIC driver auto-configuration from DT
[karo-tx-linux.git] / include / asm-powerpc / spu.h
index a1cf476c66f586eb173b5fed4f8786bffa281734..ffa4df083609aad35752f50eacb7e4db06b63415 100644 (file)
@@ -115,6 +115,7 @@ struct spu {
        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];
@@ -143,6 +144,8 @@ struct spu {
        char irq_c1[8];
        char irq_c2[8];
 
+       struct device_node *devnode;
+
        struct sys_device sysdev;
 };
 
@@ -200,6 +203,12 @@ static inline void unregister_spu_syscalls(struct spufs_calls *calls)
 }
 #endif /* MODULE */
 
+int spu_add_sysdev_attr(struct sysdev_attribute *attr);
+void spu_remove_sysdev_attr(struct sysdev_attribute *attr);
+
+int spu_add_sysdev_attr_group(struct attribute_group *attrs);
+void spu_remove_sysdev_attr_group(struct attribute_group *attrs);
+
 
 /*
  * Notifier blocks:
@@ -291,8 +300,8 @@ struct spu_problem {
 #define SPU_STATUS_INVALID_INSTR        0x20
 #define SPU_STATUS_INVALID_CH           0x40
 #define SPU_STATUS_ISOLATED_STATE       0x80
-#define SPU_STATUS_ISOLATED_LOAD_STAUTUS 0x200
-#define SPU_STATUS_ISOLATED_EXIT_STAUTUS 0x400
+#define SPU_STATUS_ISOLATED_LOAD_STATUS 0x200
+#define SPU_STATUS_ISOLATED_EXIT_STATUS 0x400
        u8  pad_0x4028_0x402c[0x4];                             /* 0x4028 */
        u32 spu_spe_R;                                          /* 0x402c */
        u8  pad_0x4030_0x4034[0x4];                             /* 0x4030 */