Changeset 7a23d60 in mainline for uspace/srv/fs/fat/fat_fat.c


Ignore:
Timestamp:
2010-07-26T20:10:21Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6da81e0
Parents:
ed6cf34b
Message:

Use convenience macros for accessing FAT boot sector in fat_ops.c as well.

File:
1 edited

Legend:

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

    red6cf34b r7a23d60  
    5050
    5151/*
    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)->spc
    56 #define RSCNT(bs)       uint16_t_le2host((bs)->rscnt)
    57 #define FATCNT(bs)      (bs)->fatcnt
    58 #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 /*
    6552 * Convenience macros for computing some frequently used values from the
    6653 * primitive boot sector members.
     
    7259#define CLBN2PBN(bs, cl, bn) \
    7360        (SSA((bs)) + ((cl) - FAT_CLST_FIRST) * SPC((bs)) + (bn) % SPC((bs)))
    74 
    7561
    7662/**
Note: See TracChangeset for help on using the changeset viewer.