summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/ata.c2
-rw-r--r--firmware/drivers/ata_flash.c2
-rw-r--r--firmware/drivers/ata_mmc.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index c2882a5b74..4a28ed3590 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -1403,6 +1403,7 @@ int ata_spinup_time(void)
1403 return spinup_time; 1403 return spinup_time;
1404} 1404}
1405 1405
1406#ifdef STORAGE_GET_INFO
1406void ata_get_info(struct storage_info *info) 1407void ata_get_info(struct storage_info *info)
1407{ 1408{
1408 unsigned short *src,*dest; 1409 unsigned short *src,*dest;
@@ -1432,3 +1433,4 @@ void ata_get_info(struct storage_info *info)
1432 dest[i] = htobe16(src[i]); 1433 dest[i] = htobe16(src[i]);
1433 info->revision=revision; 1434 info->revision=revision;
1434} 1435}
1436#endif
diff --git a/firmware/drivers/ata_flash.c b/firmware/drivers/ata_flash.c
index 9b1b64145d..ba96ea0f7d 100644
--- a/firmware/drivers/ata_flash.c
+++ b/firmware/drivers/ata_flash.c
@@ -450,6 +450,7 @@ long nand_last_disk_activity(void)
450 return last_disk_activity; 450 return last_disk_activity;
451} 451}
452 452
453#ifdef STORAGE_GET_INFO
453void nand_get_info(struct storage_info *info) 454void nand_get_info(struct storage_info *info)
454{ 455{
455 unsigned long blocks; 456 unsigned long blocks;
@@ -469,4 +470,5 @@ void nand_get_info(struct storage_info *info)
469 470
470 info->serial=0; 471 info->serial=0;
471} 472}
473#endif
472 474
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c
index 953bb90bbc..097d0a0dbd 100644
--- a/firmware/drivers/ata_mmc.c
+++ b/firmware/drivers/ata_mmc.c
@@ -963,6 +963,7 @@ long mmc_last_disk_activity(void)
963 return last_disk_activity; 963 return last_disk_activity;
964} 964}
965 965
966#ifdef STORAGE_GET_INFO
966void mmc_get_info(IF_MV2(int drive,) struct storage_info *info) 967void mmc_get_info(IF_MV2(int drive,) struct storage_info *info)
967{ 968{
968#ifndef HAVE_MULTIVOLUME 969#ifndef HAVE_MULTIVOLUME
@@ -981,6 +982,7 @@ void mmc_get_info(IF_MV2(int drive,) struct storage_info *info)
981 } 982 }
982 info->revision="0.00"; 983 info->revision="0.00";
983} 984}
985#endif
984 986
985#ifdef HAVE_HOTSWAP 987#ifdef HAVE_HOTSWAP
986bool mmc_removable(IF_MV_NONVOID(int drive)) 988bool mmc_removable(IF_MV_NONVOID(int drive))