diff options
Diffstat (limited to 'firmware/export/ata_mmc.h')
-rw-r--r-- | firmware/export/ata_mmc.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/firmware/export/ata_mmc.h b/firmware/export/ata_mmc.h index 6c5141dd05..8b5056bbd8 100644 --- a/firmware/export/ata_mmc.h +++ b/firmware/export/ata_mmc.h | |||
@@ -23,17 +23,20 @@ typedef struct | |||
23 | { | 23 | { |
24 | bool initialized; | 24 | bool initialized; |
25 | unsigned char bitrate_register; | 25 | unsigned char bitrate_register; |
26 | unsigned int read_timeout; /* n * 8 clock cycles */ | 26 | unsigned long read_timeout; /* n * 8 clock cycles */ |
27 | unsigned int write_timeout; /* n * 8 clock cycles */ | 27 | unsigned long write_timeout; /* n * 8 clock cycles */ |
28 | 28 | ||
29 | unsigned long ocr; /* OCR register */ | 29 | unsigned long ocr; /* OCR register */ |
30 | unsigned long csd[4]; /* CSD register, 16 bytes */ | 30 | unsigned long csd[4]; /* CSD register, 16 bytes */ |
31 | unsigned long cid[4]; /* CID register, 16 bytes */ | 31 | unsigned long cid[4]; /* CID register, 16 bytes */ |
32 | unsigned int speed; /* bit/s */ | 32 | unsigned long speed; /* bit/s */ |
33 | unsigned int nsac; /* clock cycles */ | 33 | unsigned int nsac; /* clock cycles */ |
34 | unsigned int tsac; /* n * 0.1 ns */ | 34 | unsigned long tsac; /* n * 0.1 ns */ |
35 | unsigned int r2w_factor; | 35 | unsigned int r2w_factor; |
36 | unsigned int numsectors; /* size in sectors */ | 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 */ | ||
37 | } tCardInfo; | 40 | } tCardInfo; |
38 | 41 | ||
39 | void mmc_select_clock(int card_no); | 42 | void mmc_select_clock(int card_no); |