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

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

?? flsystem.h

?? M-System公司最新的DOC電子盤的TFFS驅動程序,支持最新的DOC芯片和MSystem電子盤
?? H
字號:

/*
 * $Log:   V:/Flite/archives/OSAK/examples/drivers/VxWorks/systems/flsystem.h_V  $
 * 
 *    Rev 1.9   16 May 2003 20:02:42   andrayk
 * TrueFFS-5.1.4
 * 
 *    Rev 1.8   03 May 2002 20:12:32   andreyk
 * added FL_NO_INIT_MMU_PAGES
 * 
 *    Rev 1.7   21 Sep 2001 17:47:40   andreyk
 * BIG_ENDIAN changed to FL_BIG_ENDIAN
 * flMsecToYieldCPU added
 * 
 *    Rev 1.6   03 Sep 2001 03:43:08   andreyk
 * alignment of file system's buffers
 * 
 *    Rev 1.5   16 Jul 2001 16:06:52   andreyk
 * DFORMAT_PRINT added
 * 
 *    Rev 1.4   Jun 20 2001 19:56:26   oris
 * minor change to copyright statement
 * 
 *    Rev 1.3   17 May 2001 02:34:10   andreyk
 * bug fixes in osak-5
 * 
 *    Rev 1.2   May 28 2000 11:15:00   vadimk
 * OSAK-4.1 with IOCTL support
 * 
 *    Rev 1.1   Apr 27 2000 11:52:10   vadimk
 * remove stdmem*** definitions

      Rev 1.5   03 Nov 1997 16:27:14   danig
   pointerToPhysical

      Rev 1.4   11 Sep 1997 14:14:22   danig
   physicalToPointer receives drive no. when FAR == 0

      Rev 1.3   04 Sep 1997 13:58:30   danig
   DEBUG_PRINT

      Rev 1.2   28 Aug 1997 16:39:32   danig
   include stdlib.h instead of malloc.h

      Rev 1.1   19 Aug 1997 20:05:06   danig
   Andray's changes

      Rev 1.0   24 Jul 1997 18:13:06   amirban
   Initial revision.
 */

/******************************************************************************* 
 *                                                                             * 
 *                        M-Systems Confidential                               * 
 *           Copyright (C) M-Systems Flash Disk Pioneers Ltd. 1995-2001        * 
 *                         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                                                * 
 *                                                                             * 
 ******************************************************************************* 
 *                                                                             * 
 *                         Module: FLSYSTEM                                    * 
 *                                                                             * 
 *  This module implements VxWorks-to-TFFS bindings.                           *
 *                                                                             * 
 *******************************************************************************/




#ifndef FLSYSTEM_H
#define FLSYSTEM_H




#ifdef __cplusplus
  extern "C" {
#endif




/* VxWorks #includes */
#include <vxWorks.h>
#include <tickLib.h>
#include <sysLib.h>
#include <semLib.h>
#include <ioLib.h>
#include <errnoLib.h>
#include <taskLib.h>
#include <memLib.h>

/* ANSI C #includes */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <ctype.h>




/*
 *          signed/unsigned char
 *
 * It is assumed that 'char' is signed. If this is not your compiler
 * default, use compiler switches, or insert a #pragma here to define this.
 *
 */

/* char is signed by default in GNU C */


/*          CPU target
 *
 * Use compiler switches or insert a #pragma here to select the CPU type
 * you are targeting.
 *
 * If the target is an Intel 80386 or above, also uncomment the CPU_i386
 * definition.
 */

/* should be defined in Makefile */


/*          NULL constant
 *
 * Some compilers require a different definition for the NULL pointer
 */

/* using VxWorks default */


/*          Little-endian/big-endian
 *
 * FAT and translation layers 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 FL_BIG_ENDIAN
 * definition for smaller code size and better performance, but your media
 * will not be compatible with standard FAT and FTL.
 */

/* we are using VxWorks #define _BYTE_ORDER here */
#ifndef _BYTE_ORDER
#error "byte order is not defined"
#else  /* _BYTE_ORDER */
#if (_BYTE_ORDER == _BIG_ENDIAN)
#define FL_BIG_ENDIAN
#else  /* (_BYTE_ORDER == _BIG_ENDIAN) */
#undef FL_BIG_ENDIAN
#endif /* (_BYTE_ORDER == _BIG_ENDIAN) */
#endif /* _BYTE_ORDER */


/*          Far pointers
 *
 * Specify here which pointers may be far, if any.
 * Far pointers are usually relevant only to 80x86 architectures.
 *
 * Specify FAR_LEVEL:
 *   0 -    if using a flat memory model or having no far pointers.
 *   1 -        if only the socket window may be far
 *   2 -    if only the socket window and caller's read/write buffers
 *      may be far.
 *   3 -    if socket window, caller's read/write buffers and the
 *      caller's I/O request packet may be far
 */

#define FAR_LEVEL       0


/*          Pointer arithmetic
 *
 * The following macros define machine- and compiler-dependent macros for
 * handling pointers to physical window addresses. The definitions below are
 * for PC real-mode Borland-C.
 *
 * 'physicalToPointer' translates a physical flat address to a (far) pointer.
 * Note that if when your processor uses virtual memory, the code should
 * map the physical address to virtual memory, and return a pointer to that
 * memory (the size parameter tells how much memory should be mapped).
 *
 * 'addToFarPointer' adds an increment to a pointer and returns a new
 * pointer. The increment may be as large as your window size. The code
 * below assumes that the increment may be larger than 64 KB and so performs
 * huge pointer arithmetic.
 */

#define physicalToPointer(physical,size,drive)          \
    ((void *) (physical))

#define pointerToPhysical(ptr)  ((unsigned long)(ptr))

#define addToFarPointer(base,increment)     \
    ((void *) ((unsigned char *) (base) + (increment)))

#define freePointer(ptr,size) 


/*          Default calling convention
 *
 * C compilers usually use the C calling convention to routines (cdecl), but
 * often can also use the pascal calling convention, which is somewhat more
 * economical in code size. Some compilers also have specialized calling
 * conventions which may be suitable. Use compiler switches or insert a
 * #pragma here to select your favorite calling convention.
 */

/* use compiler default calling convention */



/*          Mutex type
 *
 * If you intend to access the FLite API in a multi-tasking environment,
 * you may need to implement some resource management and mutual-exclusion
 * of FLite with mutex & semaphore services that are available to you. In
 * this case, define here the Mutex type you will use, and provide your own
 * implementation of the Mutex functions incustom.c
 *
 * By default, a Mutex is defined as a simple counter, and the Mutex
 * functions in custom.c implement locking and unlocking by incrementing
 * and decrementing the counter. This will work well on all single-tasking
 * environment, as well as on many multi-tasking environments.
 */

typedef SEM_ID FLMutex;

#define flStartCriticalSection(mutexPtr)  flTakeMutex(mutexPtr)
#define flEndCriticalSection(mutexPtr)    flFreeMutex(mutexPtr)


/*          Memory allocation
 *
 * The translation layers (e.g. FTL) need to allocate memory to handle
 * Flash media. The size needed depends on the media being handled.
 *
 * You may choose to use the standard 'malloc' and 'free' to handle such
 * memory allocations, provide your own equivalent routines, or you may
 * choose not to define any memory allocation routine. In this case, the
 * memory will be allocated statically at compile-time on the assumption of
 * the largest media configuration you need to support. This is the simplest
 * choice, but may cause your RAM requirements to be larger than you
 * actually need.
 *
 * If you define routines other than malloc & free, they should have the
 * same parameters and return types as malloc & free. You should either code
 * these routines in flcustom.c or include them when you link your application.
 */

extern void* flmalloc (size_t nBytes);
extern void  flfree (void *p);

#define FL_MALLOC(bytes)  flmalloc((size_t)(bytes))
#define FL_FREE(p)        flfree((p))


/*          Debug mode
 *
 * Uncomment the following lines if you want debug messages to be printed
 * out. Messages will be printed at initialization key points, and when
 * low-level errors occure.
 * You may choose to use 'printf' or provide your own routine.
 */

extern void  tffsSaveMsg(char *msg);   /* flsysvxw.c */
extern int fl_useDebug;                /* flcustom.c */

#define DEBUG_PRINT(str)  tffsSaveMsg str
#define DFORMAT_PRINT(str) {}


/*          Alignment of structure members
 *
 *
 *  Pack all the structures for now.
 */

/* should be defined in Makefile */


/*
 *          First IOCTL code
 *
 * When using TrueFFS IOCTL functions you have to define the code of the first TrueFFS IOCTL
 * function (after that the functions get consecutive increasing numbers). This numer should 
 * be out of the range of the standard IOCTL codes used by the operating system that is using 
 * the TrueFFS IOCTLs.
 *
 */

#define FL_IOCTL_START  0x9000  /* flvxwioctl.h */


/*
 *          32-bit memory routines
 *
 */

extern  void *  flcpy (void *dest, const void *src, size_t count);
extern  void *  flset (void *dest, int val, size_t count);
extern  int     flcmp (const void *dest, const void *src, size_t count);


/*
 * These definitions are not actually used, but must be present
 */

#define NAMING_CONVENTION 


/*
 * Overrides respective definitions in MTDs
 */

extern int  flMsecToYieldCPU;    /* flcustom.c */

#define YIELD_CPU  flMsecToYieldCPU


/*                                                                   
 * Uncomment the FL_NO_INIT_MMU_PAGES definition for:
 *                                                                        
 * In order to skip initialization of first and last byte of the given buffer.
 * When the user buffer resides on separated memory pages the read        
 * operation may cause a page fault. Some CPU's return from a page        
 * fault (after loading the new page) and reread the bytes that caused    
 * the page fault from the new loaded page. In order to prevent such a    
 * case the first and last bytes of the buffer are written.
 *                                                                        
 */

#define FL_NO_INIT_MMU_PAGES


#ifdef __cplusplus
  }
#endif




#endif /* FLSYSTEM_H */



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区电影777| 欧美网站一区二区| 在线免费观看视频一区| 精品视频在线免费观看| 久久影音资源网| 免费看欧美女人艹b| 91美女蜜桃在线| 中文字幕久久午夜不卡| 麻豆精品视频在线观看视频| 在线影院国内精品| 日本一区二区三区免费乱视频| 蜜臀久久99精品久久久画质超高清| 色老汉av一区二区三区| 久久精品一区二区| 黑人巨大精品欧美一区| 欧美一级午夜免费电影| 午夜视频一区二区| 欧美亚洲日本国产| 亚洲视频香蕉人妖| 成人污视频在线观看| 国产日韩欧美精品一区| 国产在线视频一区二区三区| 欧美一级理论片| 爽好多水快深点欧美视频| 欧美亚洲图片小说| 亚洲国产精品自拍| 欧美私人免费视频| 午夜精品一区在线观看| 欧美午夜精品久久久久久超碰| 一区二区三区欧美在线观看| 色天天综合久久久久综合片| 亚洲免费观看高清在线观看| 色乱码一区二区三区88| 综合av第一页| 欧美午夜免费电影| 视频在线在亚洲| 欧美一区二区三区人| 麻豆精品久久久| 久久综合久久久久88| 激情成人午夜视频| 中文字幕欧美三区| 色香蕉成人二区免费| 一二三四社区欧美黄| 精品视频1区2区| 久久精品理论片| 久久丝袜美腿综合| 成人app软件下载大全免费| 亚洲欧洲另类国产综合| 色综合夜色一区| 肉色丝袜一区二区| 久久久久99精品国产片| 成人va在线观看| 亚洲一区二区影院| 精品久久人人做人人爽| 成人精品视频.| 亚洲永久精品国产| 日韩免费一区二区三区在线播放| 国产一区二区福利| 亚洲精品乱码久久久久| 欧美一级在线免费| 成人av综合一区| 午夜激情久久久| 久久久久久久精| 欧美中文字幕一区| 国产一区二区导航在线播放| 一区二区三区在线不卡| 日韩一区二区不卡| 91精品国产高清一区二区三区蜜臀| 久久av资源站| 夜色激情一区二区| 国产人成亚洲第一网站在线播放 | 亚洲欧美日韩国产综合在线| 欧美三片在线视频观看| 国产99久久久久久免费看农村| 一区二区三区不卡视频| 久久久精品影视| 欧美挠脚心视频网站| 99久久综合99久久综合网站| 日本美女一区二区三区| 亚洲人吸女人奶水| 欧美xfplay| 欧美日本韩国一区| av综合在线播放| 国产在线精品一区在线观看麻豆| 亚洲精品一二三四区| 久久久久久免费网| 欧美一卡2卡三卡4卡5免费| 在线免费观看成人短视频| 国产精一品亚洲二区在线视频| 午夜视黄欧洲亚洲| 亚洲黄色片在线观看| 国产欧美日韩另类视频免费观看 | 国产午夜精品福利| 日韩亚洲欧美高清| 欧美日韩黄色一区二区| 91小视频在线| jlzzjlzz欧美大全| 国产成人av资源| 国产美女视频91| 黄色日韩三级电影| 美国毛片一区二区三区| 日韩电影在线观看网站| 午夜精品久久久| 亚洲综合一二区| 亚洲尤物视频在线| 亚洲另类一区二区| 亚洲女厕所小便bbb| 亚洲品质自拍视频| 中文字幕成人网| 欧美国产日韩一二三区| 久久综合色之久久综合| 日韩欧美一区二区视频| 日韩一区二区影院| 日韩一区二区高清| 欧美精品一区二区三区四区| 日韩一级片网址| 欧美xxxx在线观看| 久久综合色天天久久综合图片| 久久新电视剧免费观看| 久久奇米777| 中文字幕免费观看一区| 中文字幕电影一区| 亚洲日本在线天堂| 亚洲一区二区五区| 全国精品久久少妇| 极品瑜伽女神91| 成人天堂资源www在线| 99久久久精品| 欧美亚洲日本国产| 久久久久免费观看| 国产欧美一区二区在线观看| 国产精品久久久久影院色老大| 中文字幕亚洲一区二区av在线| 亚洲三级理论片| 亚洲国产视频一区| 久久国产精品露脸对白| 国产精品一线二线三线精华| 成人福利在线看| 在线观看日产精品| 这里只有精品99re| 国产日韩欧美不卡| 亚洲一区二区三区四区在线| 免费看黄色91| 99精品在线观看视频| 欧美日韩一二区| 久久精品男人天堂av| 亚洲男人的天堂在线观看| 强制捆绑调教一区二区| 成人国产精品免费观看视频| 7777精品伊人久久久大香线蕉经典版下载 | 中文字幕视频一区| 日韩精品成人一区二区三区| 国产精品一区二区在线播放| 91国产免费观看| 欧美成人一区二区三区在线观看| 国产精品青草综合久久久久99| 亚洲成人一二三| 国产成人av福利| 在线成人午夜影院| 国产欧美日韩三级| 日韩精品亚洲专区| 从欧美一区二区三区| 3atv在线一区二区三区| 国产精品五月天| 日韩高清电影一区| 4438x亚洲最大成人网| 欧美三电影在线| 欧美精品一区二区不卡| 亚洲乱码日产精品bd| 国产成人精品三级麻豆| 欧美久久久久久久久中文字幕| 精品国产凹凸成av人导航| 中文字幕亚洲欧美在线不卡| 亚洲成在人线在线播放| 国产成人免费在线观看不卡| 99国产精品久久久久久久久久 | 国产精品久久夜| 91精品国产一区二区| 欧美日韩美女一区二区| 欧美激情在线一区二区三区| 日本欧美韩国一区三区| 日本精品免费观看高清观看| 国产日韩一级二级三级| 亚洲成人av福利| 91免费在线看| 中文字幕高清一区| 国产一区激情在线| 日韩精品一区二区三区在线播放| 一区二区激情小说| 成人av电影在线观看| 久久久欧美精品sm网站| 日韩高清在线不卡| 欧美男男青年gay1069videost| 亚洲资源中文字幕| 99久久久精品免费观看国产蜜| 亚洲国产成人在线| 成人黄色综合网站| 亚洲国产高清aⅴ视频| 成人爽a毛片一区二区免费| 国产日本欧美一区二区|