📄 _blkdev.h
字号:
/***********************************************************************************/
/* M-Systems Confidential */
/* Copyright (C) M-Systems Flash Disk Pioneers Ltd. 1995-2003 */
/* All Rights Reserved */
/***********************************************************************************/
/* NOTICE OF M-SYSTEMS OEM */
/* SOFTWARE LICENSE AGREEMENT */
/* */
/* THE USE OF THIS SOFTWARE IS GOVERNED BY A SEPARATE LICENSE */
/* AGREEMENT BETWEEN THE OEM AND M-SYSTEMS. REFER TO THAT AGREEMENT */
/* FOR THE SPECIFIC TERMS AND CONDITIONS OF USE, */
/* OR CONTACT M-SYSTEMS FOR LICENSE ASSISTANCE: */
/* E-MAIL = info@m-sys.com */
/***********************************************************************************/
/*
* $Log: V:/PVCSDB/DiskOnChip/archives/general storage/TrueFFS/src/include/_blkdev.h-arc $
*
* Rev 1.10 Jan 14 2004 22:28:24 oris
* Added flCloseAllFiles API for closing all files and lowering the global attention flag.
*
* Rev 1.9 Nov 20 2003 18:47:20 omerk
* Added TFFS_DLL_API prefix to flBuildGeometry routine.
*
* Rev 1.8 Nov 19 2003 17:28:36 omerk
* Insert flBuildGeometry routine prototype
*
* Rev 1.7 Oct 20 2003 08:59:12 oris
* Changed FL_LONG_FILENAMES_SUPPORT to a negative FL_NO_LONG_FILENAMES_SUPPORT
*
* Rev 1.6 Sep 30 2003 17:55:08 oris
* Changed FILES to FL_FILES
* Moved definitions for SureFS API to dosformt.h
* Added FL prefix to most of SureFS definition.
* Added flFlushFile API
* Added flAsciiStringToUnicode,flUnicodeStringToAscii and flUnicodeStringLength API
* Removed flBuildGeometry routine prototype.
*
* Rev 1.5 Jun 16 2003 01:17:48 oris
* Added TFFS_DLL_API prefix.
*
* Rev 1.4 May 16 2003 00:56:22 OriS
* Removed flPhsycalRead, flPhsycalWrite , flPhsycalErase routines.
*
* Rev 1.3 May 11 2003 08:26:52 OriS
* Added support for the FL_NO_QUICK_MOUNT_FEATURE compilation flag.
* Added support for flWriteQuickMountInfo(ioreq) routine.
* Changed interface definition from FL_QUICK_MOUNT_INFO_EXIST to FL_ON (quick mount routine)
*
* Rev 1.2 May 08 2003 23:17:58 OriS
* Added getQuickMount prototype
*
* Rev 1.1 Apr 13 2003 20:29:12 OriS
* Changed FL_EXTENEDED_DISK_INFO to FL_EXTENDED_DISK_INFO
*
* Rev 1.0 Apr 09 2003 12:16:00 OriS
* Initial revision.
*
*/
#ifndef _BLKDEV_H
#define _BLKDEV_H
#if (defined(FL_FILES) && (FL_FILES > 0))
#ifndef FL_READ_ONLY
/*----------------------------------------------------------------------*/
/* f l F l u s h B u f f e r */
/* */
/* If there is relevant data in the RAM buffer then writes it on */
/* the flash memory. */
/* */
/* Parameters: */
/* irHandle : Drive number (0, 1, ...) */
/* bits 7-4 - Partition # (zero based) */
/* bits 3-0 - Socket # (zero based) */
/* */
/* Returns: */
/* FLStatus : 0 on success, otherwise failed */
/*----------------------------------------------------------------------*/
#define flFlushBuffer(ioreq) bdCall(FL_FLUSH_BUFFER,ioreq)
#endif /* READ_ONLY */
/*----------------------------------------------------------------------*/
/* f l O p e n F i l e */
/* */
/* Opens an existing file or creates a new file. Creates a file handle */
/* for further file processing. */
/* */
/* Parameters: */
/* irHandle : Drive number (0, 1, ...) */
/* bits 7-4 - Partition # (zero based) */
/* bits 3-0 - Socket # (zero based) */
/* irFlags : Access and action options, defined below */
/* irPath : path of file to open */
/* Simple path API : Points to FLSimplePath (8.3 file name, */
/* defined in ioreq.h) array. First character of */
/* the last array member must be null. */
/* ASCII API : Points to ASCII null terminated character string */
/* Unicode API : Points to Unicode null terminated string */
/* */
/* Returns: */
/* FLStatus : 0 on success, otherwise failed */
/* irHandle : New file handle for open file */
/* */
/*----------------------------------------------------------------------*/
#define flOpenFile(ioreq) bdCall(FL_OPEN_FILE,ioreq)
/*----------------------------------------------------------------------*/
/* f l C l o s e F i l e */
/* */
/* Closes an open file, records file size and dates in directory and */
/* releases file handle. */
/* */
/* Parameters: */
/* irHandle : Handle of file to close. */
/* */
/* Returns: */
/* FLStatus : 0 on success, otherwise failed */
/*----------------------------------------------------------------------*/
#define flCloseFile(ioreq) bdCall(FL_CLOSE_FILE,ioreq)
#ifndef FL_NO_SURE_FS_SUPPORT
/*----------------------------------------------------------------------*/
/* f l F l u s h F i l e */
/* */
/* Make the same like flCloseFile() except closing file. Records file */
/* size and dates in directory but does not release file handle. */
/* */
/* Parameters: */
/* irHandle : Handle of file to close. */
/* */
/* Returns: */
/* FLStatus : 0 on success, otherwise failed */
/*----------------------------------------------------------------------*/
#define flFlushFile(ioreq) bdCall(FL_FLUSH_FILE,ioreq)
#endif /* FL_NO_SURE_FS_SUPPORT */
#ifndef FL_READ_ONLY
#ifdef SPLIT_JOIN_FILE
/*------------------------------------------------------------------------*/
/* f l S p l i t F i l e */
/* */
/* Splits the file into two files. The original file contains the first */
/* part, and a new file (which is created for that purpose) contains */
/* the second part. If the current position is on a cluster */
/* boundary, the file will be split at the current position. Otherwise, */
/* the cluster of the current position is duplicated, one copy is the */
/* first cluster of the new file, and the other is the last cluster of the*/
/* original file, which now ends at the current position. */
/* */
/* Parameters: */
/* file : file to split. */
/* irPath : Path name of the new file. */
/* Simple path API : Points to FLSimplePath (8.3 file name, */
/* defined in ioreq.h) array. First character of the last */
/* array member must be null. */
/* ASCII API : Points to ASCII null terminated character string */
/* Unicode API : Points to Unicode null terminated string */
/* */
/* Returns: */
/* irHandle : handle of the new file. */
/* FLStatus : 0 on success, otherwise failed. */
/* */
/*------------------------------------------------------------------------*/
#define flSplitFile(ioreq) bdCall(FL_SPLIT_FILE,ioreq)
/*------------------------------------------------------------------------*/
/* f l J o i n F i l e */
/* */
/* joins two files. If the end of the first file is on a cluster */
/* boundary, the files will be joined there. Otherwise, the data in */
/* the second file from the beginning until the offset that is equal to */
/* the offset in cluster of the end of the first file will be lost. The */
/* rest of the second file will be joined to the first file at the end of */
/* the first file. On exit, the first file is the expanded file and the */
/* second file is deleted. */
/* Note: The second file will be open by this function, it is advised to */
/* close it before calling this function in order to avoid */
/* inconsistencies. */
/* */
/* Parameters: */
/* file : file to join to. */
/* irPath : Path name of the file to be joined. */
/* Simple path API : Points to FLSimplePath (8.3 file name, */
/* defined in ioreq.h) array. First character of */
/* the last array member must be null. */
/* ASCII API : Points to ASCII null terminated character string */
/* Unicode API : Points to Unicode null terminated string */
/* */
/* Return: */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -