summaryrefslogtreecommitdiff
path: root/firmware/export/ata_mmc.h
diff options
context:
space:
mode:
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 @@
18 ****************************************************************************/ 18 ****************************************************************************/
19#ifndef __ATA_MMC_H__ 19#ifndef __ATA_MMC_H__
20#define __ATA_MMC_H__ 20#define __ATA_MMC_H__
21 21#include "hotswap.h"
22typedef struct
23{
24 bool initialized;
25 unsigned char bitrate_register;
26 unsigned long read_timeout; /* n * 8 clock cycles */
27 unsigned long write_timeout; /* n * 8 clock cycles */
28
29 unsigned long ocr; /* OCR register */
30 unsigned long csd[4]; /* CSD register, 16 bytes */
31 unsigned long cid[4]; /* CID register, 16 bytes */
32 unsigned long speed; /* bit/s */
33 unsigned int nsac; /* clock cycles */
34 unsigned long tsac; /* n * 0.1 ns */
35 unsigned int r2w_factor;
36 unsigned long size; /* size in bytes */
37 unsigned long numblocks; /* size in flash blocks */
38 unsigned int blocksize; /* block size in bytes */
39 unsigned int block_exp; /* block size exponent */
40} tCardInfo;
41 22
42void mmc_enable_int_flash_clock(bool on); 23void mmc_enable_int_flash_clock(bool on);
43bool mmc_detect(void); 24bool mmc_detect(void);
44unsigned long mmc_extract_bits(const unsigned long *p, unsigned int start,
45 unsigned int size);
46tCardInfo *mmc_card_info(int card_no); 25tCardInfo *mmc_card_info(int card_no);
47bool mmc_touched(void); 26bool mmc_touched(void);
48bool mmc_usb_active(int delayticks); 27bool mmc_usb_active(int delayticks);
28
49#ifdef HAVE_HOTSWAP 29#ifdef HAVE_HOTSWAP
50void mmc_enable_monitoring(bool on); 30void mmc_enable_monitoring(bool on);
51#endif 31#endif