aboutsummaryrefslogtreecommitdiffstats
path: root/include/fat.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-10-17 06:44:59 +0000
committerTom Rini <trini@ti.com>2012-10-25 12:07:47 -0700
commit5e8f98319d8582d6a066610b5f1ec9b1a3f79704 (patch)
tree625c16325a8685444c3fddc6959c526ea62bcd63 /include/fat.h
parenta1687b858e5670683199f6923b32aec0ea82ba19 (diff)
downloadu-boot-midas-5e8f98319d8582d6a066610b5f1ec9b1a3f79704.tar.gz
u-boot-midas-5e8f98319d8582d6a066610b5f1ec9b1a3f79704.tar.bz2
u-boot-midas-5e8f98319d8582d6a066610b5f1ec9b1a3f79704.zip
FAT: implement fat_set_blk_dev(), convert cmd_fat.c
This makes the FAT filesystem API more consistent with other block-based filesystems. If in the future standard multi-filesystem commands such as "ls" or "load" are implemented, having FAT work the same way as other filesystems will be necessary. Convert cmd_fat.c to the new API, so the code looks more like other files implementing the same commands for other filesystems. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Diffstat (limited to 'include/fat.h')
-rw-r--r--include/fat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fat.h b/include/fat.h
index cc85b06395..706cd7a4bd 100644
--- a/include/fat.h
+++ b/include/fat.h
@@ -212,6 +212,7 @@ long file_fat_read_at(const char *filename, unsigned long pos, void *buffer,
unsigned long maxsize);
long file_fat_read(const char *filename, void *buffer, unsigned long maxsize);
const char *file_getfsname(int idx);
+int fat_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info);
int fat_register_device(block_dev_desc_t *dev_desc, int part_no);
int file_fat_write(const char *filename, void *buffer, unsigned long maxsize);