summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-11-26 08:59:42 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-11-26 09:00:58 -0500
commit6231407df702a9d29d255d5dc889e5e59e6f060c (patch)
tree510384b09d58a5d50b721723502687002d454e2d
parentdfbbfb12d44a4c99c77c0f75169fe6b0130c1e12 (diff)
downloadrockbox-6231407df7.tar.gz
rockbox-6231407df7.zip
fat: MAX_VIRT_SETOR_SIZE -> MAX_VIRT_SECTOR_SIZE
Change-Id: I18d7998e0f23cbe9b95f5e8c90214975ae03a10e
-rw-r--r--firmware/drivers/fat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 14ec35bd27..460b6d8a39 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -278,7 +278,7 @@ static struct bpb
} fat_bpbs[NUM_VOLUMES]; /* mounted partition info */
#ifdef STORAGE_NEEDS_BOUNCE_BUFFER
-#if defined(MAX_VIRT_SETOR_SIZE)
+#if defined(MAX_VIRT_SECTOR_SIZE)
#define BOUNCE_SECTOR_SIZE MAX_VIRT_SECTOR_SIZE
#elif defined(MAX_VARIABLE_LOG_SECTOR)
#define BOUNCE_SECTOR_SIZE MAX_VARIABLE_LOG_SECTOR
@@ -287,7 +287,9 @@ static struct bpb
#else
#define BOUNCE_SECTOR_SIZE SECTOR_SIZE
#endif
+#ifndef FAT_BOUNCE_SECTORS
#define FAT_BOUNCE_SECTORS 10
+#endif
static uint8_t fat_bounce_buffers[NUM_VOLUMES][BOUNCE_SECTOR_SIZE*FAT_BOUNCE_SECTORS] STORAGE_ALIGN_ATTR;
#define FAT_BOUNCE_BUFFER(bpb) \
(fat_bounce_buffers[IF_MV_VOL((bpb)->volume)])