]> git.sur5r.net Git - u-boot/blob - include/cmd_fat.h
help text cleanup
[u-boot] / include / cmd_fat.h
1 /*
2  * (C) Copyright 2002
3  * Richard Jones, rjones@nexus-tech.net
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21  * MA 02111-1307 USA
22  */
23
24 /*
25  * FAT support
26  */
27 #ifndef _CMD_FAT_H
28 #define _CMD_FAT_H
29
30 #if (CONFIG_COMMANDS & CFG_CMD_FAT)
31
32 int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
33 int do_fat_fsinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
34 int do_fat_ls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
35 int do_fat_dump (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
36
37 #define CMD_TBL_FAT     MK_CMD_TBL_ENTRY(                               \
38         "fatload",      5,      4,      0,      do_fat_fsload,          \
39         "fatload - load binary file from a dos filesystem\n",           \
40         "[ off ] [ filename ]\n"                                        \
41         "    - load binary file from dos filesystem\n"                  \
42         "      with offset 'off'\n"                                     \
43 ),                                                                      \
44         MK_CMD_TBL_ENTRY(                                               \
45         "fatinfo",      5,      1,      1,      do_fat_fsinfo,          \
46         "fatinfo - print information about filesystem\n",               \
47         "\n"                                                            \
48         "    - print information about filesystem\n"                    \
49 ),                                                                      \
50         MK_CMD_TBL_ENTRY(                                               \
51         "fatls",        2,      2,      1,      do_fat_ls,              \
52         "fatls   - list files in a directory (default /)\n",            \
53         "[ directory ]\n"                                               \
54         "    - list files in a directory.\n"                            \
55 ),
56
57 #else
58 #define CMD_TBL_FAT
59 #endif  /* CFG_CMD_FAT */
60
61 #endif  /* _CMD_FAT_H */