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

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

?? systffs.c

?? powerpc 系列cpu mpc860ads vxworks BSP 得花錢買的
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* sysTffs.c - Motorola 860ads system-dependent TrueFFS library *//* Copyright 1984-1997 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01l,29jan02,dtr  Changing vxImmrGet to vxImmrIsbGet.01k,15nov01,dtr  Put in #if defined to retain file dependencies for make.01j,31may99,yp   Added comments suggested in SPR #2531901i,21apr98,yp   added tffs subdir to search path01h,11mar98,yp   made including tffsConfig.c conditional so man page                 generation does not include it.01g,09mar98,kbw  fixed a flub I missed in the sysTffsFormat function01f,09mar98,kbw  made man page edits to fix problems found by QE01e,04mar98,kbw  made man page edits01d,18jan98,hdn  added configuration macros for SIMM and PCMCIA.01c,18dec97,hdn  added comment.  cleaned up.01b,05dec97,hdn  added flDelayMsecs(), tffsSocket[]. cleaned up.01a,05nov97,hdn  written.*//*DESCRIPTIONThis library provides board-specific hardware access routines for TrueFFS.In effect, these routines comprise the socket component driver (or drivers)for your flash device hardware.  At socket registration time, TrueFFS storespointers to the functions of 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, theseexternal functions are flFitInSocketWindow() and flDelayLoop().  You shouldnever have any need to call these functions. However, one of the most import functions defined in this file is neitherreferenced in an 'FLSocket' structure, nor is it externally callable.  Thisfunction is sysTffsInit().  TrueFFS calls this function at initializationtime to register socket component drivers for all the flash devices attachedto your target.  It is this call to sysTffs() that results in assigningdrive numbers to the flash devices on your target hardware.  Drive numbersare 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 to4.  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 but BSP-specific externallycallable helper function.  Internally, it calls tffsDevFormat() with apointer to a 'FormatParams' structure initialized to values that leave aspace on the flash device for a boot image. This space is outside theregion 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().  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_NFTL"To include the NAND-based translation layer module..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_CDSN"For Toshiba, Samsung: NAND CDSN flash devices..IP "INCLUDE_MTD_DOC2"For Toshiba, Samsung: NAND DOC 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.The function sysTffsFormat() is provided so one might seasily format the Flash SIMM to have the TFFS file system in one half of it.INCLUDE FILES: flsocket.h, tffsDrv.h*//* includes */#include "vxWorks.h"#include "taskLib.h"#include "config.h"#include "tffs/flsocket.h"#include "tffs/tffsDrv.h"#include "ads860.h"#include "arch/ppc/vxPpcLib.h"#include "drv/multi/ppc860Siu.h"#if defined(INCLUDE_TFFS)/* defines */#define	INCLUDE_MTD_I28F016		/* Intel: 28f016 */#define	INCLUDE_MTD_I28F008		/* Intel: 28f008 */#define	INCLUDE_MTD_AMD			/* AMD, Fujitsu: 29f0{40,80,16} 8bit */#undef	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 */#define	INCLUDE_SOCKET_SIMM		/* SIMM socket interface */#define	INCLUDE_SOCKET_PCMCIA		/* PCMCIA socket interface */#define INCLUDE_TFFS_BOOT_IMAGE		/* include tffsBootImagePut() */#define	FLASH_BASE_ADRS		0x02800000	/* Flash memory base address */#define	FLASH_SIZE		0x00200000	/* 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 BCSR1_PCCVPP_12V	0x00200000#define KILL_TIME_FUNC	 ((iz * iz) / (iz + iz)) / ((iy + iz) / (iy * iz))/* locals */LOCAL UINT32 sysTffsMsecLoopCount = 0;/* forward declarations */#ifdef	INCLUDE_SOCKET_SIMMLOCAL FLBoolean		simmCardDetected (FLSocket vol);LOCAL void		simmVccOn (FLSocket vol);LOCAL void		simmVccOff (FLSocket vol);#ifdef	SOCKET_12_VOLTSLOCAL FLStatus		simmVppOn (FLSocket vol);LOCAL void		simmVppOff (FLSocket vol);#endif	/* SOCKET_12_VOLTS */LOCAL FLStatus		simmInitSocket (FLSocket vol);LOCAL void		simmSetWindow (FLSocket vol);LOCAL void		simmSetMappingContext (FLSocket vol, unsigned page);LOCAL FLBoolean		simmGetAndClearCardChangeIndicator (FLSocket vol);LOCAL FLBoolean		simmWriteProtected (FLSocket vol);LOCAL void		simmRegister (void);#endif	/* INCLUDE_SOCKET_SIMM */#ifdef	INCLUDE_SOCKET_PCMCIALOCAL FLBoolean		pcCardDetected (FLSocket vol);LOCAL void		pcVccOn (FLSocket vol);LOCAL void		pcVccOff (FLSocket vol);#ifdef	SOCKET_12_VOLTSLOCAL FLStatus		pcVppOn (FLSocket vol);LOCAL void		pcVppOff (FLSocket vol);#endif	/* SOCKET_12_VOLTS */LOCAL FLStatus		pcInitSocket (FLSocket vol);LOCAL void		pcSetWindow (FLSocket vol);LOCAL void		pcSetMappingContext (FLSocket vol, unsigned page);LOCAL FLBoolean		pcGetAndClearCardChangeIndicator (FLSocket vol);LOCAL FLBoolean		pcWriteProtected (FLSocket vol);LOCAL void		pcRegister (void);#endif	/* INCLUDE_SOCKET_PCMCIA */#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 given 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;    /* 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;#ifdef	INCLUDE_SOCKET_SIMM    simmRegister ();			/* SIMM socket interface register */#endif	/* INCLUDE_SOCKET_SIMM */#ifdef	INCLUDE_SOCKET_PCMCIA    pcRegister ();			/* PCMCIA socket interface register */#endif	/* INCLUDE_SOCKET_PCMCIA */    }#ifdef	INCLUDE_SOCKET_SIMM/********************************************************************************* simmRegister - install routines for the Flash SIMM** This routine installs necessary functions for the Flash SIMM.** RETURNS: N/A*/LOCAL void simmRegister (void)    {    FLSocket vol = flSocketOf (noOfDrives);    tffsSocket[noOfDrives] =	"SIMM";    vol.window.baseAddress =	FLASH_BASE_ADRS >> 12;    vol.cardDetected =		simmCardDetected;    vol.VccOn =			simmVccOn;    vol.VccOff =		simmVccOff;#ifdef SOCKET_12_VOLTS    vol.VppOn =			simmVppOn;    vol.VppOff =		simmVppOff;#endif    vol.initSocket =		simmInitSocket;    vol.setWindow =		simmSetWindow;    vol.setMappingContext =	simmSetMappingContext;    vol.getAndClearCardChangeIndicator = simmGetAndClearCardChangeIndicator;    vol.writeProtected =	simmWriteProtected;    noOfDrives++;    }/********************************************************************************* simmCardDetected - detect if a card is present (inserted)** This routine detects if a card is present (inserted).** RETURNS: TRUE, or FALSE if the card is not present.*/LOCAL FLBoolean simmCardDetected    (    FLSocket vol		/* pointer identifying drive */    )    {    return (TRUE);    }/********************************************************************************* simmVccOn - 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.** RETURNS: N/A*/LOCAL void simmVccOn    (    FLSocket vol		/* pointer identifying drive */    )    {    }/********************************************************************************* simmVccOff - turn off Vcc (3.3/5 Volts)** This routine turns off Vcc (3.3/5 Volts). ** RETURNS: N/A*/LOCAL void simmVccOff    (    FLSocket vol		/* pointer identifying drive */    )    {    }#ifdef SOCKET_12_VOLTS/********************************************************************************* simmVppOn - turns on Vpp (12 Volts)** This routine turns on Vpp (12 Volts). Vpp must be known to be good on exit.** RETURNS: flOK always.*/LOCAL FLStatus simmVppOn    (    FLSocket vol		/* pointer identifying drive */    )    {    return (flOK);    }/********************************************************************************* simmVppOff - turns off Vpp (12 Volts)** This routine turns off Vpp (12 Volts).** RETURNS: N/A*/LOCAL void simmVppOff    (    FLSocket vol		/* pointer identifying drive */    )    {    }#endif	/* SOCKET_12_VOLTS *//********************************************************************************* simmInitSocket - perform all necessary initializations of the socket** This routine performs all necessary initializations of the socket.** RETURNS: flOK always.*/LOCAL FLStatus simmInitSocket    (    FLSocket vol		/* pointer identifying drive */    )    {    *BCSR1 &= ~(BCSR1_FLASH_EN_L);		/* enable the flash */    return (flOK);    }/********************************************************************************* simmSetWindow - set current window attributes, Base address, size, etc** This routine sets current window hardware attributes: Base address, size,* speed and bus width.  The requested settings are given in the 'vol.window' * structure.  If it is not possible to set the window size requested in* 'vol.window.size', the window size should be set to a larger value, * if possible. In any case, 'vol.window.size' should contain the * actual window size (in 4 KB units) on exit.** RETURNS: N/A*/LOCAL void simmSetWindow    (    FLSocket vol		/* pointer identifying drive */    )    {    /* Physical base as a 4K page */    vol.window.baseAddress = FLASH_BASE_ADRS >> 12;    flSetWindowSize (&vol, FLASH_SIZE >> 12);    }/********************************************************************************* simmSetMappingContext - sets the window mapping register to a card address** This routine sets the window mapping register to a card address.* The window should be set to the value of 'vol.window.currentPage',* which is the card address divided by 4 KB. An address over 128MB,* (page over 32K) specifies an attribute-space address. On entry to this * routine vol.window.currentPage is the page already mapped into the window.* (In otherwords the page that was mapped by the last call to this routine.)** The page to map is guaranteed to be on a full window-size boundary.** RETURNS: N/A*/LOCAL void simmSetMappingContext    (    FLSocket vol,		/* pointer identifying drive */    unsigned page		/* page to be mapped */    )    {    }/********************************************************************************* simmGetAndClearCardChangeIndicator - return the hardware card-change indicator** This routine returns the hardware card-change indicator and clears it if set.** RETURNS: FALSE, or TRUE if the card has been changed*/LOCAL FLBoolean simmGetAndClearCardChangeIndicator    (    FLSocket vol		/* pointer identifying drive */    )    {    return (FALSE);    }/********************************************************************************* simmWriteProtected - return the write-protect state of the media** This routine returns the write-protect state of the media** RETURNS: FALSE, or TRUE if the card is write-protected*/LOCAL FLBoolean simmWriteProtected    (    FLSocket vol		/* pointer identifying drive */    )    {    return (FALSE);    }#endif	/* INCLUDE_SOCKET_SIMM */#ifdef	INCLUDE_SOCKET_PCMCIA/********************************************************************************* pcRegister - install routines for the PCMCIA Flash Card** This routine installs necessary functions for the PCMCIA Flash Card.** RETURNS: N/A*/LOCAL void pcRegister (void)    {    FLSocket vol = flSocketOf (noOfDrives);    tffsSocket[noOfDrives] =	"PCMCIA";    vol.window.baseAddress =	(PC_BASE_ADRS_0) >> 12;    vol.cardDetected =		pcCardDetected;    vol.VccOn =			pcVccOn;    vol.VccOff =		pcVccOff;#ifdef SOCKET_12_VOLTS    vol.VppOn =			pcVppOn;    vol.VppOff =		pcVppOff;#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性一级生活| 亚洲另类在线视频| 精品久久一区二区| 日韩精品一区二区三区视频| 欧美一区2区视频在线观看| 欧美日韩五月天| 欧美日韩小视频| 欧美顶级少妇做爰| 欧美v日韩v国产v| 337p日本欧洲亚洲大胆色噜噜| 精品久久国产字幕高潮| 26uuu国产电影一区二区| 国产色婷婷亚洲99精品小说| 国产精品污www在线观看| 亚洲欧洲av色图| 亚洲激情图片qvod| 亚洲国产精品久久人人爱| 五月天欧美精品| 久久成人av少妇免费| 国产剧情av麻豆香蕉精品| 成人激情免费网站| 日本韩国一区二区三区| 欧美精品 日韩| 久久天天做天天爱综合色| 国产日韩精品一区二区三区在线| 国产精品人成在线观看免费| 亚洲男人的天堂一区二区| 午夜精品福利一区二区蜜股av| 日韩高清不卡在线| 国产精品18久久久| 91丨九色丨蝌蚪丨老版| 欧美美女bb生活片| 精品精品欲导航| 最新高清无码专区| 五月天欧美精品| 高清成人免费视频| 欧美日韩免费一区二区三区| 精品久久久久一区二区国产| 中文字幕欧美日韩一区| 亚洲福利视频导航| 精品午夜久久福利影院| a在线播放不卡| 日韩小视频在线观看专区| 国产精品乱人伦| 香蕉av福利精品导航| 国产精品一区二区视频| 色欧美日韩亚洲| 精品国精品国产尤物美女| 亚洲欧洲综合另类| 狠狠色丁香婷婷综合| 色94色欧美sute亚洲线路二| 欧美本精品男人aⅴ天堂| 亚洲私人影院在线观看| 欧美aaaaa成人免费观看视频| 成人免费高清视频在线观看| 91精品国产91久久久久久最新毛片| 国产日韩欧美高清| 热久久国产精品| 色综合久久中文综合久久97| 日韩欧美国产综合一区 | 7777精品伊人久久久大香线蕉完整版| 日韩女优视频免费观看| 亚洲精品国产无套在线观| 国产在线国偷精品产拍免费yy| 色综合 综合色| 久久精品亚洲一区二区三区浴池| 亚洲va中文字幕| 成人国产免费视频| 久久众筹精品私拍模特| 五月天视频一区| 97久久精品人人做人人爽| 久久午夜老司机| 天天色天天操综合| 色综合天天在线| 欧美激情一二三区| 麻豆91在线播放免费| 欧美日韩黄视频| 亚洲免费av网站| 岛国精品在线播放| 精品国产sm最大网站免费看| 亚洲午夜私人影院| 99久久er热在这里只有精品66| 26uuu欧美| 激情图片小说一区| 91精品国产麻豆| 亚洲国产一区视频| 色屁屁一区二区| 亚洲欧洲国产日本综合| 国产高清在线观看免费不卡| 日韩精品一区在线| 偷窥国产亚洲免费视频| 91视频在线看| 亚洲情趣在线观看| 92精品国产成人观看免费| 国产精品乱子久久久久| 风流少妇一区二区| 国产欧美日韩综合| 国产精品456| 国产日产亚洲精品系列| 国产一区二区三区观看| 精品国产乱码久久久久久图片 | 精品一区二区在线视频| 日韩视频免费观看高清完整版在线观看| 亚洲第一激情av| 欧美日韩一区二区电影| 亚洲成av人影院| 欧美日韩aaa| 蜜桃视频免费观看一区| 欧美一区二区在线观看| 免费高清在线一区| 日韩欧美123| 国产成人免费在线观看不卡| 久久久蜜臀国产一区二区| 国产成人精品网址| 国产精品国产馆在线真实露脸| 99国产精品久久| 亚洲一区在线视频| 91精品国产色综合久久久蜜香臀| 麻豆国产欧美日韩综合精品二区| 日韩午夜在线观看视频| 国产一区二区成人久久免费影院| 国产日韩精品一区| 一本一道久久a久久精品综合蜜臀| 亚洲黄色av一区| 欧美一区二区啪啪| 国产麻豆欧美日韩一区| 国产精品嫩草久久久久| 99视频超级精品| 五月天欧美精品| 2020国产精品久久精品美国| 国产成人鲁色资源国产91色综| 国产精品美女久久久久久| 91免费视频大全| 日本特黄久久久高潮| 精品久久久久香蕉网| 成人app在线观看| 亚洲成人激情综合网| 欧美电影免费观看高清完整版在线 | 亚洲国产成人av网| 欧美变态tickling挠脚心| www.欧美色图| 日韩 欧美一区二区三区| 国产精品久久三区| 在线欧美日韩精品| 狠狠久久亚洲欧美| 亚洲精品视频免费看| 欧美xxxxxxxx| 色婷婷一区二区| 麻豆成人91精品二区三区| 亚洲视频1区2区| 日韩欧美亚洲国产另类| 99热99精品| 久久99国产乱子伦精品免费| 自拍偷拍亚洲综合| 日韩亚洲欧美在线观看| 99久久精品国产网站| 美女网站在线免费欧美精品| 国产精品夫妻自拍| 精品国产精品网麻豆系列| 91免费看片在线观看| 国产乱一区二区| 性做久久久久久免费观看欧美| 久久亚洲精精品中文字幕早川悠里 | 麻豆精品国产91久久久久久| **欧美大码日韩| 精品日韩欧美在线| 在线观看欧美精品| 国产成人精品免费视频网站| 日本亚洲最大的色成网站www| 国产精品久久久久久户外露出 | 日韩av电影免费观看高清完整版| 中文字幕欧美激情| 精品国产一区二区国模嫣然| 欧美亚洲禁片免费| 99热99精品| 国产凹凸在线观看一区二区| 麻豆国产精品视频| 三级精品在线观看| 亚洲综合免费观看高清完整版 | 高清不卡在线观看| 蜜桃精品在线观看| 亚洲va欧美va国产va天堂影院| 国产精品热久久久久夜色精品三区| 欧美大度的电影原声| 欧美顶级少妇做爰| 欧美日韩在线亚洲一区蜜芽| 一本色道久久综合亚洲91| 国产福利精品一区二区| 精品午夜久久福利影院| 日本网站在线观看一区二区三区| 亚洲国产日韩a在线播放| 亚洲靠逼com| 亚洲伦理在线免费看| 国产精品三级久久久久三级| 久久久久久久久久久久电影| 日韩女优制服丝袜电影| 日韩免费观看高清完整版在线观看| 欧美日韩你懂得| 欧美精品99久久久**| 欧美日韩一二三|