cmd_fat.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. * FAT support
  25. */
  26. #ifndef _CMD_FAT_H
  27. #define _CMD_FAT_H
  28. #if (CONFIG_COMMANDS & CFG_CMD_FAT)
  29. int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
  30. int do_fat_fsinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
  31. int do_fat_ls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
  32. int do_fat_dump (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
  33. #define CMD_TBL_FAT MK_CMD_TBL_ENTRY( \
  34. "fatload", 5, 4, 0, do_fat_fsload, \
  35. "fatload - load binary file from a dos filesystem\n", \
  36. "[ off ] [ filename ]\n" \
  37. " - load binary file from dos filesystem\n" \
  38. " with offset 'off'\n" \
  39. ), \
  40. MK_CMD_TBL_ENTRY( \
  41. "fatinfo", 5, 1, 1, do_fat_fsinfo, \
  42. "fatinfo - print information about filesystem\n", \
  43. "\n" \
  44. " - print information about filesystem\n" \
  45. ), \
  46. MK_CMD_TBL_ENTRY( \
  47. "fatls", 2, 2, 1, do_fat_ls, \
  48. "fatls - list files in a directory (default /)\n", \
  49. "[ directory ]\n" \
  50. " - list files in a directory.\n" \
  51. ),
  52. #else
  53. #define CMD_TBL_FAT
  54. #endif /* CFG_CMD_FAT */
  55. #endif /* _CMD_FAT_H */