1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright (C) 2019 Namjae Jeon <linkinjeon@kernel.org> 4 */ 5 6 #ifndef _MKFS_H 7 8 #define MIN_NUM_SECTOR (2048) 9 #define EXFAT_MAX_CLUSTER_SIZE (32*1024*1024) 10 11 struct exfat_mkfs_info { 12 unsigned int total_clu_cnt; 13 unsigned int used_clu_cnt; 14 unsigned int fat_byte_off; 15 unsigned int fat_byte_len; 16 unsigned int clu_byte_off; 17 unsigned int bitmap_byte_off; 18 unsigned int bitmap_byte_len; 19 unsigned int ut_byte_off; 20 unsigned int ut_start_clu; 21 unsigned int ut_clus_off; 22 unsigned int ut_byte_len; 23 unsigned int root_byte_off; 24 unsigned int root_byte_len; 25 unsigned int root_start_clu; 26 unsigned int volume_serial; 27 }; 28 29 extern struct exfat_mkfs_info finfo; 30 31 int exfat_create_upcase_table(struct exfat_blk_dev *bd); 32 33 #endif /* !_MKFS_H */ 34