Go to the documentation of this file.
13 #define DUMMY_DATA 0xFF
18 #define MAX_ZONENUM 128
19 #define MAX_BLOCKNUM 0x0400
20 #define MAX_SECTNUM 0x20
21 #define MAX_LOGBLOCK 1000
24 #define CIS_SEARCH_SECT 0x08
29 #define NO_ASSIGN 0xFFFF
41 #define RDERR_REASSIGN 1
42 #define L2P_ERR_ERASE 1
47 #define HW_ECC_SUPPORTED 1
56 #define READ_REDT 0x50
66 #define READ_ID_1 0x90
67 #define READ_ID_2 0x91
68 #define READ_ID_3 0x9A
71 #define SM_CMD_RESET 0x00
72 #define SM_CMD_READ_ID_1 0x10
73 #define SM_CMD_READ_ID_2 0x20
74 #define SM_CMD_READ_STAT 0x30
75 #define SM_CMD_RDMULTPL_STAT 0x40
76 #define SM_CMD_READ_1 0x50
77 #define SM_CMD_READ_2 0x60
78 #define SM_CMD_READ_3 0x70
79 #define SM_CMD_PAGPRGM_TRUE 0x80
80 #define SM_CMD_PAGPRGM_DUMY 0x90
81 #define SM_CMD_PAGPRGM_MBLK 0xA0
82 #define SM_CMD_BLKERASE 0xB0
83 #define SM_CMD_BLKERASE_MULTPL 0xC0
85 #define SM_CRADDTCT_DEBNCETIMER_EN 0x02
86 #define SM_CMD_START_BIT 0x01
88 #define SM_WaitCmdDone { while (!SM_CmdDone); }
89 #define SM_WaitDmaDone { while (!SM_DmaDone); }
93 #define SUSPENDED 0x20
99 #define BUSY_ERASE 4000
105 #define BUSY_READ 200
109 #define BUSY_RESET 600
112 #define TIME_PON 3000
113 #define TIME_CDCHK 200
114 #define TIME_WPCHK 50
115 #define TIME_5VCHK 10
120 #define REDT_DATA 0x04
121 #define REDT_BLOCK 0x05
122 #define REDT_ADDR1H 0x06
123 #define REDT_ADDR1L 0x07
124 #define REDT_ADDR2H 0x0B
125 #define REDT_ADDR2L 0x0C
126 #define REDT_ECC10 0x0D
127 #define REDT_ECC11 0x0E
128 #define REDT_ECC12 0x0F
129 #define REDT_ECC20 0x08
130 #define REDT_ECC21 0x09
131 #define REDT_ECC22 0x0A
155 #define SSFDC1MB 0x01
156 #define SSFDC2MB 0x02
157 #define SSFDC4MB 0x03
158 #define SSFDC8MB 0x04
159 #define SSFDC16MB 0x05
160 #define SSFDC32MB 0x06
161 #define SSFDC64MB 0x07
162 #define SSFDC128MB 0x08
163 #define SSFDC256MB 0x09
164 #define SSFDC512MB 0x0A
165 #define SSFDC1GB 0x0B
166 #define SSFDC2GB 0x0C