Changeset 88a27f1 in mainline for uspace/srv/fs/fat/fat_fat.h
- Timestamp:
- 2011-05-13T20:14:32Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0182e5cc
- Parents:
- a8c14aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.h
ra8c14aa r88a27f1 44 44 #define FAT_CLST_FIRST 0x0002 45 45 46 #define FAT12_CLST_BAD 0x0ff747 #define FAT12_CLST_LAST1 0x0ff848 #define FAT12_CLST_LAST8 0x0fff49 #define FAT16_CLST_BAD 0xfff750 #define FAT16_CLST_LAST1 0xfff851 #define FAT16_CLST_LAST8 0xffff52 46 #define FAT32_CLST_BAD 0x0ffffff7 53 47 #define FAT32_CLST_LAST1 0x0ffffff8 … … 86 80 #define FAT_IS_FAT32(bs) (CC(bs) >= FAT16_CLST_MAX) 87 81 88 #define FAT_CLST_LAST1(bs) \89 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST1 : \90 (FAT_IS_FAT32(bs) ? FAT32_CLST_LAST1 : FAT16_CLST_LAST1))91 #define FAT_CLST_LAST8(bs) \92 (FAT_IS_FAT12(bs) ? FAT12_CLST_LAST8 : \93 (FAT_IS_FAT32(bs) ? FAT32_CLST_LAST8 : FAT16_CLST_LAST8))94 #define FAT_CLST_BAD(bs) \95 (FAT_IS_FAT12(bs) ? FAT12_CLST_BAD : \96 (FAT_IS_FAT32(bs) ? FAT32_CLST_BAD : FAT16_CLST_BAD))97 98 82 #define FAT_CLST_SIZE(bs) \ 99 83 (FAT_IS_FAT32(bs) ? FAT32_CLST_SIZE : FAT16_CLST_SIZE) … … 102 86 (FAT_IS_FAT12(bs) ? FAT12_MASK : \ 103 87 (FAT_IS_FAT32(bs) ? FAT32_MASK : FAT16_MASK)) 88 89 #define FAT_CLST_LAST1(bs) (FAT32_CLST_LAST1 & FAT_MASK((bs))) 90 #define FAT_CLST_LAST8(bs) (FAT32_CLST_LAST8 & FAT_MASK((bs))) 91 #define FAT_CLST_BAD(bs) (FAT32_CLST_BAD & FAT_MASK((bs))) 104 92 105 93 #define FAT_ROOT_CLST(bs) \ … … 133 121 extern int fat_alloc_shadow_clusters(struct fat_bs *, devmap_handle_t, 134 122 fat_cluster_t *, unsigned); 123 extern int fat_get_cluster_fat12(struct fat_bs *, devmap_handle_t, unsigned, 124 fat_cluster_t, fat_cluster_t *); 125 extern int fat_get_cluster_fat16(struct fat_bs *, devmap_handle_t, unsigned, 126 fat_cluster_t, fat_cluster_t *); 127 extern int fat_get_cluster_fat32(struct fat_bs *, devmap_handle_t, unsigned, 128 fat_cluster_t, fat_cluster_t *); 135 129 extern int fat_get_cluster(struct fat_bs *, devmap_handle_t, unsigned, 136 130 fat_cluster_t, fat_cluster_t *); 131 extern int fat_set_cluster_fat12(struct fat_bs *, devmap_handle_t, unsigned, 132 fat_cluster_t, fat_cluster_t); 133 extern int fat_set_cluster_fat16(struct fat_bs *, devmap_handle_t, unsigned, 134 fat_cluster_t, fat_cluster_t); 135 extern int fat_set_cluster_fat32(struct fat_bs *, devmap_handle_t, unsigned, 136 fat_cluster_t, fat_cluster_t); 137 137 extern int fat_set_cluster(struct fat_bs *, devmap_handle_t, unsigned, 138 138 fat_cluster_t, fat_cluster_t);
Note:
See TracChangeset
for help on using the changeset viewer.