summaryrefslogtreecommitdiff
path: root/firmware/usbstack/usb_storage.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-10-31 21:25:04 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-10-31 21:25:04 +0000
commit19d1cacb1a63c306d842f81127d382512c49a062 (patch)
treebac051d18aae2c9f201744890177e0021e5269be /firmware/usbstack/usb_storage.c
parent3aa58328080ab9a254d9f2329696fa4309a30d50 (diff)
downloadrockbox-19d1cacb1a63c306d842f81127d382512c49a062.tar.gz
rockbox-19d1cacb1a63c306d842f81127d382512c49a062.zip
cleanup storage defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r--firmware/usbstack/usb_storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index 8c1b02b183..198ff46a56 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -39,7 +39,7 @@
39 * by not overlapping ata_write_sector() with USB transfers. This does reduce 39 * by not overlapping ata_write_sector() with USB transfers. This does reduce
40 * write performance, so we only do it for the affected DAPs 40 * write performance, so we only do it for the affected DAPs
41 */ 41 */
42#ifdef HAVE_ATA_SD 42#if (CONFIG_STORAGE & STORAGE_SD)
43#define SERIALIZE_WRITES 43#define SERIALIZE_WRITES
44#endif 44#endif
45/* Enable the following define to export only the SD card slot. This 45/* Enable the following define to export only the SD card slot. This
@@ -668,7 +668,7 @@ static void handle_scsi(struct command_block_wrapper* cbw)
668 block_size = SECTOR_SIZE; 668 block_size = SECTOR_SIZE;
669 block_count = RAMDISK_SIZE; 669 block_count = RAMDISK_SIZE;
670#else 670#else
671#if defined(HAVE_ATA_SD) || defined(HAVE_HOTSWAP) 671#if (CONFIG_STORAGE & STORAGE_SD) || defined(HAVE_HOTSWAP)
672 tCardInfo* cinfo = card_get_info(lun); 672 tCardInfo* cinfo = card_get_info(lun);
673 if(cinfo->initialized && cinfo->numblocks > 0) { 673 if(cinfo->initialized && cinfo->numblocks > 0) {
674 block_size = cinfo->blocksize; 674 block_size = cinfo->blocksize;