diff options
Diffstat (limited to 'firmware/export/ata_mmc.h')
-rw-r--r-- | firmware/export/ata_mmc.h | 24 |
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" | |
22 | typedef 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 | ||
42 | void mmc_enable_int_flash_clock(bool on); | 23 | void mmc_enable_int_flash_clock(bool on); |
43 | bool mmc_detect(void); | 24 | bool mmc_detect(void); |
44 | unsigned long mmc_extract_bits(const unsigned long *p, unsigned int start, | ||
45 | unsigned int size); | ||
46 | tCardInfo *mmc_card_info(int card_no); | 25 | tCardInfo *mmc_card_info(int card_no); |
47 | bool mmc_touched(void); | 26 | bool mmc_touched(void); |
48 | bool mmc_usb_active(int delayticks); | 27 | bool mmc_usb_active(int delayticks); |
28 | |||
49 | #ifdef HAVE_HOTSWAP | 29 | #ifdef HAVE_HOTSWAP |
50 | void mmc_enable_monitoring(bool on); | 30 | void mmc_enable_monitoring(bool on); |
51 | #endif | 31 | #endif |