| 31 | #include "fat_common.h" |
| 32 | |
| 33 | unsigned int fat_sector_size(const struct fat_boot_sector *fat_header) |
| 34 | { |
| 35 | const unsigned int hi=fat_header->sector_size[1]; |
| 36 | const unsigned int lo=fat_header->sector_size[0]; |
| 37 | /*@ assert 0 <= hi < 1<<8; */ |
| 38 | /*@ assert 0 <= hi<<8 < 1<<16; */ |
| 39 | /*@ assert 0 <= lo < 1<<8; */ |
| 40 | const unsigned int res=(hi<<8)|lo; |
| 41 | /*@ assert res <= 65535; */ |
| 42 | return res; |
| 43 | } |
| 44 | |
| 45 | unsigned int get_dir_entries(const struct fat_boot_sector *fat_header) |
| 46 | { |
no outgoing calls