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

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

?? systffs.c

?? vxworks for Sam2410 bsp NoNet
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* sysTffs.c - ARM integrator TrueFFS Socket Component Driver *//* Copyright 1984-2002 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01d,13nov01,nrv  made use of PRJ_BUILD01c,09nov01,nrv  merging in T3 version with some cleanup01b,14dec00,yp   Documentation cleanup01a,29nov00,yp   derived from ads860 sysTffs.c 01j.*//*This stub file provides the user with the means to create a TrueFFS compliant socket component driver for use with any BSP. This is sample code and it isexpected, even required, to be modified after it is added to a BSP by the project facility when the component INCLUDE_TFFS is added to a kernel project.Look for #error and TODO statements in the sample code.This stub does not provides code, just some procedural macros that thegeneric driver code will use.DESCRIPTIONThis library must provide board-specific hardware access routines for TrueFFS.In effect, these routines comprise the socket component driver (or drivers)for your flash device.  At socket registration time, TrueFFS storesthe functions provided by this socket component driver in an 'FLSocket'structure.  When TrueFFS needs to access the flash device, it uses thesefunctions.  Because this file is, for the most part, a device driver that exports itsfunctionality by registering function pointers with TrueFFS, very few of thefunctions defined here are externally callable.  For the record, the onlyexternal functions are flFitInSocketWindow() and flDelayLoop(), and you shouldnever have to call them. However, one of the most important functions defined in this file is neitherreferenced in an 'FLSocket' structure, nor is it externally callable.  Thisfunction is sysTffsInit() and it should only be called by TrueFFS.  TrueFFS calls this function at initialization time to register socket component drivers for all the flash devices attached to your target.  It is this call to sysTffs() that results in assigning drive numbers to the flash devices on your target hardware.  Drive numbers are assigned by the order in which the socket component drivers are registered. The first to be registered is drive 0, the second is drive 1, and so on up to 4.  As shipped, TrueFFS supports up to five flash drives. After registering socket component drivers for a flash device, you mayformat the flash medium even though there is not yet a block device driverassociated with the flash (see the reference entry for the tffsDevCreate()routine).  To format the flash medium for use with TrueFFS,call tffsDevFormat() or, for some BSPs, sysTffsFormat(). The sysTffsFormat() routine is an optional,BSP-specific helper routine thatcan be called externally. Internally, sysTffsFormat() calls tffsDevFormat() with a pointer to a 'FormatParams' structure that is initialized to values that leave a space on the flash device for a boot image. This space is outside the region managed by TrueFFS.  This special region is necessary for bootimages because the normal translation and wear-leveling services of TrueFFSare incompatible with the needs of the boot program and the boot image itrelies upon.  To write a boot image (or any other data) into this area,use tffsBootImagePut().  The function sysTffsFormat() is only provided when a Flash SIMM has to have the TrueFFS file system in some desired fraction of it. It is provided only for the purpose of simplifying the process of formatting a Flash part that that should be subdivided.The Flash SIMM might also be referred to as RFA (Resident Flash Array) in the following text.Example implentations of sysTffs.c can be found in the directory    $(WIND_BASE)/target/src/drv/tffs/socketsThe files sds860-sysTffs.c and pc386-sysTffs.c have support for single and dual socketed PCMCIA devices as well if that might be useful to you. They both support multiple sockets.Finally, this file also contains define statements for symbolic constantsthat determine which MTDs, translation layer modules, and other utilitiesare ultimately included in TrueFFS.  These defines are as follows:.IP "INCLUDE_TL_FTL"To include the NOR-based translation layer module..IP "INCLUDE_TL_SSFDC"To include the SSFDC-appropriate translation layer module..IP "INCLUDE_MTD_I28F016"For Intel 28f016 flash devices..IP "INCLUDE_MTD_I28F008"For Intel 28f008 flash devices..IP "INCLUDE_MTD_I28F008_BAJA"For Intel 28f008 flash devices on the Heurikon Baja 4700..IP "INCLUDE_MTD_AMD"For AMD, Fujitsu: 29F0{40,80,16} 8-bit flash devices..IP "INCLUDE_MTD_CFISCS"For CFI/SCS flash devices..IP "INCLUDE_MTD_WAMD"For AMD, Fujitsu 29F0{40,80,16} 16-bit flash devices..IP "INCLUDE_TFFS_BOOT_IMAGE"To include tffsBootImagePut() in TrueFFS for Tornado..LPTo exclude any of the modules mentioned above, edit sysTffs.c and undefineits associated symbolic constant.INCLUDE FILES: flsocket.h, tffsDrv.h*//**#error "sysTffs : Verify system macros and function before first use"**//* includes */#include "vxWorks.h"#include "taskLib.h"#include "config.h"#include "tffs/flsocket.h"#include "tffs/tffsDrv.h"/* defines */#ifndef PRJ_BUILD#undef  INCLUDE_MTD_I28F016             /* Intel: 28f016 */#undef  INCLUDE_MTD_I28F008             /* Intel: 28f008 */#undef  INCLUDE_MTD_AMD                 /* AMD, Fujitsu: 29f0{40,80,16} 8bit */#define INCLUDE_MTD_CFISCS              /* CFI/SCS */#undef  INCLUDE_MTD_WAMD                /* AMD, Fujitsu: 29f0{40,80,16} 16bit */#define INCLUDE_TL_FTL                  /* FTL translation layer */#undef  INCLUDE_TL_SSFDC                /* SSFDC translation layer */#undef INCLUDE_SOCKET_SIMM             /* SIMM socket interface */#undef INCLUDE_SOCKET_PCMCIA           /* PCMCIA socket interface */#endif  /* PRJ_BUILD */#define INCLUDE_TFFS_BOOT_IMAGE		/* include tffsBootImagePut() */#define	FLASH_BASE_ADRS		FLASH_BASE	/* Flash memory base address */#undef FLASH_SIZE#define	FLASH_SIZE		0x01000000	/* Flash memory size */#define VCC_DELAY_MSEC		100	/* Millisecs to wait for Vcc ramp up */#define VPP_DELAY_MSEC		100	/* Millisecs to wait for Vpp ramp up */#define KILL_TIME_FUNC	 ((iz * iz) / (iz + iz)) / ((iy + iz) / (iy * iz))/* locals */LOCAL UINT32 sysTffsMsecLoopCount = 0;/* forward declarations */LOCAL FLBoolean		rfaCardDetected (FLSocket vol);LOCAL void		rfaVccOn (FLSocket vol);LOCAL void		rfaVccOff (FLSocket vol);#ifdef	SOCKET_12_VOLTSLOCAL FLStatus		rfaVppOn (FLSocket vol);LOCAL void		rfaVppOff (FLSocket vol);#endif	/* SOCKET_12_VOLTS */LOCAL FLStatus		rfaInitSocket (FLSocket vol);LOCAL void		rfaSetWindow (FLSocket vol);LOCAL void		rfaSetMappingContext (FLSocket vol, unsigned page);LOCAL FLBoolean		rfaGetAndClearCardChangeIndicator (FLSocket vol);LOCAL FLBoolean		rfaWriteProtected (FLSocket vol);LOCAL void		rfaRegister (void);#ifndef DOC#include "tffs/tffsConfig.c"#endif /* DOC *//********************************************************************************* sysTffsInit - board level initialization for TFFS** This routine calls the socket registration routines for the socket component* drivers that will be used with this BSP. The order of registration signifies* the logical drive number assigned to the drive associated with the socket.** RETURNS: N/A*/LOCAL void sysTffsInit (void)    {    UINT32 ix = 0;    UINT32 iy = 1;    UINT32 iz = 2;    int oldTick;    /* by default you can not write to flash so we enable writing now */    sysFlashWriteEnable();    /* we assume followings:     *   - no interrupts except timer is happening.     *   - the loop count that consumes 1 msec is in 32 bit.     * it is done in the early stage of usrRoot() in tffsDrv().  */    oldTick = tickGet();    while (oldTick == tickGet())	/* wait for next clock interrupt */	;    oldTick = tickGet();    while (oldTick == tickGet())	/* loop one clock tick */	{	iy = KILL_TIME_FUNC;		/* consume time */	ix++;				/* increment the counter */	}        sysTffsMsecLoopCount = ix * sysClkRateGet() / 1000;    /* TODO:     * Call each sockets register routine here     */    rfaRegister ();			/* RFA socket interface register */    }/********************************************************************************* rfaRegister - install routines for the Flash RFA** This routine installs necessary functions for the Resident Flash Array(RFA).** RETURNS: N/A*/LOCAL void rfaRegister (void)    {    FLSocket vol = flSocketOf (noOfDrives);    tffsSocket[noOfDrives] =	"RFA";    vol.window.baseAddress =	FLASH_BASE_ADRS >> 12;    vol.cardDetected =		rfaCardDetected;    vol.VccOn =			rfaVccOn;    vol.VccOff =		rfaVccOff;#ifdef SOCKET_12_VOLTS    vol.VppOn =			rfaVppOn;    vol.VppOff =		rfaVppOff;#endif    vol.initSocket =		rfaInitSocket;    vol.setWindow =		rfaSetWindow;    vol.setMappingContext =	rfaSetMappingContext;    vol.getAndClearCardChangeIndicator = rfaGetAndClearCardChangeIndicator;    vol.writeProtected =	rfaWriteProtected;    noOfDrives++;    }/********************************************************************************* rfaCardDetected - detect if a card is present (inserted)** This routine detects if a card is present (inserted).* Always return TRUE in RFA environments since device is not removable.** RETURNS: TRUE, or FALSE if the card is not present.*/LOCAL FLBoolean rfaCardDetected    (    FLSocket vol		/* pointer identifying drive */    )    {    return (TRUE);    }/********************************************************************************* rfaVccOn - turn on Vcc (3.3/5 Volts)** This routine turns on Vcc (3.3/5 Volts).  Vcc must be known to be good* on exit. Assumed to be ON constantly in RFA environment.** RETURNS: N/A*/LOCAL void rfaVccOn    (    FLSocket vol		/* pointer identifying drive */    )    {    }/********************************************************************************* rfaVccOff - turn off Vcc (3.3/5 Volts)** This routine turns off Vcc (3.3/5 Volts) (PCMCIA). Assumed to be ON 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲已满18点击进入久久| 成人激情免费电影网址| 国产成人一级电影| 欧美色电影在线| 国产精品久久久久久久久动漫| 亚洲影院久久精品| 99免费精品在线| 国产色91在线| 激情成人午夜视频| 91麻豆精品91久久久久同性| 中文字幕一区二区三区av| 精品一区二区三区在线播放视频| 色综合久久久久| 中文字幕一区二| 大美女一区二区三区| 精品久久人人做人人爽| 三级亚洲高清视频| 色老汉av一区二区三区| 亚洲欧洲日韩女同| 成人国产在线观看| 国产亚洲欧美色| 国产自产v一区二区三区c| 欧美精品乱人伦久久久久久| 一区二区免费在线播放| 91福利国产精品| 亚洲国产毛片aaaaa无费看| 91精品国产免费| 亚洲成人1区2区| 欧美久久一二区| 亚洲成人综合网站| 欧美精品国产精品| 日韩成人一区二区三区在线观看| 欧美日韩在线不卡| 天堂影院一区二区| 日韩欧美在线网站| 国产真实乱子伦精品视频| 日韩免费视频一区| 国产高清久久久| 国产精品高潮久久久久无| 国产精品456| 国产精品美女久久久久aⅴ| 成人影视亚洲图片在线| 国产精品久久久久aaaa| 91美女在线视频| 五月天欧美精品| 欧美一区二区成人| 风间由美一区二区三区在线观看 | 欧美三级资源在线| 亚洲bt欧美bt精品777| 日韩一级成人av| 黄网站免费久久| 亚洲人吸女人奶水| 欧美日本一道本在线视频| 石原莉奈在线亚洲三区| 欧美精品一区二| 91蜜桃视频在线| 视频一区国产视频| 久久毛片高清国产| 91免费观看在线| 全国精品久久少妇| 国产日韩av一区| 在线免费观看日本一区| 美女视频黄免费的久久| 国产精品毛片高清在线完整版 | 国产一区二区三区香蕉| 日韩伦理av电影| 亚洲精品乱码久久久久久久久| 欧美美女一区二区在线观看| 国产又黄又大久久| 亚洲精品中文在线| 精品国产制服丝袜高跟| 91麻豆免费看| 国内成人精品2018免费看| 一卡二卡三卡日韩欧美| 久久久久久久综合日本| 欧美美女直播网站| 99精品视频中文字幕| 国产一区二区视频在线播放| 亚洲国产人成综合网站| 国产精品美女久久久久久久久| 91精品国产日韩91久久久久久| 91在线观看免费视频| 久久se精品一区精品二区| 亚洲国产精品久久艾草纯爱| 中文字幕中文乱码欧美一区二区| 91精品国产乱| 欧美探花视频资源| 99精品欧美一区| 国产精品一区二区久久精品爱涩| 日本亚洲天堂网| 亚洲一区二区在线观看视频| 国产精品毛片无遮挡高清| 26uuu精品一区二区在线观看| 欧美日韩国产小视频| 91麻豆精品在线观看| 成人高清在线视频| 风间由美中文字幕在线看视频国产欧美| 日本午夜精品视频在线观看| 午夜影院久久久| 亚洲国产欧美在线人成| 一区二区三区在线观看网站| 韩国成人在线视频| 日本亚洲电影天堂| 天天做天天摸天天爽国产一区| 亚洲男同性恋视频| 亚洲欧美日韩国产成人精品影院| 中文字幕精品三区| 国产欧美精品一区二区色综合朱莉| 日韩欧美一级特黄在线播放| 日韩亚洲欧美一区二区三区| 91精品国产手机| 日韩一区二区精品葵司在线 | 欧美亚洲国产一卡| 欧美在线播放高清精品| 一本一道久久a久久精品综合蜜臀 一本一道综合狠狠老 | 精品中文av资源站在线观看| 视频一区国产视频| 奇米精品一区二区三区在线观看 | 亚洲在线观看免费视频| 夜夜嗨av一区二区三区四季av | 在线一区二区观看| 欧美天堂亚洲电影院在线播放| 欧美性xxxxx极品少妇| 欧美日韩成人综合| 精品国精品自拍自在线| 国产日本亚洲高清| 亚洲视频在线一区二区| 一区二区三区在线观看欧美| 日韩电影在线免费看| 国内精品国产成人国产三级粉色| 国产成人亚洲综合a∨猫咪| 不卡电影一区二区三区| 欧美色区777第一页| 日韩欧美的一区二区| 欧美高清在线一区| 夜夜嗨av一区二区三区中文字幕| 视频一区免费在线观看| 国产成人精品影视| 欧美性生交片4| 精品成人在线观看| 最新中文字幕一区二区三区 | 67194成人在线观看| 精品国产乱码久久久久久1区2区 | 久久福利视频一区二区| 丁香婷婷深情五月亚洲| 91丨porny丨户外露出| 欧美日韩视频一区二区| 精品国产三级电影在线观看| 1区2区3区国产精品| 亚洲成av人片在线| 国产69精品久久久久777| 在线观看日产精品| 久久嫩草精品久久久精品| 一区二区三区中文字幕电影| 六月丁香婷婷色狠狠久久| 91在线高清观看| 日韩天堂在线观看| 亚洲摸摸操操av| 国产精品一区二区久久精品爱涩| 欧美日韩亚洲综合一区| 国产精品视频看| 色先锋资源久久综合| 亚洲精品在线电影| 亚洲一区二区免费视频| 东方欧美亚洲色图在线| 日韩一区二区三区av| 亚洲午夜久久久久中文字幕久| 国产精品综合av一区二区国产馆| 色婷婷精品久久二区二区蜜臀av | 91麻豆精品国产91久久久资源速度 | 88在线观看91蜜桃国自产| 欧美国产禁国产网站cc| 蜜乳av一区二区| 欧美性受xxxx| 亚洲欧美日韩系列| 粉嫩蜜臀av国产精品网站| 精品国产一区a| 麻豆91在线播放| 欧美日韩精品免费观看视频| **性色生活片久久毛片| 福利电影一区二区| 久久综合五月天婷婷伊人| 美女视频一区二区三区| 欧美日韩国产美| 亚洲午夜视频在线| 欧美性猛片aaaaaaa做受| 亚洲精品五月天| 99精品视频在线观看| 国产精品久久久久一区二区三区共| 国产麻豆午夜三级精品| 久久午夜电影网| 国产美女精品在线| 精品国产精品网麻豆系列| 日韩av不卡一区二区| 91精品国产黑色紧身裤美女| 午夜亚洲福利老司机| 555www色欧美视频| 青椒成人免费视频| 日韩免费高清av| 国产精品一区在线|