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

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

?? systffs.c

?? vxwork arm920 bsp開發(fā)包
?? 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一区二区三区免费野_久草精品视频
欧美人xxxx| av亚洲精华国产精华精| 精品国产一区二区亚洲人成毛片| 六月丁香婷婷久久| 国产精品久久久久9999吃药| 91精品国产欧美日韩| 成人国产精品视频| 国产91精品欧美| 国产传媒一区在线| 精品无人码麻豆乱码1区2区 | 欧美日本一区二区在线观看| 成人精品小蝌蚪| 成人黄色在线视频| 国产精品99久久久久久久vr| 久久精品99久久久| 精品在线播放午夜| 国产中文一区二区三区| 国产一区二区视频在线播放| 国产一二三精品| 日本电影亚洲天堂一区| 久久亚洲捆绑美女| 国产aⅴ精品一区二区三区色成熟| 蜜臀精品久久久久久蜜臀| 一区二区三区日韩在线观看| 欧美色区777第一页| 日韩电影在线免费看| 精品国产免费人成电影在线观看四季 | 911精品国产一区二区在线| 美女mm1313爽爽久久久蜜臀| 久久精品一二三| 日本韩国视频一区二区| 奇米888四色在线精品| 亚洲激情一二三区| 欧美日免费三级在线| 欧美日韩精品电影| 亚洲狠狠丁香婷婷综合久久久| 国产精品一级黄| 久久理论电影网| 日韩伦理免费电影| 亚洲一卡二卡三卡四卡| 久久人人爽人人爽| 国产一区二区在线观看免费| av成人免费在线| 色综合一区二区| 欧美一区二区私人影院日本| 狠狠狠色丁香婷婷综合久久五月| 色婷婷综合久久久中文字幕| 亚洲视频每日更新| 一本久久综合亚洲鲁鲁五月天| 亚洲曰韩产成在线| 91精品国产一区二区三区蜜臀| 极品美女销魂一区二区三区| 国产午夜精品一区二区三区四区 | 激情小说欧美图片| 国产精品久久久久久久裸模| 在线看日韩精品电影| 国产一区二区导航在线播放| 中文字幕乱码一区二区免费| 免费观看30秒视频久久| 精品福利在线导航| 欧美亚洲图片小说| 精品一区二区三区的国产在线播放| 久久精品欧美一区二区三区麻豆| 91免费在线看| 久久国产成人午夜av影院| 《视频一区视频二区| 久久婷婷成人综合色| 成人综合在线观看| 一区免费观看视频| 欧美日产在线观看| 高清不卡在线观看| 日韩综合在线视频| 一区二区三区四区在线播放| 2020日本不卡一区二区视频| 91麻豆精品一区二区三区| 激情成人午夜视频| 国产资源精品在线观看| 亚洲精品ww久久久久久p站| 成人av在线资源网站| 国产成人精品一区二区三区网站观看| 一区二区三区美女视频| 亚洲欧美国产三级| 亚洲欧美在线另类| 亚洲欧洲日韩在线| 综合久久一区二区三区| 亚洲日本丝袜连裤袜办公室| 日本一区二区三级电影在线观看| 久久女同性恋中文字幕| 欧美揉bbbbb揉bbbbb| 亚洲福利一二三区| 亚洲五码中文字幕| 老司机一区二区| 国产成人午夜片在线观看高清观看| 国产精品影视在线观看| 国产福利一区二区| 日韩精品高清不卡| 美女视频黄a大片欧美| 久久精品国产久精国产| 极品少妇xxxx精品少妇偷拍| 国产午夜精品久久久久久免费视 | 日韩在线卡一卡二| 婷婷成人综合网| 婷婷久久综合九色综合绿巨人 | 成人高清av在线| 自拍偷拍国产精品| 亚洲国产精品成人久久综合一区| 欧美激情一区二区三区不卡 | 26uuu国产日韩综合| 欧美韩日一区二区三区四区| 香蕉成人啪国产精品视频综合网| 欧美成人一区二区三区片免费| 91香蕉视频在线| 久久综合久久综合久久综合| 1024精品合集| 久久超碰97人人做人人爱| 菠萝蜜视频在线观看一区| 欧美大片日本大片免费观看| 亚洲欧美一区二区在线观看| 成人看片黄a免费看在线| 欧美激情一区在线| 高清视频一区二区| 国产精品久久久久永久免费观看 | 久久久久久久久久久黄色| 日韩高清在线观看| 欧美日韩免费观看一区二区三区 | 亚洲欧美激情插| 91丨九色丨蝌蚪富婆spa| 国产肉丝袜一区二区| 国产一区二区三区蝌蚪| 久久久精品黄色| 精品在线亚洲视频| 91美女片黄在线| 中文字幕综合网| 国产激情精品久久久第一区二区| 欧美日韩国产影片| 亚洲美女屁股眼交3| 91麻豆.com| 日韩一区在线播放| 日韩欧美一区中文| 国产精品综合在线视频| 91久久精品国产91性色tv| 日本va欧美va欧美va精品| 亚洲人成精品久久久久久| 国产成人亚洲综合a∨猫咪| 亚洲国产精品成人久久综合一区| 成人激情动漫在线观看| 国产精品亲子乱子伦xxxx裸| 国产九色精品成人porny| 国产精品久久久久永久免费观看| 91在线观看一区二区| 日韩精品一级中文字幕精品视频免费观看 | 99久精品国产| 亚洲福中文字幕伊人影院| 日韩一卡二卡三卡| 久久aⅴ国产欧美74aaa| 日韩精品欧美成人高清一区二区| 久久品道一品道久久精品| 欧美日韩精品电影| 日本丰满少妇一区二区三区| 成人小视频免费观看| 日韩电影在线一区二区三区| 中文在线资源观看网站视频免费不卡| 欧美男生操女生| 9人人澡人人爽人人精品| 亚洲欧美乱综合| 亚洲激情欧美激情| 亚洲理论在线观看| 日本一区二区在线不卡| 精品剧情在线观看| 精品国产91亚洲一区二区三区婷婷| 91久久精品一区二区二区| 丁香网亚洲国际| 成熟亚洲日本毛茸茸凸凹| 美女网站在线免费欧美精品| 夜夜嗨av一区二区三区网页| 欧美中文字幕一区二区三区| 69久久99精品久久久久婷婷 | 亚洲女子a中天字幕| 日韩精品一区二区三区在线 | 精品一区二区三区久久| 九九在线精品视频| 亚洲精品一区在线观看| 色爱区综合激月婷婷| 日本韩国一区二区三区视频| 欧美日韩中文精品| 在线视频一区二区免费| 欧美一级理论片| 国产三级欧美三级日产三级99| 国产午夜三级一区二区三| 26uuu国产一区二区三区| 一区二区三区.www| 男人的天堂亚洲一区| 懂色中文一区二区在线播放| 91丨porny丨最新| 日韩一级片网址| 亚洲图片欧美视频| 国产精品综合二区| 欧美人牲a欧美精品| 欧美激情一区二区三区全黄| 亚洲电影你懂得|