19 #define FS_FAT_ATTR_READ_ONLY 0x01
20 #define FS_FAT_ATTR_HIDDEN 0x02
21 #define FS_FAT_ATTR_SYSTEM 0x04
22 #define FS_FAT_ATTR_VOLUME_ID 0x08
23 #define FS_FAT_ATTR_DIRECTORY 0x10
24 #define FS_FAT_ATTR_ARCHIVE 0x20
27 #define FS_MEDIA_INSERTED 0x01
28 #define FS_MEDIA_PROTECTED 0x02
29 #define FS_MEDIA_INITIALIZED 0x04
30 #define FS_MEDIA_NOCHKMEDIA 0x80
33 #define FS_CONTROL_MEDIA_INIT 0x00
34 #define FS_CONTROL_EMMC_SLEEP 0x01
35 #define FS_CONTROL_EMMC_AWAKE 0x02
38 #define FS_DEVICE_SET_PASSWORD 0x01
39 #define FS_DEVICE_CLR_PASSWORD 0x02
40 #define FS_DEVICE_LOCK_UNLOCK 0x04
41 #define FS_DEVICE_ERASE 0x08
68 typedef enum _fsType {
78 typedef enum _fsDevCtrlCode {
88 typedef struct _fsMediaInfo {
95 typedef struct _fsIOC_Cache {
101 typedef struct _fsCID_Register {
118 typedef struct _fsTime {
128 typedef struct _fsFileInfo {
137 typedef struct _fsDriveInfo {
190 #ifdef MW_FILESYSTEM_FDELETE_LEGACY
236 extern fsStatus fpwd (
const char *drive,
char *buf, uint32_t len);
267 extern int64_t
ffree (
const char *drive);
281 extern int32_t
fanalyse (
const char *drive);
334 extern fsStatus fvol (
const char *drive,
char *label, uint32_t *serial);