Changeset 5d95f02 in mainline for uspace/srv/fs/fat/fat.h
- Timestamp:
- 2011-08-26T23:04:07Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4bf6895
- Parents:
- 0dbe5ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat.h
r0dbe5ac r5d95f02 47 47 #endif 48 48 49 #define min(a, b) 49 #define min(a, b) ((a) < (b) ? (a) : (b)) 50 50 51 51 /* … … 56 56 #define RSCNT(bs) uint16_t_le2host((bs)->rscnt) 57 57 #define FATCNT(bs) (bs)->fatcnt 58 #define SF(bs) (uint16_t_le2host((bs)->sec_per_fat) !=0 ? \ 58 59 #define SF(bs) (uint16_t_le2host((bs)->sec_per_fat) ? \ 59 60 uint16_t_le2host((bs)->sec_per_fat) : \ 60 61 uint32_t_le2host(bs->fat32.sectors_per_fat)) 62 61 63 #define RDE(bs) uint16_t_le2host((bs)->root_ent_max) 62 #define TS(bs) (uint16_t_le2host((bs)->totsec16) != 0 ? \ 63 uint16_t_le2host((bs)->totsec16) : \ 64 uint32_t_le2host(bs->totsec32)) 65 66 #define BS_BLOCK 0 67 #define BS_SIZE 512 64 65 #define TS(bs) (uint16_t_le2host((bs)->totsec16) ? \ 66 uint16_t_le2host((bs)->totsec16) : \ 67 uint32_t_le2host(bs->totsec32)) 68 69 #define BS_BLOCK 0 70 #define BS_SIZE 512 68 71 69 72 typedef struct fat_bs {
Note:
See TracChangeset
for help on using the changeset viewer.