亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fs.h

?? filesystem for at91sam9263ek,編輯器為keil for arm mdk
?? H
字號:
/*****************************************************************************\*              efs - General purpose Embedded Filesystem library              **          --------------------- -----------------------------------          **                                                                             ** Filename : fs.h                                                             ** Description : Headerfile for fs.c                                           **                                                                             ** This program is free software; you can redistribute it and/or               ** modify it under the terms of the GNU General Public License                 ** as published by the Free Software Foundation; version 2                     ** of the License.                                                             *                                                                              ** This program is distributed in the hope that it will be useful,             ** but WITHOUT ANY WARRANTY; without even the implied warranty of              ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               ** GNU General Public License for more details.                                **                                                                             ** As a special exception, if other files instantiate templates or             ** use macros or inline functions from this file, or you compile this          ** file and link it with other works to produce a work based on this file,     ** this file does not by itself cause the resulting work to be covered         ** by the GNU General Public License. However the source code for this         ** file must still be made available in accordance with section (3) of         ** the GNU General Public License.                                             **                                                                             ** This exception does not invalidate any other reasons why a work based       ** on this file might be covered by the GNU General Public License.            **                                                                             **                                                    (c)2006 Lennart Yseboodt **                                                    (c)2006 Michael De Nil   *\*****************************************************************************/#ifndef __FS_H_#define __FS_H_/*****************************************************************************/#include "config.h"#include "error.h"#include "partition.h"#include "types.h"#include "debug.h"#include "time.h"/*****************************************************************************/#define FAT12 1#define FAT16 2#define FAT32 3#define FS_INFO_SECTOR 1#define FSINFO_MAGIC_BEGIN 0x41615252#define FSINFO_MAGIC_END   0xAA550000/*****************************************************************************************\              VolumeId               ------  * ushort BytesPerSector		Must be 512 or shit happens.* uchar  SectorsPerCluster	Must be multiple of 2 (1,2,4,8,16 or 32)* ushort ReservedSectorCount	Number of sectors after which the first FAT begins.* uchar	 NumberOfFats		Should be 2* ushort RootEntryCount		Number of filerecords the Rootdir can contain. NOT for FAT32* ushort SectorCount16		Number of Sectors for 12/16 bit FAT * ushort FatSectorCount16	Number of Sectors for 1 FAT on FAT12/16 bit FAT's* ulong  SectorCount32		Number of Sectors for 32 bit FAT* ulong FatSectorCount32	Number of Sectors for 1 FAT on FAT32 * ulong RootCluster			Clusternumber of the first cluster of the RootDir on FAT 32This is NOT a complete volumeId copy, no direct I/O is possible.\*****************************************************************************************/struct VolumeId{	euint16 BytesPerSector;	euint8 SectorsPerCluster;	euint16 ReservedSectorCount;	euint8 NumberOfFats;	euint16 RootEntryCount;	euint16 SectorCount16;	euint16 FatSectorCount16;	euint32 SectorCount32;	euint32 FatSectorCount32;	euint32 RootCluster;};typedef struct VolumeId VolumeId;/**************************************************************************************************\              FileSystem               --------* Partition* 	part		Pointer to partition on which this FS resides.* VolumeId		volumeId	Contains important FS info.* ulong			DataClusterCount	Number of dataclusters. This number determines the FATType.* ulong			FatSectorCount		Number of sectors for 1 FAT, regardless of FATType* ulong			SectorCount			Number of sectors, regardless of FATType* ulong 		FirstSectorRootDir	First sector of the RootDir. * uchar			type				Determines FATType (FAT12 FAT16 or FAT32 are defined)\**************************************************************************************************/struct FileSystem{	Partition *part;	VolumeId volumeId;	euint32 DataClusterCount;	euint32 FatSectorCount;	euint32 SectorCount;	euint32 FirstSectorRootDir;	euint32 FirstClusterCurrentDir;	euint32 FreeClusterCount;	euint32 NextFreeCluster;	euint8 type;};typedef struct FileSystem FileSystem;/**************************************************************************************************\              FileLocation               ----------* euint32		Sector				Sector where the directoryentry of the file/directory can be found.* euint8		Offset				Offset (in 32byte segments) where in the sector the entry is.\**************************************************************************************************/struct FileLocation{	euint32 Sector;	euint8 Offset;	euint8 attrib;};typedef struct FileLocation FileLocation;/*****************************************************************************\*                               FileCache                                    *                              -----------                                   * This struct acts as cache for the current file. It contains the current    * FATPointer (next location in the FAT table), LogicCluster                  * (the last part of the file that was read) and DataCluster                  * (the last cluster that was read).     * euint8		Linear				For how many more clusters the file is nonfragmented* euint32		LogicCluster		This field determines the n'th cluster of the file as current* euint32		DiscCluster		If this field is 0, it means the cache is invalid. Otherwise									it is the clusternumber corresponding with 									logic(FirstCluster+LogicCluster).* euint32		FirstCluster		First cluster of the chain. Zero or one are invalid.* euint32		LastCluster		Last cluster of the chain (is not always filled in)\*****************************************************************************/struct ClusterChain{	euint8 Linear;	esint32 LogicCluster;	euint32 DiscCluster;	euint32 FirstCluster;	euint32 LastCluster;	euint32 ClusterCount;};typedef struct ClusterChain ClusterChain;/*****************************************************************************\*                               FileRecord                                    **                              ------------                                   ** This struct represents a 32 byte file entry as it occurs in the data area   ** of the filesystem. Direct I/O is possible.                                  *\*****************************************************************************/struct FileRecord{	euint8 FileName[11];	euint8 Attribute;	euint8 NTReserved;	euint8 MilliSecTimeStamp;	euint16 CreatedTime;	euint16 CreatedDate;	euint16 AccessDate;	euint16 FirstClusterHigh;	euint16 WriteTime;	euint16 WriteDate;	euint16 FirstClusterLow;	euint32 FileSize;};typedef struct FileRecord FileRecord;eint16 fs_initFs(FileSystem *fs,Partition *part);eint16 fs_isValidFat(Partition *part);void fs_loadVolumeId(FileSystem *fs, Partition *part);esint16 fs_verifySanity(FileSystem *fs);void fs_countDataSectors(FileSystem *fs);void fs_determineFatType(FileSystem *fs);void fs_findFirstSectorRootDir(FileSystem *fs);void fs_initCurrentDir(FileSystem *fs);euint32 fs_getSectorAddressRootDir(FileSystem *fs,euint32 secref);euint32 fs_clusterToSector(FileSystem *fs,euint32 cluster);euint32 fs_sectorToCluster(FileSystem *fs,euint32 sector);euint32 fs_getNextFreeCluster(FileSystem *fs,euint32 startingcluster);euint32 fs_giveFreeClusterHint(FileSystem *fs);esint16 fs_findFreeFile(FileSystem *fs,eint8* filename,FileLocation *loc,euint8 mode);esint8 fs_findFile(FileSystem *fs,eint8* filename,FileLocation *loc,euint32 *lastDir);esint8 fs_findFile_broken(FileSystem *fs,eint8* filename,FileLocation *loc);euint32 fs_getLastCluster(FileSystem *fs,ClusterChain *Cache);euint32 fs_getFirstClusterRootDir(FileSystem *fs);euint16 fs_makeDate(void);euint16 fs_makeTime(void);void fs_setFirstClusterInDirEntry(FileRecord *rec,euint32 cluster_addr);void fs_initClusterChain(FileSystem *fs,ClusterChain *cache,euint32 cluster_addr);esint8 fs_flushFs(FileSystem *fs);esint8 fs_umount(FileSystem *fs);esint8 fs_clearCluster(FileSystem *fs,euint32 cluster);esint8 fs_getFsInfo(FileSystem *fs,euint8 force_update);esint8 fs_setFsInfo(FileSystem *fs);#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线一区二区三区四区五区| 国产精品系列在线观看| 在线观看免费亚洲| 亚洲一区二区三区四区的 | 亚洲免费观看视频| 99精品一区二区三区| 亚洲精品视频在线看| 欧美在线小视频| 蜜臀av性久久久久av蜜臀妖精 | 国产夫妻精品视频| 日韩一区中文字幕| 欧美性猛交xxxx乱大交退制版| 亚洲国产精品久久艾草纯爱| 日韩精品一区国产麻豆| 国产一级精品在线| 日韩美女视频19| 欧美日韩三级一区二区| 国产一区二区在线电影| 中文字幕在线一区二区三区| 欧美日韩情趣电影| 精品一区二区三区免费观看| 国产精品大尺度| 欧美一区二区在线播放| 国产成人综合在线| 亚洲成人免费电影| 久久久另类综合| 欧美色国产精品| 国产黄色精品视频| 亚洲国产另类精品专区| 国产亚洲综合色| 欧美色男人天堂| 成人精品国产一区二区4080| 天涯成人国产亚洲精品一区av| 国产欧美一区二区在线观看| 欧美日韩国产一区二区三区地区| 狠狠色狠狠色综合| 亚洲综合另类小说| 国产日韩精品一区二区三区| 欧美精品乱码久久久久久| 国产精品一区二区黑丝| 日韩精品欧美精品| 国产精品国产三级国产三级人妇 | 亚洲电影一区二区三区| 国产日韩av一区二区| 91麻豆精品国产91久久久使用方法| 成人亚洲一区二区一| 日日欢夜夜爽一区| 亚洲视频一区二区免费在线观看| 精品88久久久久88久久久 | 91精品国产一区二区三区| av一区二区三区黑人| 久久超级碰视频| 五月婷婷欧美视频| 一区二区三区欧美| 国产精品国产成人国产三级| 久久久精品天堂| 欧美大片在线观看一区| 欧美另类一区二区三区| 欧美影院午夜播放| 91丨九色丨黑人外教| 成人黄色av网站在线| 经典三级在线一区| 另类人妖一区二区av| 日韩精品电影在线| 五月开心婷婷久久| 亚洲国产精品一区二区久久恐怖片| 亚洲视频一二三区| 最新国产の精品合集bt伙计| 国产精品久久久久久妇女6080| 日本一区二区视频在线| 国产三级欧美三级日产三级99| 欧美不卡一区二区三区四区| 91精品国产丝袜白色高跟鞋| 欧美肥妇bbw| 91精品国产欧美日韩| 91精品中文字幕一区二区三区| 7777精品伊人久久久大香线蕉完整版 | 老司机午夜精品99久久| 天使萌一区二区三区免费观看| 亚洲自拍偷拍九九九| 亚洲精品欧美二区三区中文字幕| 亚洲欧美日韩国产一区二区三区| 亚洲黄色在线视频| 亚洲一级在线观看| 日韩黄色小视频| 久久精品国产精品青草| 国产精品自产自拍| 不卡欧美aaaaa| 色综合中文字幕国产 | 欧美精品123区| 91麻豆精品国产91久久久使用方法| 在线播放欧美女士性生活| 日韩一区二区三区免费看| 欧美成人综合网站| 久久精品网站免费观看| 中文字幕一区二区三区精华液| 亚洲黄色片在线观看| 五月综合激情日本mⅴ| 麻豆成人久久精品二区三区红| 国产乱码精品一区二区三区五月婷| 国产成人精品三级麻豆| 91免费看`日韩一区二区| 欧美三级电影一区| 精品乱码亚洲一区二区不卡| 中文字幕不卡在线播放| 亚洲精选视频在线| 日韩电影免费在线观看网站| 精品亚洲成av人在线观看| 成人黄页在线观看| 欧美日韩精品一区二区三区蜜桃 | 欧美精品一级二级| 久久免费美女视频| 亚洲日穴在线视频| 日韩国产精品久久久久久亚洲| 国产成人免费在线观看不卡| 一本一本大道香蕉久在线精品| 91精品国产丝袜白色高跟鞋| 国产精品理论片| 日本怡春院一区二区| av一区二区久久| 精品日韩欧美一区二区| 亚洲美女少妇撒尿| 国产一区亚洲一区| 精品污污网站免费看| 久久久综合网站| 亚洲国产精品一区二区久久恐怖片 | 欧美日韩一区二区三区视频| 精品国产伦理网| 一区二区三区在线免费播放| 国精品**一区二区三区在线蜜桃| 色94色欧美sute亚洲线路一久| 精品国产第一区二区三区观看体验| 亚洲日本va午夜在线影院| 韩国中文字幕2020精品| 欧美综合色免费| 欧美韩日一区二区三区| 六月丁香婷婷色狠狠久久| 色94色欧美sute亚洲线路二| 国产三级精品在线| 麻豆精品在线看| 欧美日韩国产片| 亚洲人xxxx| 成人一区二区视频| 精品精品欲导航| 日本中文字幕一区二区视频| 色婷婷久久久久swag精品| 国产欧美中文在线| 国内外精品视频| 制服丝袜一区二区三区| 一区二区在线观看免费| 成人av免费在线播放| 久久久久久97三级| 精品制服美女丁香| 日韩精品一区二区三区在线观看| 午夜欧美大尺度福利影院在线看 | 欧美福利视频一区| 亚洲永久免费av| 91女神在线视频| 亚洲日本在线a| 91影视在线播放| 亚洲精品乱码久久久久久久久 | 国产麻豆精品95视频| 欧美成人在线直播| 激情久久五月天| 精品卡一卡二卡三卡四在线| 久久成人综合网| 久久亚洲一区二区三区四区| 国产麻豆精品久久一二三| 久久一夜天堂av一区二区三区| 国内精品伊人久久久久av影院| 精品国产91九色蝌蚪| 国产在线视频精品一区| 国产清纯白嫩初高生在线观看91 | 国产精品―色哟哟| 国产91在线看| 国产精品三级久久久久三级| 成人国产视频在线观看| 亚洲欧美日韩人成在线播放| 欧美最新大片在线看| 日韩主播视频在线| 欧美xxxxx牲另类人与| 精品一区二区免费| 久久精品亚洲麻豆av一区二区| 懂色av噜噜一区二区三区av| 亚洲婷婷综合久久一本伊一区| 在线免费观看不卡av| 日韩中文字幕av电影| 精品乱人伦一区二区三区| 丁香婷婷综合网| 亚洲精品亚洲人成人网| 7777精品伊人久久久大香线蕉超级流畅 | 免费观看一级特黄欧美大片| 久久精品一区二区三区不卡 | 日韩电影在线看| 久久午夜免费电影| 99精品欧美一区二区蜜桃免费| 亚洲成人午夜电影| 日韩精品一区二区在线观看| 99精品一区二区三区| 日本中文字幕一区二区视频 |