/* * VasEBoot -- GRand Unified Bootloader * Copyright (C) 2013 Free Software Foundation, Inc. * * VasEBoot is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VasEBoot is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VasEBoot. If not, see . */ #ifndef VasEBoot_EXFAT_H #define VasEBoot_EXFAT_H 1 #include struct VasEBoot_exfat_bpb { VasEBoot_uint8_t jmp_boot[3]; VasEBoot_uint8_t oem_name[8]; VasEBoot_uint8_t mbz[53]; VasEBoot_uint64_t num_hidden_sectors; VasEBoot_uint64_t num_total_sectors; VasEBoot_uint32_t num_reserved_sectors; VasEBoot_uint32_t sectors_per_fat; VasEBoot_uint32_t cluster_offset; VasEBoot_uint32_t cluster_count; VasEBoot_uint32_t root_cluster; VasEBoot_uint32_t num_serial; VasEBoot_uint16_t fs_revision; VasEBoot_uint16_t volume_flags; VasEBoot_uint8_t bytes_per_sector_shift; VasEBoot_uint8_t sectors_per_cluster_shift; VasEBoot_uint8_t num_fats; VasEBoot_uint8_t num_ph_drive; VasEBoot_uint8_t reserved[8]; } VasEBoot_PACKED; #ifdef VasEBoot_UTIL #include VasEBoot_disk_addr_t VasEBoot_exfat_get_cluster_sector (VasEBoot_disk_t disk, VasEBoot_uint64_t *sec_per_lcn); #endif #endif