summaryrefslogtreecommitdiff
path: root/include/fs.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:35 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:35 +0200
commit7880ba637265acceb863a749ac1937334768bf50 (patch)
tree187dd63688c160b166da16d3485ebb554eb88a47 /include/fs.h
parent0ed157cd19b5b9efe815219c9853300a314f3eed (diff)
downloadbarebox-7880ba637265acceb863a749ac1937334768bf50.tar.gz
svn_rev_235
beginning filesystem support
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
new file mode 100644
index 0000000000..bb5c301e18
--- /dev/null
+++ b/include/fs.h
@@ -0,0 +1,34 @@
+#ifndef __FS_H
+#define __FS_H
+
+#include <driver.h>
+
+#define FS_TYPE_CRAMFS 1
+
+struct partition;
+
+struct fs_driver_d {
+ ulong type;
+ char *name;
+ int (*ls) (struct device_d *dev, const char *filename);
+ int (*load) (char *dst, struct device_d *dev, const char *filename);
+ int (*probe) (struct device_d *dev);
+
+ struct driver_d drv;
+};
+
+struct fs_device_d {
+ ulong type;
+ char *name;
+ struct device_d *parent; /* the device we are associated with */
+ struct device_d dev; /* our own device */
+
+ struct fs_driver_d *driver;
+};
+
+int register_filesystem(struct device_d *dev, char *fsname);
+//int unregister_filesystem(struct device_d *dev);
+
+int register_fs_driver(struct fs_driver_d *new_fs_drv);
+
+#endif /* __FS_H */