summaryrefslogtreecommitdiff
path: root/firmware/hotswap.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-03-12 11:08:41 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-03-12 11:08:41 +0000
commite37044ff1d3406994fc6e07077a593f0ae95f8d7 (patch)
treeee369ba42dd9576c4fc1023451c683d3ddaf8a01 /firmware/hotswap.c
parent06a5299aff38ba25c7742ae6293c588e38445f8b (diff)
downloadrockbox-e37044ff1d3406994fc6e07077a593f0ae95f8d7.tar.gz
rockbox-e37044ff1d3406994fc6e07077a593f0ae95f8d7.zip
Hotswap code shuffling: Fix yellow. Simplify some target function access. Keep fat lock access from compiling for Ondios - think of a nicer way later.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16637 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/hotswap.c')
-rw-r--r--firmware/hotswap.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/firmware/hotswap.c b/firmware/hotswap.c
index 5620edf10b..bbcdabf649 100644
--- a/firmware/hotswap.c
+++ b/firmware/hotswap.c
@@ -18,10 +18,10 @@
18 ****************************************************************************/ 18 ****************************************************************************/
19#include <stdbool.h> 19#include <stdbool.h>
20#include "config.h" 20#include "config.h"
21#ifdef TARGET_TREE 21#ifdef HAVE_MMC
22#include "hotswap-target.h"
23#else
24#include "ata_mmc.h" 22#include "ata_mmc.h"
23#else
24#include "hotswap.h"
25#endif 25#endif
26 26
27/* helper function to extract n (<=32) bits from an arbitrary position. 27/* helper function to extract n (<=32) bits from an arbitrary position.
@@ -44,15 +44,3 @@ unsigned long card_extract_bits(
44 44
45 return result; 45 return result;
46} 46}
47
48#ifdef TARGET_TREE
49bool card_detect(void)
50{
51 return card_detect_target();
52}
53
54tCardInfo *card_get_info(int card_no)
55{
56 return card_get_info_target(card_no);
57}
58#endif