Changeset 7a23d60 in mainline for uspace/srv/fs/fat/fat_fat.c
- Timestamp:
- 2010-07-26T20:10:21Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6da81e0
- Parents:
- ed6cf34b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.c
red6cf34b r7a23d60 50 50 51 51 /* 52 * Convenience macros for accessing some frequently used boot sector members.53 */54 #define BPS(bs) uint16_t_le2host((bs)->bps)55 #define SPC(bs) (bs)->spc56 #define RSCNT(bs) uint16_t_le2host((bs)->rscnt)57 #define FATCNT(bs) (bs)->fatcnt58 #define SF(bs) uint16_t_le2host((bs)->sec_per_fat)59 #define RDE(bs) uint16_t_le2host((bs)->root_ent_max)60 #define TS(bs) (uint16_t_le2host((bs)->totsec16) != 0 ? \61 uint16_t_le2host((bs)->totsec16) : \62 uint32_t_le2host(bs->totsec32))63 64 /*65 52 * Convenience macros for computing some frequently used values from the 66 53 * primitive boot sector members. … … 72 59 #define CLBN2PBN(bs, cl, bn) \ 73 60 (SSA((bs)) + ((cl) - FAT_CLST_FIRST) * SPC((bs)) + (bn) % SPC((bs))) 74 75 61 76 62 /**
Note:
See TracChangeset
for help on using the changeset viewer.