📄 flcustom.h
字号:
* * Enable H/W One Time Programing capability including unique ID/ * */#ifdef IOCTL_INTERFACE# define HW_OTP#endif/* H/W Protection * * Enable H/W protection of the device. * */#define HW_PROTECTION/* Protection agains power failures / Read after write * * Compiles the code for dealing with partially written pages caused by power * failures. The actual mode of operation is controlled by an environment * variable FL_VERIFY_WRITE_BDTL. When ENVIRONMENT_VARS is undefined this * compilation flag will result in read after every write. */#define VERIFY_WRITE 1/* Verify entire volume * * Compile the flVerifyVolume routine - this routine scans the entire disk * partition for power failures symptoms and correct them. * *//* #define VERIFY_VOLUME *//* Read after erase * * Add read after every erase operation verifing data integrity. * *//* #define VERIFY_ERASE *//* Make sure a page is erased before writing it * * Partial write of a page, due to power failures, might make TrueFFS * consider a the page as free (sector flags were not written properly). * As a result the next write operation might write over an already written * area. The result might be either bad data of exesive PPP. * Defining this flag causes TrueFFS to verfit the sector prior to reading it. *//* #define VERIFY_ERASED_SECTOR */#ifdef IOCTL_INTERFACE /* Binary Partition * * Enables access to the Binary partition. * */# define BDK_ACCESS#endif#ifdef BDK_ACCESS /* Number of Binary partitions on the DiskOnChip. * * Defines Maximum Number of Binary partitions on the DiskOnChip. * * The actual number of partitions depends on the format placed * on each device. */# define BINARY_PARTITIONS (3*SOCKETS)/* Remove Binary partition erase API *//* # define BDK_REMOVE_ERASE_BDK_IMAGE *//* Remove Binary partition create API *//* # define BDK_REMOVE_CREATE_BDK_IMAGE *//* Compile the Binary partition read and write to file example code * * This compilation flag is relevant only for the BDK package. *//* # define BDK_IMAGE_TO_FILE *//* Compiles the code that calculates the checksum in the read routines. * * This compilation flag is relevant only for the BDK package. *//* # define BDK_CHECK_SUM */#endif /* BDK_ACCESS *//* Remove runtime controll over memory access routines * * If defined memory access routines will be set at compile time using * dedicated defintions in flsystem.h * Note : when compile time customization is chosen, you must sepcify * the bus width even when working with DiskOnChip Millennium Plus. * Refer to Trueffs manual for more infromation. *//* #define FL_NO_USE_FUNC *//* * Removes the code used for writing and reading the IPL code. * */#ifndef IOCTL_INTERFACE# define NO_IPL_CODE#endif/* * Removes Physical access code * */#define NO_PHYSICAL_IO/* * Removes the inquire capability code. * */#define NO_INQUIRE_CAPABILITIES/* * Removes read Bad Block Table code. * */#ifndef IOCTL_INTERFACE# define NO_READ_BBT_CODE#endif#define NO_NFTL_2_INFTL /* for 5.x */#define FL_DISABLE_OLD_TRUEFFS_TYPES/* enable fat filter *//* #define FL_FAT_FILTER *//* * Yielding the CPU * * TrueFFS utilizes the routine flSleep to yield the CPU while * waiting for time consuming operations like a flash erase. * If the routine is not implemented, then uncomment the define below. *//* may be defined by tffs.build in tffs.h if CONFIG_DEBUG_SPINLOCK_SLEEP declared in kernel */#if defined(TFFS_USE_AMD_ISA) || defined(TFFS_USE_AMD_PCI)# ifndef DO_NOT_YIELD_CPU# define DO_NOT_YIELD_CPU# endif#else/* # define DO_NOT_YIELD_CPU */#endif/* Skip FL_SKIP_SLEEPS of (FL_SKIP_SLEEPS+1) calls to flsleep */#if (TFFS_SVER<60000)# define FL_SKIP_SLEEPS 0#else# define FL_SKIP_SLEEPS 2#endif/* Little-endian/big-endian * * FAT and translation layer structures use the little-endian (Intel) * format for integers. * If your machine uses the big-endian (Motorola) format, uncomment the * following line. * Note that even on big-endian machines you may omit the BIG_ENDIAN * definition for smaller code size and better performance, but your media * will not be compatible with standard FAT and FTL. *//* #define FL_BIG_ENDIAN *//* #define FL_NO_INIT_MMU_PAGES */#define FL_NO_SURE_FS_SUPPORT/* #define FL_LONG_FILE_NAME_SUPPORT *//* #define FL_XSCALE_BOOT_MODE - defined in tffs.make if CONFIG_ARM *//* #define FL_REPORT_MOUNT_PROGRESS *//* Compile the extended Disk information routine * * TrueFFS 6.0 and up provide an extended information routine for internal * M-Systems utilities named flGetExtendedDiskInfo(). * To compile its code define *//* #define FL_EXTENDED_DISK_INFO *//* Remove code used for binary partition partial page access * * Due to flash limitations, the binary partition requires special handling * to access (read and write) partial pages. When set this compilation flag * will remove the binary partition code and RAM buffers that handle partial * page access. */#define FL_NO_BDK_PARTIAL_PAGE_ACCESS/* enable EXT filter - only for 2.4 kernels *//* #define TFFS_USE_EXT_FILTER *//* default value of fl_extfilter insmod parameter: 0 - disabled, 1 - enabled */#define FL_EXTFILTER_DEF 1#if !defined(TFFS_USE_LIB) && !defined(ACCESS_ROUTINES_DEBUG)# define TFFS_ACCESS_MACROS#endif#define TFFS_NO_OF_PARTS_PER_DEVICE 16#define DEV2PART_SHIFT 5#define PART_MASK 0x1f#define TFFS_DEVICE_NAME "tffs"#define TFFS_MAJOR 100/* Allow TrueFFS to search for a DiskOnChip on address 0. * * For backwards compatibility reasons, TrueFFS does not allow DiskOnChip to * reside at address 0. If this address is given to the TrueFFS DiskOnChip * search routines, it will use the legacy BIOS extension address space. * To enable address 0 support, uncomment the definition bellow. *//* #define FL_ADD_ADDRESS_0_SUPPORT *//* Disable the automatic argument check * * You can remove code and even slightly improve the overall performance by * allowing TrueFFS to skip its internal argument check by defining * */#define FL_SKIP_ARGS_CHECK#ifdef IOCTL_INTERFACE/* non-OSAK IOCTLs defenitions */typedef struct{ unsigned long command; unsigned long data;}flInputLnxRecord;typedef struct{ unsigned long status; unsigned long data;} flOutputLnxRecord;/* end of non-TFFS IOCTLs defenitions */#endif /* IOCTL_INTERFACE *//* ------------------------------------------------------ *//* Some TFFS defines that can't be changed for the driver *//* ------------------------------------------------------ *//* Absolute read & write * * Uncomment the following line if you want to be able to read & write * sectors by absolute sector number (i.e. without regard to files and * directories). */#define ABS_READ_WRITE/* Number of open files * * Defines the maximum number of files that can be open at a time. */#define FILES 0#if FL_FILES > 0/* Sub-directories * * Uncomment the following line if you need support for sub-directories * using the FAT-FLITE file system. */# define SUB_DIRECTORY/* Rename file * * Uncomment the following line if you need to rename files with * flRenameFile. */# define RENAME_FILE/* Split / join file * * Uncomment the following line if you need to split or join files with * flSplitFile and flJoinFile. */# define SPLIT_JOIN_FILE /* 12-bit FAT support * * Comment the following line if you do not need support for DOS media with * 12-bit FAT (typically media of 8 MBytes or less). */# define FAT_12BIT/* Parse path function * * Uncomment the following line if you need to convert unicode strings to * ASCII and back. */# define PARSE_PATH#endif /* FL_FILES > 0 *//* Driver & TrueFFS (OSAK) Version numbers */#if (TFFS_SVER==51200)# define driverVersion "5.1.2"# define OSAKVersion "5.1.2"#elif (TFFS_SVER>=51400) && (TFFS_SVER<51500)# define driverVersion "5.1.4"# define OSAKVersion "5.1.4"#elif (TFFS_SVER==61000)# define driverVersion "6.1.0"# define OSAKVersion "6.1.0"#elif (TFFS_SVER==62000)# define driverVersion "6.2.0"# define OSAKVersion "6.2.0"#elif (TFFS_SVER==62100)# define driverVersion "6.2.1"# define OSAKVersion "6.2.1"#elif (TFFS_SVER==62200)# define driverVersion "6.2.2"# define OSAKVersion "6.2.2"#endif/* The feature removed, never define it *//* #define TFFS_KEY_FROM_PARAMS */#endif /* FLCUSTOM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -