Go to the documentation of this file.
17 #include <linux/device.h>
24 #define MEMSTICK_INT_CMDNAK 0x01
25 #define MEMSTICK_INT_IOREQ 0x08
26 #define MEMSTICK_INT_IOBREQ 0x10
27 #define MEMSTICK_INT_BREQ 0x20
28 #define MEMSTICK_INT_ERR 0x40
29 #define MEMSTICK_INT_CED 0x80
32 #define MEMSTICK_STATUS0_WP 0x01
33 #define MEMSTICK_STATUS0_SL 0x02
34 #define MEMSTICK_STATUS0_BF 0x10
35 #define MEMSTICK_STATUS0_BE 0x20
36 #define MEMSTICK_STATUS0_FB0 0x40
37 #define MEMSTICK_STATUS0_MB 0x80
40 #define MEMSTICK_STATUS1_UCFG 0x01
41 #define MEMSTICK_STATUS1_FGER 0x02
42 #define MEMSTICK_STATUS1_UCEX 0x04
43 #define MEMSTICK_STATUS1_EXER 0x08
44 #define MEMSTICK_STATUS1_UCDT 0x10
45 #define MEMSTICK_STATUS1_DTER 0x20
46 #define MEMSTICK_STATUS1_FB1 0x40
47 #define MEMSTICK_STATUS1_MB 0x80
59 #define MEMSTICK_SYS_PAM 0x08
60 #define MEMSTICK_SYS_BAMD 0x80
65 #define MEMSTICK_CP_BLOCK 0x00
66 #define MEMSTICK_CP_PAGE 0x20
67 #define MEMSTICK_CP_EXTRA 0x40
68 #define MEMSTICK_CP_OVERWRITE 0x80
75 #define MEMSTICK_OVERWRITE_UDST 0x10
76 #define MEMSTICK_OVERWRITE_PGST1 0x20
77 #define MEMSTICK_OVERWRITE_PGST0 0x40
78 #define MEMSTICK_OVERWRITE_BKST 0x80
81 #define MEMSTICK_MANAGEMENT_SYSFLG 0x04
82 #define MEMSTICK_MANAGEMENT_ATFLG 0x08
83 #define MEMSTICK_MANAGEMENT_SCMS1 0x10
84 #define MEMSTICK_MANAGEMENT_SCMS0 0x20
99 #define MEMSTICK_SYS_PAR4 0x00
100 #define MEMSTICK_SYS_PAR8 0x40
101 #define MEMSTICK_SYS_SERIAL 0x80
206 #define MEMSTICK_POWER_OFF 0
207 #define MEMSTICK_POWER_ON 1
209 #define MEMSTICK_SERIAL 0
210 #define MEMSTICK_PAR4 1
211 #define MEMSTICK_PAR8 2
218 #define MEMSTICK_MATCH_ALL 0x01
221 #define MEMSTICK_TYPE_LEGACY 0xff
222 #define MEMSTICK_TYPE_DUO 0x00
223 #define MEMSTICK_TYPE_PRO 0x01
226 #define MEMSTICK_CATEGORY_STORAGE 0xff
227 #define MEMSTICK_CATEGORY_STORAGE_DUO 0x00
228 #define MEMSTICK_CATEGORY_IO 0x01
229 #define MEMSTICK_CATEGORY_IO_PRO 0x10
232 #define MEMSTICK_CLASS_FLASH 0xff
233 #define MEMSTICK_CLASS_DUO 0x00
234 #define MEMSTICK_CLASS_ROM 0x01
235 #define MEMSTICK_CLASS_RO 0x02
236 #define MEMSTICK_CLASS_WP 0x03
279 #define MEMSTICK_CAP_AUTO_GET_INT 1
280 #define MEMSTICK_CAP_PAR4 2
281 #define MEMSTICK_CAP_PAR8 4
334 return (
void *)host->private;