Changeset 5e790e6 in mainline
- Timestamp:
- 2008-03-28T08:44:29Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 81c0171e
- Parents:
- 2f60a529
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat.h
r2f60a529 r5e790e6 1 1 /* 2 * Copyright (c) 200 7Jakub Jermar2 * Copyright (c) 2008 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 39 39 #include <sys/types.h> 40 40 #include <bool.h> 41 #include "../../vfs/vfs.h" 41 42 42 43 #define dprintf(...) printf(__VA_ARGS__) … … 48 49 uint16_t bps; /**< Bytes per sector. */ 49 50 uint8_t spc; /**< Sectors per cluster. */ 50 uint16_t rsc ; /**< Reserved sector count. */51 uint16_t rscnt; /**< Reserved sector count. */ 51 52 uint8_t fatcnt; /**< Number of FATs. */ 52 53 uint16_t root_ent_max; /**< Maximum number of root directory 53 54 entries. */ 54 uint16_t totsec ; /**< Total sectors. */55 uint16_t totsec16; /**< Total sectors. 16-bit version. */ 55 56 uint8_t mdesc; /**< Media descriptor. */ 56 57 uint16_t sec_per_fat; /**< Sectors per FAT12/FAT16. */ … … 58 59 uint16_t headcnt; /**< Number of heads. */ 59 60 uint32_t hidden_sec; /**< Hidden sectors. */ 60 uint32_t tot al_sec; /**< Total sectors. */61 uint32_t totseci32; /**< Total sectors. 32-bit version. */ 61 62 62 63 union { … … 102 103 uint32_t id; 103 104 /** Volume label. */ 104 uint8_t label ;105 uint8_t label[11]; 105 106 /** FAT type. */ 106 107 uint8_t type[8]; … … 135 136 } __attribute__ ((packed)) fat_dentry_t; 136 137 138 typedef enum { 139 FAT_DIRECTORY, 140 FAT_FILE 141 } fat_node_type_t; 142 143 /** FAT in-core node. */ 144 typedef struct { 145 fat_node_type_t type; 146 /** VFS index is the node's first allocated cluster. */ 147 fs_index_t index; 148 dev_handle_t dev_handle; 149 /** FAT in-core node hash table link. */ 150 link_t fin_link; 151 size_t size; 152 unsigned lnkcnt; 153 } fat_node_t; 154 137 155 extern fs_reg_t fat_reg; 138 156
Note:
See TracChangeset
for help on using the changeset viewer.