]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/cell/spufs/spufs.h
Merge git://git.infradead.org/iommu-2.6
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / cell / spufs / spufs.h
index 454c277c1457deaf4034b084cf95e438241c295c..15c62d3ca129f55d6ebfe56fe7b93fcb8939f42c 100644 (file)
 #include <asm/spu_csa.h>
 #include <asm/spu_info.h>
 
+#define SPUFS_PS_MAP_SIZE      0x20000
+#define SPUFS_MFC_MAP_SIZE     0x1000
+#define SPUFS_CNTL_MAP_SIZE    0x1000
+#define SPUFS_CNTL_MAP_SIZE    0x1000
+#define SPUFS_SIGNAL_MAP_SIZE  PAGE_SIZE
+#define SPUFS_MSS_MAP_SIZE     0x1000
+
 /* The magic number for our file system */
 enum {
        SPUFS_MAGIC = 0x23c9b64e,
@@ -58,7 +65,6 @@ enum {
 };
 
 struct switch_log {
-       spinlock_t              lock;
        wait_queue_head_t       wait;
        unsigned long           head;
        unsigned long           tail;
@@ -228,8 +234,16 @@ struct spufs_inode_info {
 #define SPUFS_I(inode) \
        container_of(inode, struct spufs_inode_info, vfs_inode)
 
-extern struct tree_descr spufs_dir_contents[];
-extern struct tree_descr spufs_dir_nosched_contents[];
+struct spufs_tree_descr {
+       const char *name;
+       const struct file_operations *ops;
+       int mode;
+       size_t size;
+};
+
+extern struct spufs_tree_descr spufs_dir_contents[];
+extern struct spufs_tree_descr spufs_dir_nosched_contents[];
+extern struct spufs_tree_descr spufs_dir_debug_contents[];
 
 /* system call implementation */
 extern struct spufs_calls spufs_calls;