Changeset 875edff6 in mainline for uspace/srv/fs/fat/fat_fat.h
- Timestamp:
- 2011-04-30T11:22:28Z (12 years ago)
- Branches:
- lfn, master, serial
- Children:
- aa2ea13
- Parents:
- cb052b4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.h
rcb052b4 r875edff6 54 54 #define FAT32_CLST_LAST8 0x0fffffff 55 55 56 #define FAT12_MASK 0x0fff 57 #define FAT16_MASK 0xffff 58 #define FAT32_MASK 0x0fffffff 59 56 60 #define FAT12_CLST_MAX 4085 57 61 #define FAT16_CLST_MAX 65525 62 63 /* Size in bytes for cluster value of FAT */ 64 #define FAT12_CLST_SIZE 2 65 #define FAT16_CLST_SIZE 2 66 #define FAT32_CLST_SIZE 4 58 67 59 68 /* internally used to mark root directory's parent */ … … 84 93 (FAT_IS_FAT12(bs) ? FAT12_CLST_BAD : (FAT_IS_FAT32(bs) ? FAT32_CLST_BAD : FAT16_CLST_BAD)) 85 94 95 #define FAT_CLST_SIZE(bs) (FAT_IS_FAT32(bs) ? FAT32_CLST_SIZE : FAT16_CLST_SIZE) 96 97 #define FAT_MASK(bs) \ 98 (FAT_IS_FAT12(bs) ? FAT12_MASK : (FAT_IS_FAT32(bs) ? FAT32_MASK : FAT16_MASK)) 99 86 100 /* forward declarations */ 87 101 struct block; … … 89 103 struct fat_bs; 90 104 91 typedef uint 16_t fat_cluster_t;105 typedef uint32_t fat_cluster_t; 92 106 93 107 #define fat_clusters_get(numc, bs, dh, fc) \
Note: See TracChangeset
for help on using the changeset viewer.