Changeset 97bc3ee in mainline for uspace/srv/fs/fat/fat_fat.h
- Timestamp:
- 2011-04-09T19:23:12Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d260a95
- Parents:
- fc35e98
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.h
rfc35e98 r97bc3ee 29 29 /** @addtogroup fs 30 30 * @{ 31 */ 31 */ 32 32 33 33 #ifndef FAT_FAT_FAT_H_ … … 56 56 #define FAT_CLST_ROOT FAT_CLST_RES1 57 57 58 #define FATTYPE(bs) (bs)->reserved 58 /* 59 * Convenience macros for computing some frequently used values from the 60 * primitive boot sector members. 61 */ 62 #define RDS(bs) ((sizeof(fat_dentry_t) * RDE((bs))) / BPS((bs))) + \ 63 (((sizeof(fat_dentry_t) * RDE((bs))) % BPS((bs))) != 0) 64 #define SSA(bs) (RSCNT((bs)) + FATCNT((bs)) * SF((bs)) + RDS(bs)) 65 #define DS(bs) (TS(bs) - SSA(bs)) 66 #define CC(bs) (DS(bs) / SPC(bs)) 67 #define FATTYPE(bs) (bs)->reserved 59 68 60 69 /* forward declarations */
Note:
See TracChangeset
for help on using the changeset viewer.