CD exfat support for Tomato. https://github.com/dorimanx/exfat-nofuse.
[tomato.git] / release / src-rt / linux / linux-2.6 / fs / exfat / exfat_data.h
blobf1a0332c961bd67da3116bf22c4b5bbd4cec5dfe
1 /*
2 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 /************************************************************************/
20 /* */
21 /* PROJECT : exFAT & FAT12/16/32 File System */
22 /* FILE : exfat_data.h */
23 /* PURPOSE : Header File for exFAT Configuable Constants */
24 /* */
25 /*----------------------------------------------------------------------*/
26 /* NOTES */
27 /* */
28 /*----------------------------------------------------------------------*/
29 /* REVISION HISTORY (Ver 0.9) */
30 /* */
31 /* - 2010.11.15 [Joosun Hahn] : first writing */
32 /* */
33 /************************************************************************/
35 #ifndef _EXFAT_DATA_H
36 #define _EXFAT_DATA_H
38 #include "exfat_config.h"
39 #include "exfat_global.h"
41 #ifdef __cplusplus
42 extern "C" {
43 #endif /* __cplusplus */
45 /*======================================================================*/
46 /* */
47 /* FFS CONFIGURATIONS */
48 /* (CHANGE THIS PART IF REQUIRED) */
49 /* */
50 /*======================================================================*/
52 /* max number of block devices */
53 #define MAX_DEVICE 2
55 /* max number of volumes on all block devices */
56 #define MAX_DRIVE 2
58 /* max number of open files */
59 #define MAX_OPEN 20
61 /* max number of root directory entries in FAT12/16 */
62 /* (should be an exponential value of 2) */
63 #define MAX_DENTRY 512
65 /* cache size (in number of sectors) */
66 /* (should be an exponential value of 2) */
67 #define FAT_CACHE_SIZE 128
68 #define FAT_CACHE_HASH_SIZE 64
69 #define BUF_CACHE_SIZE 256
70 #define BUF_CACHE_HASH_SIZE 64
72 #ifndef CONFIG_EXFAT_DEFAULT_CODEPAGE
73 #define CONFIG_EXFAT_DEFAULT_CODEPAGE 437
74 #define CONFIG_EXFAT_DEFAULT_IOCHARSET "utf8"
75 #endif
77 #ifdef __cplusplus
79 #endif /* __cplusplus */
81 #endif /* _EXFAT_DATA_H */
83 /* end of exfat_data.h */