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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fatfs.h

?? eCos操作系統源碼
?? H
字號:
#ifndef CYGONCE_FATFS_FATFS_H#define CYGONCE_FATFS_FATFS_H//==========================================================================////      fatfs.h////      FAT file system header ////==========================================================================//####ECOSGPLCOPYRIGHTBEGIN####// -------------------------------------------// This file is part of eCos, the Embedded Configurable Operating System.// Copyright (C) 2003 Savin Zlobec //// eCos 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; either version 2 or (at your option) any later version.//// eCos 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.//// You should have received a copy of the GNU General Public License along// with eCos; if not, write to the Free Software Foundation, Inc.,// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.//// 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.//// -------------------------------------------//####ECOSGPLCOPYRIGHTEND####//==========================================================================//#####DESCRIPTIONBEGIN####//// Author(s):           savin // Date:                2003-06-29////####DESCRIPTIONEND####////==========================================================================#include <pkgconf/fs_fat.h>#include <cyg/kernel/kapi.h>#include <cyg/infra/cyg_type.h>#include <cyg/io/io.h>#include <blib/blib.h>#include <unistd.h>#include <sys/types.h>#include <fcntl.h>#include <sys/stat.h>#include <errno.h>#include <dirent.h>#include <stdlib.h>#include <string.h>#include <cyg/fileio/fileio.h>// --------------------------------------------------------------------------#define FATFS_HASH_TABLE_SIZE CYGNUM_FS_FAT_NODE_HASH_TABLE_SIZE #define FATFS_NODE_ALLOC_THRESHOLD CYGNUM_FS_FAT_NODE_ALLOC_THRESHOLD #define FATFS_FAT_TABLE_CACHE_INCREMENT CYGNUM_FS_FAT_FAT_TABLE_CACHE_INCREMENT #ifdef CYGDBG_FS_FAT_NODE_CACHE_EXTRA_CHECKS# define FATFS_NODE_CACHE_EXTRA_CHECKS 1#endif// --------------------------------------------------------------------------// Node cache tracing support//#define FATFS_TRACE_NODE_CACHE 1// FAT table cache tracing support//#define FATFS_TRACE_FAT_TABLE_CACHE 1// FAT table operations tracing support //#define FATFS_TRACE_FAT_TABLE 1// FAT dir entry operations tracing support //#define FATFS_TRACE_DIR_ENTRY 1// FAT clusters operations tracing support //#define FATFS_TRACE_CLUSTER 1// FAT data tracing support //#define FATFS_TRACE_DATA 1// FAT file operations tracing support //#define FATFS_TRACE_FILE_OP 1// FAT filesystem operations tracing support //#define FATFS_TRACE_FS_OP 1// --------------------------------------------------------------------------typedef enum fatfs_type_e{    FATFS_FAT12 = 0,        FATFS_FAT16         } fatfs_type_t;typedef struct fatfs_data_pos_s{    cyg_uint32 cluster;      // Cluster number    cyg_uint32 cluster_snum; // Cluster file seq number                              // (0 - first cluster of file,                             //  1 - second cluster of file, ...)      cyg_uint32 cluster_pos;  // Position inside cluster} fatfs_data_pos_t;typedef struct fatfs_tcache_s{    cyg_uint32 *clusters; // Cached clusters array    cyg_uint32  size;     // Number of cached clusters in array    cyg_uint32  max_size; // Size of array (allocated space)} fatfs_tcache_t;typedef struct fatfs_node_s{    char                 filename[12+1]; // File name    mode_t               mode;           // Node type    cyg_ucount32         refcnt;         // Open file/current dir references    size_t               size;           // Size of file in bytes    time_t               ctime;          // Creation timestamp    time_t               atime;          // Last access timestamp    time_t               mtime;          // Last write timestamp    cyg_uint8            priv_data;      // Private data    cyg_uint32           cluster;        // First cluster number    cyg_uint32           parent_cluster; // First cluster of parent dentry    fatfs_data_pos_t     dentry_pos;     // Position of node's dir entry on disk    struct fatfs_node_s *list_prev;      // Next node in list    struct fatfs_node_s *list_next;      // Prev node in list    struct fatfs_node_s *hash_next;      // Next node in hash    fatfs_tcache_t       tcache;         // Node FAT table clusters cache } fatfs_node_t;typedef struct fatfs_hash_table_s {    cyg_uint32     size;                         // Number of slots    cyg_uint32     n;                            // Number of nodes     fatfs_node_t  *nodes[FATFS_HASH_TABLE_SIZE]; // Nodes slots} fatfs_hash_table_t;typedef struct fatfs_node_list_s{    cyg_uint32    size;          // Number of nodes in list    fatfs_node_t *first;         // First node in list    fatfs_node_t *last;          // Last node in list} fatfs_node_list_t;typedef struct fatfs_disk_s{    cyg_uint32   sector_size;        // Sector size in bytes    cyg_uint32   sector_size_log2;   // Sector size log2    cyg_uint32   cluster_size;       // Cluster size in bytes    cyg_uint32   cluster_size_log2;  // Cluster size log2     cyg_uint32   fat_tbl_pos;        // Position of the first FAT table    cyg_uint32   fat_tbl_size;       // FAT table size in bytes    cyg_uint32   fat_tbl_nents;      // Number of entries in FAT table    cyg_uint32   fat_tbls_num;       // Number of FAT tables    cyg_uint32   fat_root_dir_pos;   // Position of the root dir    cyg_uint32   fat_root_dir_size;  // Root dir size in bytes     cyg_uint32   fat_root_dir_nents; // Max number of entries in root dir    cyg_uint32   fat_data_pos;       // Position of data area    fatfs_type_t fat_type;           // Type of FAT - 12 or 16        cyg_io_handle_t  dev_h;          // Disk device handle    fatfs_node_t    *root;           // Root dir node    cyg_uint8       *tcache_mem;     // FAT table cache memory base    cyg_handle_t     tcache_mpool_h; // FAT table cache memory pool handle     cyg_mempool_var  tcache_mpool;   // FAT table cache memory pool struct     cyg_uint8       *bcache_mem;     // Block cache memory base    cyg_blib_t       blib;           // Block cache and access library instance    fatfs_node_list_t  live_nlist;   // List of nodes with refcnt > 0    fatfs_node_list_t  dead_nlist;   // List of nodes with refcnt == 0    fatfs_hash_table_t node_hash;    // Hash of nodes in live and dead lists} fatfs_disk_t;// --------------------------------------------------------------------------int  fatfs_get_disk_info(fatfs_disk_t *disk);void fatfs_get_root_node(fatfs_disk_t *disk, fatfs_node_t *root);bool fatfs_is_node_root_node(fatfs_node_t *node);int  fatfs_get_dir_entry_node(fatfs_disk_t *disk,                              fatfs_node_t *dir,                              cyg_uint32   *pos,                              fatfs_node_t *node);int  fatfs_write_file_attr(fatfs_disk_t *disk, fatfs_node_t *node);int  fatfs_delete_file(fatfs_disk_t *disk, fatfs_node_t *node);int  fatfs_create_file(fatfs_disk_t *disk,                        fatfs_node_t *dir,                        const char   *name,                       int           namelen,                       fatfs_node_t *node);int  fatfs_create_dir(fatfs_disk_t *disk,                       fatfs_node_t *dir,                       const char   *name,                      int           namelen,                      fatfs_node_t *node);int  fatfs_trunc_file(fatfs_disk_t *disk, fatfs_node_t *node);int  fatfs_rename_file(fatfs_disk_t *disk,                        fatfs_node_t *dir1,                       fatfs_node_t *node,                       fatfs_node_t *dir2,                       const char   *name,                       int           namelen);int  fatfs_read_data(fatfs_disk_t *disk,                     fatfs_node_t *node,                     void         *data,                     cyg_uint32   *len,                     cyg_uint32    off);int  fatfs_write_data(fatfs_disk_t *disk,                      fatfs_node_t *node,                      void         *data,                      cyg_uint32   *len,                      cyg_uint32    off);// --------------------------------------------------------------------------void fatfs_node_cache_init(fatfs_disk_t *disk);void fatfs_node_cache_flush(fatfs_disk_t *disk);fatfs_node_t *fatfs_node_alloc(fatfs_disk_t *disk, fatfs_node_t *node_data);void fatfs_node_ref(fatfs_disk_t *disk, fatfs_node_t *node);void fatfs_node_unref(fatfs_disk_t *disk, fatfs_node_t *node);void fatfs_node_touch(fatfs_disk_t *disk, fatfs_node_t *node);void fatfs_node_rehash(fatfs_disk_t *disk, fatfs_node_t *node);void fatfs_node_free(fatfs_disk_t *disk, fatfs_node_t *node);fatfs_node_t* fatfs_node_find(fatfs_disk_t *disk,                               const char   *name,                               unsigned int  namelen,                               cyg_uint32    parent_cluster);int  fatfs_get_live_node_count(fatfs_disk_t *disk);int  fatfs_get_dead_node_count(fatfs_disk_t *disk);void fatfs_node_flush_dead_tcache(fatfs_disk_t *disk);// --------------------------------------------------------------------------int  fatfs_tcache_create(fatfs_disk_t *disk, cyg_uint32 mem_size);void fatfs_tcache_delete(fatfs_disk_t *disk);void fatfs_tcache_init(fatfs_disk_t *disk, fatfs_tcache_t *tcache);void fatfs_tcache_flush(fatfs_disk_t *disk, fatfs_tcache_t *tcache);bool fatfs_tcache_get(fatfs_disk_t   *disk,                      fatfs_tcache_t *tcache,                       cyg_uint32      num,                       cyg_uint32     *cluster);bool fatfs_tcache_get_last(fatfs_disk_t   *disk,                           fatfs_tcache_t *tcache,                            cyg_uint32     *num,                            cyg_uint32     *cluster);bool fatfs_tcache_set(fatfs_disk_t   *disk,                      fatfs_tcache_t *tcache,                       cyg_uint32      num,                       cyg_uint32      cluster);// --------------------------------------------------------------------------// Support routines// These enable the definition of local versions of certain routines// if the given packages are not present.#ifndef CYGPKG_LIBC_I18N__externC int toupper( int c );#endif#ifndef CYGFUN_LIBC_STRING_BSD_FUNCS__externC int strcasecmp( const char *s1, const char *s2 );__externC int strncasecmp( const char *s1, const char *s2, size_t n );#endif// --------------------------------------------------------------------------#endif // CYGONCE_FATFS_FATFS_H// --------------------------------------------------------------------------// EOF fatfs.h

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精华液网站w | 美女网站视频久久| 久久久亚洲欧洲日产国码αv| 欧美一级片在线| 日韩欧美国产三级| 久久伊人中文字幕| 欧美一区二区三区婷婷月色| 国产亚洲精品久| 亚洲精品在线网站| 日韩一区二区三区四区| 欧美色区777第一页| 欧美一二三区精品| 懂色av一区二区夜夜嗨| 国产亚洲欧洲一区高清在线观看| 精品国产乱码久久久久久久| 久久久三级国产网站| 国产调教视频一区| 亚洲免费观看高清完整版在线观看| 欧美精品九九99久久| 色呦呦国产精品| 不卡电影一区二区三区| 国产一区二区h| 欧美a级理论片| 五月激情综合婷婷| 午夜伊人狠狠久久| 亚洲电影你懂得| 黄色成人免费在线| 狠狠网亚洲精品| 99在线视频精品| 色综合久久88色综合天天6 | 91精品福利在线一区二区三区 | 国产精品家庭影院| 日韩精品专区在线| 夜夜嗨av一区二区三区网页 | 欧美成人性战久久| 欧美丰满一区二区免费视频| 26uuu国产一区二区三区| 国产精品国产自产拍高清av| 午夜久久久久久久久久一区二区| 国产在线麻豆精品观看| 欧美视频一区在线| 欧美视频一区在线| 中文字幕av一区二区三区| 五月天精品一区二区三区| 成人午夜伦理影院| 成人精品国产福利| 日韩色视频在线观看| 亚洲婷婷在线视频| 亚洲成av人在线观看| 成人av资源下载| 欧美岛国在线观看| 五月婷婷欧美视频| 色综合天天综合网天天看片| 欧美性猛交xxxxxx富婆| 日本一区二区三区四区 | 亚洲综合区在线| 亚洲444eee在线观看| 99国产精品久久久久久久久久| 色天使久久综合网天天| 久久精品一级爱片| 久久狠狠亚洲综合| av在线一区二区| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲高清视频的网址| 久久不见久久见中文字幕免费| 欧美中文字幕亚洲一区二区va在线| 在线成人av影院| 亚洲第一狼人社区| 欧美色视频一区| 午夜免费欧美电影| 欧美视频第二页| 一区二区三区在线高清| 色8久久精品久久久久久蜜| 这里只有精品99re| 国产精品水嫩水嫩| 全国精品久久少妇| 91精品国产色综合久久不卡蜜臀| 亚洲一二三级电影| 精品视频123区在线观看| 亚洲成人动漫av| 91精品国产高清一区二区三区| 国产精品乡下勾搭老头1| 一本到一区二区三区| 亚洲欧美日韩精品久久久久| 色综合久久久久综合99| 亚洲国产精品综合小说图片区| 欧美中文字幕亚洲一区二区va在线 | 精品国产乱码久久久久久夜甘婷婷| 日本欧美久久久久免费播放网| 成人一道本在线| 亚洲视频每日更新| 欧洲精品在线观看| 亚洲mv在线观看| 日韩欧美中文字幕制服| 国产一区二区三区观看| 中文字幕一区二区三区在线观看 | 久久亚洲精品国产精品紫薇| 国产一区二区成人久久免费影院 | 首页欧美精品中文字幕| 成人涩涩免费视频| 亚洲精品久久嫩草网站秘色| 懂色av一区二区三区蜜臀| 一区在线观看免费| 欧美男人的天堂一二区| 亚洲精品视频自拍| 91精品婷婷国产综合久久竹菊| 狠狠色丁香久久婷婷综合丁香| 国产精品福利影院| 欧美一卡2卡3卡4卡| 成人免费视频免费观看| 亚洲va欧美va人人爽午夜| 精品久久久久久久久久久久久久久 | 欧美卡1卡2卡| 国产专区综合网| 一区二区不卡在线播放| 欧美变态tickling挠脚心| 99视频一区二区| 免费高清成人在线| 亚洲激情网站免费观看| 2024国产精品视频| 欧美在线免费视屏| 国产成人日日夜夜| 欧美国产日产图区| 日韩一区二区三区在线观看| 99精品一区二区三区| 精品一区二区在线视频| 久久久久久夜精品精品免费| 欧美自拍丝袜亚洲| 国产成人自拍在线| 青青草97国产精品免费观看| 亚洲免费观看高清完整| 国产亚洲精品免费| 欧美成人aa大片| 欧美日韩午夜影院| 91麻豆国产在线观看| 亚洲成av人片一区二区| 最近中文字幕一区二区三区| 久久综合九色综合欧美98| 欧美一区二区精品在线| 欧美亚洲自拍偷拍| 91碰在线视频| 成人91在线观看| 成人黄页在线观看| 国产成人av资源| 黑人巨大精品欧美黑白配亚洲| 日韩精品视频网| 水蜜桃久久夜色精品一区的特点 | 欧美亚洲国产怡红院影院| 99国产精品一区| 99久久精品免费看| 99re成人精品视频| 99re视频精品| 91国内精品野花午夜精品| 色综合天天综合网天天看片| 99久免费精品视频在线观看 | 欧美自拍丝袜亚洲| 在线亚洲+欧美+日本专区| 色视频成人在线观看免| 色嗨嗨av一区二区三区| 在线视频中文字幕一区二区| 欧美性色aⅴ视频一区日韩精品| 日韩一区二区免费高清| 欧美zozo另类异族| 337p日本欧洲亚洲大胆精品| 久久久国产精品不卡| 国产精品免费视频观看| 亚洲日本在线观看| 亚洲精品高清视频在线观看| 亚洲一二三四区| 日本欧美在线观看| 国内精品写真在线观看| 高清在线成人网| 91论坛在线播放| 日韩一区二区三免费高清| 久久免费偷拍视频| 亚洲女性喷水在线观看一区| 一级特黄大欧美久久久| 蜜桃一区二区三区四区| 国产mv日韩mv欧美| 欧美性色黄大片| 精品国产乱码久久久久久1区2区| 国产欧美精品一区| 亚洲一级在线观看| 精彩视频一区二区| 色综合色狠狠综合色| 91精品国产黑色紧身裤美女| 中文字幕第一区第二区| 丝袜国产日韩另类美女| 国产成人精品aa毛片| 欧美日韩一区精品| 久久精品视频网| 亚洲动漫第一页| 粉嫩欧美一区二区三区高清影视| 欧美影视一区在线| 国产亚洲欧美色| 天堂av在线一区| 色综合天天综合色综合av| 精品福利视频一区二区三区| 亚洲精品乱码久久久久久黑人| 精品午夜一区二区三区在线观看|