summaryrefslogtreecommitdiff
path: root/firmware/export/ata_mmc.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-06-30 02:08:27 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-06-30 02:08:27 +0000
commit1167e3c72f5d0d581b81fd2cb8f2580a1524ca5a (patch)
tree501f9901636d5586271067d0c157204e500a2cfd /firmware/export/ata_mmc.h
parent189a5f812f47e43e5704a44c3abb85a4c37c8662 (diff)
Accept FS#7134 - Sansa: external sd card support by Antonius Hellmann with some tweaks. All testers have given the green light. (Now for the RED ?? ;).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13741 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/ata_mmc.h')
-rw-r--r--firmware/export/ata_mmc.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/firmware/export/ata_mmc.h b/firmware/export/ata_mmc.h
index a4e9f71f09..2361c439b5 100644
--- a/firmware/export/ata_mmc.h
+++ b/firmware/export/ata_mmc.h
@@ -18,34 +18,14 @@
****************************************************************************/
#ifndef __ATA_MMC_H__
#define __ATA_MMC_H__
-
-typedef struct
-{
- bool initialized;
- unsigned char bitrate_register;
- unsigned long read_timeout; /* n * 8 clock cycles */
- unsigned long write_timeout; /* n * 8 clock cycles */
-
- unsigned long ocr; /* OCR register */
- unsigned long csd[4]; /* CSD register, 16 bytes */
- unsigned long cid[4]; /* CID register, 16 bytes */
- unsigned long speed; /* bit/s */
- unsigned int nsac; /* clock cycles */
- unsigned long tsac; /* n * 0.1 ns */
- unsigned int r2w_factor;
- unsigned long size; /* size in bytes */
- unsigned long numblocks; /* size in flash blocks */
- unsigned int blocksize; /* block size in bytes */
- unsigned int block_exp; /* block size exponent */
-} tCardInfo;
+#include "hotswap.h"
void mmc_enable_int_flash_clock(bool on);
bool mmc_detect(void);
-unsigned long mmc_extract_bits(const unsigned long *p, unsigned int start,
- unsigned int size);
tCardInfo *mmc_card_info(int card_no);
bool mmc_touched(void);
bool mmc_usb_active(int delayticks);
+
#ifdef HAVE_HOTSWAP
void mmc_enable_monitoring(bool on);
#endif