diff options
author | Björn Stenberg <bjorn@haxx.se> | 2008-02-11 14:26:25 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2008-02-11 14:26:25 +0000 |
commit | 2f7cffa204eaa2675b0c6782462b19f4f09bff12 (patch) | |
tree | 54ffb4cada2c8db9d0feb4c31efc02cb3ab18a1d /firmware/common/disk.c | |
parent | 9811fc9abf6c3b2bb9500a99c14a64ee29641b09 (diff) | |
download | rockbox-2f7cffa204eaa2675b0c6782462b19f4f09bff12.tar.gz rockbox-2f7cffa204eaa2675b0c6782462b19f4f09bff12.zip |
Major USB fixes by Frank Gevaerts. Still disabled in builds, #define USE_ROCKBOX_USB to test.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16279 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r-- | firmware/common/disk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c index 9fb73f0070..c26fdb37a4 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c | |||
@@ -48,6 +48,9 @@ | |||
48 | static struct partinfo part[8]; /* space for 4 partitions on 2 drives */ | 48 | static struct partinfo part[8]; /* space for 4 partitions on 2 drives */ |
49 | static int vol_drive[NUM_VOLUMES]; /* mounted to which drive (-1 if none) */ | 49 | static int vol_drive[NUM_VOLUMES]; /* mounted to which drive (-1 if none) */ |
50 | 50 | ||
51 | #ifdef MAX_LOG_SECTOR_SIZE | ||
52 | int disk_sector_multiplier = 1; | ||
53 | #endif | ||
51 | struct partinfo* disk_init(IF_MV_NONVOID(int drive)) | 54 | struct partinfo* disk_init(IF_MV_NONVOID(int drive)) |
52 | { | 55 | { |
53 | int i; | 56 | int i; |
@@ -168,6 +171,8 @@ int disk_mount(int drive) | |||
168 | mounted++; | 171 | mounted++; |
169 | vol_drive[volume] = drive; /* remember the drive for this volume */ | 172 | vol_drive[volume] = drive; /* remember the drive for this volume */ |
170 | volume = get_free_volume(); /* prepare next entry */ | 173 | volume = get_free_volume(); /* prepare next entry */ |
174 | if (drive == 0) | ||
175 | disk_sector_multiplier = j; | ||
171 | break; | 176 | break; |
172 | } | 177 | } |
173 | } | 178 | } |