2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2013 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
20 #define GRUB_EXFAT_H 1
22 #include <grub/types.h>
26 grub_uint8_t jmp_boot
[3];
27 grub_uint8_t oem_name
[8];
29 grub_uint64_t num_hidden_sectors
;
30 grub_uint64_t num_total_sectors
;
31 grub_uint32_t num_reserved_sectors
;
32 grub_uint32_t sectors_per_fat
;
33 grub_uint32_t cluster_offset
;
34 grub_uint32_t cluster_count
;
35 grub_uint32_t root_cluster
;
36 grub_uint32_t num_serial
;
37 grub_uint16_t fs_revision
;
38 grub_uint16_t volume_flags
;
39 grub_uint8_t bytes_per_sector_shift
;
40 grub_uint8_t sectors_per_cluster_shift
;
41 grub_uint8_t num_fats
;
42 grub_uint8_t num_ph_drive
;
43 grub_uint8_t reserved
[8];
47 #include <grub/disk.h>
50 grub_exfat_get_cluster_sector (grub_disk_t disk
, grub_uint64_t
*sec_per_lcn
);