diff options
author | Simon Glass <sjg@chromium.org> | 2019-12-28 20:44:44 +0300 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-01-24 20:36:48 +0300 |
commit | 65de5394640e300642de5121b2d9e5087d4783dd (patch) | |
tree | 8109ed871d0eaf8ae5ea6a593af6c56b0f56e96a /include | |
parent | 34971eec84e25773e29acfeeeae5ccb88f197ab4 (diff) | |
download | u-boot-65de5394640e300642de5121b2d9e5087d4783dd.tar.xz |
common: Move functions for loading from fat/ext2 to fs.h
These are filesystem functions and belong in the filesystem header file.
Move them.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 6 | ||||
-rw-r--r-- | include/fs.h | 22 |
2 files changed, 22 insertions, 6 deletions
diff --git a/include/common.h b/include/common.h index 7e2de23ae4..34ef346400 100644 --- a/include/common.h +++ b/include/common.h @@ -80,12 +80,6 @@ extern ulong load_addr; /* Default Load Address */ extern ulong save_addr; /* Default Save Address */ extern ulong save_size; /* Default Save Size */ -/* common/cmd_fat.c */ -int do_fat_fsload(cmd_tbl_t *, int, int, char * const []); - -/* common/cmd_ext2.c */ -int do_ext2load(cmd_tbl_t *, int, int, char * const []); - /* common/exports.c */ void jumptable_init(void); diff --git a/include/fs.h b/include/fs.h index 742a535b5f..37e35c2120 100644 --- a/include/fs.h +++ b/include/fs.h @@ -14,6 +14,28 @@ #define FS_TYPE_UBIFS 4 #define FS_TYPE_BTRFS 5 +/** + * do_fat_fsload - Run the fatload command + * + * @cmdtp: Command information for fatload + * @flag: Command flags (CMD_FLAG_...) + * @argc: Number of arguments + * @argv: List of arguments + * @return result (see enum command_ret_t) + */ +int do_fat_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]); + +/** + * do_ext2load - Run the ext2load command + * + * @cmdtp: Command information for ext2load + * @flag: Command flags (CMD_FLAG_...) + * @argc: Number of arguments + * @argv: List of arguments + * @return result (see enum command_ret_t) + */ +int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]); + /* * Tell the fs layer which block device an partition to use for future * commands. This also internally identifies the filesystem that is present |