Rev 3513 | Rev 3550 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3513 | Rev 3516 | ||
|---|---|---|---|
| Line 48... | Line 48... | ||
| 48 | /* internally used to mark root directory's parent */ |
48 | /* internally used to mark root directory's parent */ |
| 49 | #define FAT_CLST_ROOTPAR FAT_CLST_RES0 |
49 | #define FAT_CLST_ROOTPAR FAT_CLST_RES0 |
| 50 | /* internally used to mark root directory */ |
50 | /* internally used to mark root directory */ |
| 51 | #define FAT_CLST_ROOT FAT_CLST_RES1 |
51 | #define FAT_CLST_ROOT FAT_CLST_RES1 |
| 52 | 52 | ||
| 53 | - | ||
| 54 | /* forward declarations */ |
53 | /* forward declarations */ |
| 55 | struct block; |
54 | struct block; |
| 56 | struct fat_node; |
55 | struct fat_node; |
| - | 56 | struct fat_bs; |
|
| 57 | 57 | ||
| 58 | typedef uint16_t fat_cluster_t; |
58 | typedef uint16_t fat_cluster_t; |
| 59 | 59 | ||
| 60 | #define fat_block_get(np, off) \ |
60 | #define fat_block_get(bs, np, off) \ |
| 61 | _fat_block_get((np)->idx->dev_handle, (np)->firstc, (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); |
63 | extern struct block *_fat_block_get(struct fat_bs *, dev_handle_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); |
64 | fat_cluster_t, off_t); |
| 66 | - | ||
| 67 | extern void fat_append_clusters(struct fat_node *, fat_cluster_t); |
65 | extern uint16_t _fat_blcks_get(struct fat_bs *, dev_handle_t, fat_cluster_t, |
| 68 | extern int fat_alloc_clusters(dev_handle_t, unsigned, fat_cluster_t *, |
- | |
| 69 | fat_cluster_t *); |
66 | fat_cluster_t *); |
| 70 | extern void fat_alloc_shadow_clusters(dev_handle_t, fat_cluster_t *, unsigned); |
- | |
| - | 67 | ||
| 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 | fat_cluster_t); |
69 | fat_cluster_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); |
|
| 73 | extern void fat_fill_gap(struct fat_node *, fat_cluster_t, off_t); |
76 | extern void fat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t, |
| - | 77 | off_t); |
|
| 74 | 78 | ||
| 75 | #endif |
79 | #endif |
| 76 | 80 | ||
| 77 | /** |
81 | /** |
| 78 | * @} |
82 | * @} |