Changeset cb682eb in mainline for uspace/srv/fs/fat/fat_fat.h
- Timestamp:
- 2008-10-27T12:45:08Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ec862d
- Parents:
- e17d986
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.h
re17d986 rcb682eb 51 51 #define FAT_CLST_ROOT FAT_CLST_RES1 52 52 53 54 53 /* forward declarations */ 55 54 struct block; 56 55 struct fat_node; 56 struct fat_bs; 57 57 58 58 typedef uint16_t fat_cluster_t; 59 59 60 #define fat_block_get( np, off) \61 _fat_block_get(( np)->idx->dev_handle, (np)->firstc, (off))60 #define fat_block_get(bs, np, off) \ 61 _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (off)) 62 62 63 extern struct block *_fat_block_get(dev_handle_t, fat_cluster_t, off_t); 64 extern uint16_t _fat_blcks_get(dev_handle_t, fat_cluster_t, fat_cluster_t *); 65 extern uint16_t fat_bps_get(dev_handle_t); 63 extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t, 64 fat_cluster_t, off_t); 65 extern uint16_t _fat_blcks_get(struct fat_bs *, dev_handle_t, fat_cluster_t, 66 fat_cluster_t *); 66 67 67 extern void fat_append_clusters(struct fat_node *, fat_cluster_t); 68 extern int fat_alloc_clusters(dev_handle_t, unsigned, fat_cluster_t *, 69 fat_cluster_t *); 70 extern void fat_alloc_shadow_clusters(dev_handle_t, fat_cluster_t *, unsigned); 71 extern void fat_mark_cluster(dev_handle_t, unsigned, fat_cluster_t, 68 extern void fat_append_clusters(struct fat_bs *, struct fat_node *, 72 69 fat_cluster_t); 73 extern void fat_fill_gap(struct fat_node *, fat_cluster_t, off_t); 70 extern int fat_alloc_clusters(struct fat_bs *, dev_handle_t, unsigned, 71 fat_cluster_t *, fat_cluster_t *); 72 extern void fat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t, 73 fat_cluster_t *, unsigned); 74 extern void fat_mark_cluster(struct fat_bs *, dev_handle_t, unsigned, 75 fat_cluster_t, fat_cluster_t); 76 extern void fat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t, 77 off_t); 74 78 75 79 #endif
Note:
See TracChangeset
for help on using the changeset viewer.