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