summaryrefslogtreecommitdiff
path: root/firmware/drivers/fat.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-04-06 00:17:02 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-04-06 00:17:02 +0000
commitef1698e6487e8954648f806c02428ff691139438 (patch)
tree81d2d066bffd70b5933edcbbd14c991bfa487bea /firmware/drivers/fat.c
parentd4241b0f62f6cce7d649faa97888722028d24813 (diff)
downloadrockbox-ef1698e6487e8954648f806c02428ff691139438.tar.gz
rockbox-ef1698e6487e8954648f806c02428ff691139438.zip
Added cluster size to the disk debug screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4469 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r--firmware/drivers/fat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 3e43e1c787..0c8997d94a 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1989,3 +1989,8 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
1989 } 1989 }
1990 return 0; 1990 return 0;
1991} 1991}
1992
1993int fat_get_cluster_size(void)
1994{
1995 return fat_bpb.bpb_secperclus * SECTOR_SIZE;
1996}