diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-10-07 08:00:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-10-07 08:00:28 +0200 |
commit | d9870d782a0fa7a40b4f91fee996b59b1dafa978 (patch) | |
tree | 91c13302c3f9ce483ad7f7c9d6b6328359b4db97 /include | |
parent | 33c56e21eb3bf841c79d9c8a40dedc8b16b774f2 (diff) | |
parent | cadca92008b08b5ef36ef3fb1f23a5542cf73f5c (diff) | |
download | barebox-d9870d782a0fa7a40b4f91fee996b59b1dafa978.tar.gz barebox-d9870d782a0fa7a40b4f91fee996b59b1dafa978.tar.xz |
Merge branch 'for-next/mount'
Diffstat (limited to 'include')
-rw-r--r-- | include/block.h | 6 | ||||
-rw-r--r-- | include/fs.h | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/block.h b/include/block.h index eb31aca4db..872a4c1bba 100644 --- a/include/block.h +++ b/include/block.h @@ -2,6 +2,7 @@ #define __BLOCK_H #include <driver.h> +#include <linux/list.h> struct block_device; @@ -14,6 +15,7 @@ struct chunk; struct block_device { struct device_d *dev; + struct list_head list; struct block_device_ops *ops; int blockbits; int num_blocks; @@ -26,6 +28,10 @@ struct block_device { struct cdev cdev; }; +extern struct list_head block_device_list; + +#define for_each_block_device(bdev) list_for_each_entry(bdev, &block_device_list, list) + int blockdevice_register(struct block_device *blk); int blockdevice_unregister(struct block_device *blk); diff --git a/include/fs.h b/include/fs.h index 22c07467da..99f1689835 100644 --- a/include/fs.h +++ b/include/fs.h @@ -39,7 +39,6 @@ typedef struct filep { #define FS_DRIVER_NO_DEV 1 struct fs_driver_d { - char *name; int (*probe) (struct device_d *dev); int (*mkdir)(struct device_d *dev, const char *pathname); int (*rmdir)(struct device_d *dev, const char *pathname); @@ -88,6 +87,7 @@ struct fs_driver_d { extern struct list_head fs_device_list; #define for_each_fs_device(f) list_for_each_entry(f, &fs_device_list, list) +extern struct bus_type fs_bus; struct fs_device_d { char *backingstore; /* the device we are associated with */ @@ -193,4 +193,9 @@ void automount_print(void); int unlink_recursive(const char *path, char **failedpath); +int fsdev_open_cdev(struct fs_device_d *fsdev); +const char *cdev_get_mount_path(struct cdev *cdev); +const char *cdev_mount_default(struct cdev *cdev); +void mount_all(void); + #endif /* __FS_H */ |