summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUma Shankar <uma.shankar@samsung.com>2012-05-25 21:22:49 +0530
committerWolfgang Denk <wd@denx.de>2012-08-09 23:48:02 +0200
commited34f34dbaf206dfe223f4bc2147d600fe1b0f58 (patch)
tree5a0f1c40bb6598e0db9d2e1b0d1b85814348ad8b /include
parenta1596438a68921d2c9b1fdec70a720d38c85ca7d (diff)
downloadu-boot-imx-ed34f34dbaf206dfe223f4bc2147d600fe1b0f58.zip
u-boot-imx-ed34f34dbaf206dfe223f4bc2147d600fe1b0f58.tar.gz
u-boot-imx-ed34f34dbaf206dfe223f4bc2147d600fe1b0f58.tar.bz2
ext4fs write support
Signed-off-by: Uma Shankar <uma.shankar@samsung.com> Signed-off-by: Manjunatha C Achar <a.manjunatha@samsung.com> Signed-off-by: Iqbal Shareef <iqbal.ams@samsung.com> Signed-off-by: Hakgoo Lee <goodguy.lee@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/ext4fs.h12
-rw-r--r--include/ext_common.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/include/ext4fs.h b/include/ext4fs.h
index 58a6a1d..ab2983c 100644
--- a/include/ext4fs.h
+++ b/include/ext4fs.h
@@ -117,6 +117,18 @@ extern block_dev_desc_t *ext4_dev_desc;
extern struct ext2_data *ext4fs_root;
extern struct ext2fs_node *ext4fs_file;
+#if defined(CONFIG_CMD_EXT4_WRITE)
+extern struct ext2_inode *g_parent_inode;
+extern int gd_index;
+extern int gindex;
+
+int ext4fs_init(void);
+void ext4fs_deinit(void);
+int ext4fs_filename_check(char *filename);
+int ext4fs_write(const char *fname, unsigned char *buffer,
+ unsigned long sizebytes);
+#endif
+
struct ext_filesystem *get_fs(void);
int init_fs(block_dev_desc_t *dev_desc);
void deinit_fs(block_dev_desc_t *dev_desc);
diff --git a/include/ext_common.h b/include/ext_common.h
index c90d95b..9b97522 100644
--- a/include/ext_common.h
+++ b/include/ext_common.h
@@ -191,6 +191,8 @@ int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
int do_ext4_load(cmd_tbl_t *cmdtp, int flag, int argc,
char *const argv[]);
int do_ext4_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
+int do_ext4_write(cmd_tbl_t *cmdtp, int flag, int argc,
+ char *const argv[]);
int do_ext_load(cmd_tbl_t *cmdtp, int flag, int argc,
char *const argv[]);
int do_ext_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);