diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-03-09 20:41:59 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-03-09 20:41:59 +0000 |
commit | c6bf842ecaf2dc02e541114d51b3eea304cad135 (patch) | |
tree | bd5b9f57302c5da186275716019f43c4f9802065 /firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c | |
parent | 081c63b20b7b9fc23f6138b21e006a749f3a2557 (diff) |
* Unify Onda VX747 and VX747+ config files
* Conditionalise (void)drive; in NAND & SD drivers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20256 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c index 5d670a8291..6ee18a47d6 100644 --- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c @@ -1697,7 +1697,9 @@ tCardInfo* card_get_info_target(int card_no) int sd_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf) { +#ifdef HAVE_MULTIVOLUME (void)drive; +#endif struct mmc_request request; struct mmc_response_r1 r1; int retval; @@ -1741,7 +1743,9 @@ int sd_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf int sd_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const void* buf) { +#ifdef HAVE_MULTIVOLUME (void)drive; +#endif struct mmc_request request; struct mmc_response_r1 r1; int retval; @@ -1802,7 +1806,9 @@ void sd_spindown(int seconds) #ifdef HAVE_HOTSWAP bool sd_removable(IF_MV_NONVOID(int drive)) { +#ifdef HAVE_MULTIVOLUME (void)drive; +#endif //return true; return false; } @@ -1810,14 +1816,18 @@ bool sd_removable(IF_MV_NONVOID(int drive)) bool sd_present(IF_MV_NONVOID(int drive)) { +#ifdef HAVE_MULTIVOLUME (void)drive; +#endif return (mmcinfo.block_num > 0 && card_detect_target()); } #ifdef STORAGE_GET_INFO void sd_get_info(IF_MV2(int drive,) struct storage_info *info) { +#ifdef HAVE_MULTIVOLUME (void)drive; +#endif /* firmware version */ info->revision="0.00"; |