Changeset 0f57d0e in mainline for uspace/srv/fs/fat/fat_fat.h


Ignore:
Timestamp:
2008-10-26T14:10:53Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b1178d0
Parents:
033ef7d3
Message:

Move functionality related to manipulatings file allocation tables to fat_fat.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.h

    r033ef7d3 r0f57d0e  
    3434#define FAT_FAT_FAT_H_
    3535
     36#include "../../vfs/vfs.h"
     37#include <stdint.h>
     38
     39#define FAT1            0
     40
     41#define FAT_CLST_RES0   0x0000
     42#define FAT_CLST_RES1   0x0001
     43#define FAT_CLST_FIRST  0x0002
     44#define FAT_CLST_BAD    0xfff7
     45#define FAT_CLST_LAST1  0xfff8
     46#define FAT_CLST_LAST8  0xffff
     47
     48/* internally used to mark root directory's parent */
     49#define FAT_CLST_ROOTPAR        FAT_CLST_RES0
     50/* internally used to mark root directory */
     51#define FAT_CLST_ROOT           FAT_CLST_RES1
     52
     53
     54/* forward declarations */
     55struct block;
     56struct fat_node;
     57
     58typedef uint16_t fat_cluster_t;
     59
     60#define fat_block_get(np, off) \
     61    _fat_block_get((np)->idx->dev_handle, (np)->firstc, (off))
     62   
     63extern struct block *_fat_block_get(dev_handle_t, fat_cluster_t, off_t);
     64extern uint16_t _fat_blcks_get(dev_handle_t, fat_cluster_t);
     65extern uint16_t fat_bps_get(dev_handle_t);
     66 
     67extern void fat_append_clusters(struct fat_node *, fat_cluster_t);
     68extern int fat_alloc_clusters(dev_handle_t, unsigned, fat_cluster_t *,
     69    fat_cluster_t *);
     70extern void fat_alloc_shadow_clusters(dev_handle_t, fat_cluster_t *, unsigned);
     71extern void fat_mark_cluster(dev_handle_t, unsigned, fat_cluster_t,
     72    fat_cluster_t);
     73extern void fat_fill_gap(struct fat_node *, fat_cluster_t, off_t);
     74
    3675#endif
    3776
Note: See TracChangeset for help on using the changeset viewer.