linux/fs/exfat/exfat_raw.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd.
 */

#ifndef _EXFAT_RAW_H
#define _EXFAT_RAW_H

#include <linux/types.h>

#define BOOT_SIGNATURE
#define EXBOOT_SIGNATURE
#define STR_EXFAT

#define EXFAT_MAX_FILE_LEN

#define VOLUME_DIRTY
#define MEDIA_FAILURE

#define EXFAT_EOF_CLUSTER
#define EXFAT_BAD_CLUSTER
#define EXFAT_FREE_CLUSTER
/* Cluster 0, 1 are reserved, the first cluster is 2 in the cluster heap. */
#define EXFAT_RESERVED_CLUSTERS
#define EXFAT_FIRST_CLUSTER
#define EXFAT_DATA_CLUSTER_COUNT(sbi)

/* AllocationPossible and NoFatChain field in GeneralSecondaryFlags Field */
#define ALLOC_POSSIBLE
#define ALLOC_FAT_CHAIN
#define ALLOC_NO_FAT_CHAIN

#define DENTRY_SIZE
#define DENTRY_SIZE_BITS
/* exFAT allows 8388608(256MB) directory entries */
#define MAX_EXFAT_DENTRIES

/* dentry types */
#define EXFAT_UNUSED
#define EXFAT_DELETE
#define IS_EXFAT_DELETED(x)
#define EXFAT_INVAL
#define EXFAT_BITMAP
#define EXFAT_UPCASE
#define EXFAT_VOLUME
#define EXFAT_FILE
#define EXFAT_GUID
#define EXFAT_PADDING
#define EXFAT_ACLTAB
#define EXFAT_STREAM
#define EXFAT_NAME
#define EXFAT_ACL
#define EXFAT_VENDOR_EXT
#define EXFAT_VENDOR_ALLOC

#define IS_EXFAT_CRITICAL_PRI(x)
#define IS_EXFAT_BENIGN_PRI(x)
#define IS_EXFAT_CRITICAL_SEC(x)

/* checksum types */
#define CS_DIR_ENTRY
#define CS_BOOT_SECTOR
#define CS_DEFAULT

/* file attributes */
#define EXFAT_ATTR_READONLY
#define EXFAT_ATTR_HIDDEN
#define EXFAT_ATTR_SYSTEM
#define EXFAT_ATTR_VOLUME
#define EXFAT_ATTR_SUBDIR
#define EXFAT_ATTR_ARCHIVE

#define EXFAT_ATTR_RWMASK

#define BOOTSEC_JUMP_BOOT_LEN
#define BOOTSEC_FS_NAME_LEN
#define BOOTSEC_OLDBPB_LEN

#define EXFAT_FILE_NAME_LEN

#define EXFAT_MIN_SECT_SIZE_BITS
#define EXFAT_MAX_SECT_SIZE_BITS
#define EXFAT_MAX_SECT_PER_CLUS_BITS(x)

/* EXFAT: Main and Backup Boot Sector (512 bytes) */
struct boot_sector {} __packed;

struct exfat_dentry {} __packed;

#define EXFAT_TZ_VALID

/* Jan 1 GMT 00:00:00 1980 */
#define EXFAT_MIN_TIMESTAMP_SECS
/* Dec 31 GMT 23:59:59 2107 */
#define EXFAT_MAX_TIMESTAMP_SECS

#endif /* !_EXFAT_RAW_H */