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

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

?? systffs.c

?? powerpc 系列cpu mpc860ads vxworks BSP 得花錢買的
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
    vol.initSocket =		pcInitSocket;    vol.setWindow =		pcSetWindow;    vol.setMappingContext =	pcSetMappingContext;    vol.getAndClearCardChangeIndicator = pcGetAndClearCardChangeIndicator;    vol.writeProtected =	pcWriteProtected;    noOfDrives++;    }/********************************************************************************* pcCardDetected - 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 pcCardDetected    (    FLSocket vol		/* pointer identifying drive */    )    {    int	immrVal = vxImmrIsbGet();        if ((*PIPR (immrVal) & 0x18000000) == 0)	return (TRUE);    else	return (FALSE);    }/********************************************************************************* pcVccOn - 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 pcVccOn    (    FLSocket vol		/* pointer identifying drive */    )    {    *BCSR1 &= ~(BCSR1_PCCARD_VCCON_L);	/* on PC card VCC */    flDelayMsecs (VCC_DELAY_MSEC);	/* wait for Vcc to ramp up */    }/********************************************************************************* pcVccOn - turn off Vcc (3.3/5 Volts)** This routine turns off Vcc (3.3/5 Volts).** RETURNS: N/A*/LOCAL void pcVccOff    (    FLSocket vol		/* pointer identifying drive */    )    {    *BCSR1 |= (BCSR1_PCCARD_VCCON_L);	/* off PC card VCC */    }#ifdef SOCKET_12_VOLTS/********************************************************************************* pcVppOn - turn 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 pcVppOn    (    FLSocket vol		/* pointer identifying drive */    )    {    *BCSR1 = (*BCSR1 & ~BCSR1_PCCVPP_MSK) | BCSR1_PCCVPP_12V;    flDelayMsecs (VPP_DELAY_MSEC);	/* wait for Vpp to ramp up */    return (flOK);    }/********************************************************************************* pcVppOff - turn off Vpp (12 Volts)** This routine turns off Vpp (12 Volts).** RETURNS: N/A*/LOCAL void pcVppOff    (    FLSocket vol		/* pointer identifying drive */    )    {    *BCSR1 = (*BCSR1 & ~BCSR1_PCCVPP_MSK) | BCSR1_PCCVPP_MSK;    }#endif	/* SOCKET_12_VOLTS *//********************************************************************************* pcInitSocket - perform all necessary initializations of the socket** This routine performs all necessary initializations of the socket.** RETURNS: flOK always*/LOCAL FLStatus pcInitSocket    (    FLSocket vol		/* pointer identifying drive */    )    {    int	immrVal = vxImmrIsbGet();#if	FALSE    printf ("-- pcInitSocket --\n");    printf ("immrVal=0x%x\n", immrVal);    printf ("BR0=0x%x, OR0=0x%x\n", *BR0(immrVal), *OR0(immrVal));    printf ("BR1=0x%x, OR1=0x%x\n", *BR1(immrVal), *OR1(immrVal));    printf ("BR2=0x%x, OR2=0x%x\n", *BR2(immrVal), *OR2(immrVal));    printf ("BR3=0x%x, OR3=0x%x\n", *BR3(immrVal), *OR3(immrVal));    printf ("BR4=0x%x, OR4=0x%x\n", *BR4(immrVal), *OR4(immrVal));    printf ("BR5=0x%x, OR5=0x%x\n", *BR5(immrVal), *OR5(immrVal));    printf ("BR6=0x%x, OR6=0x%x\n", *BR6(immrVal), *OR6(immrVal));    printf ("BR7=0x%x, OR7=0x%x\n", *BR7(immrVal), *OR7(immrVal));#endif	/* FALSE */    *BR4(immrVal) = (PC_BASE_ADRS_1 & BR_BA_MSK) | BR_V;    *OR4(immrVal) = 0xfc000000 | OR_BI | OR_SCY_8_CLK | OR_TRLX | 0x02;    /* clear PCMCIA base registers */    *PBR0 (immrVal) = PC_BASE_ADRS_0;    *PBR1 (immrVal) = PC_BASE_ADRS_1;    *PBR2 (immrVal) = 0x0;    *PBR3 (immrVal) = 0x0;    *PBR4 (immrVal) = 0x0;    *PBR5 (immrVal) = 0x0;    *PBR6 (immrVal) = 0x0;    *PBR7 (immrVal) = 0x0;    /* clear PCMCIA option registers */    *POR0 (immrVal) = 0xf0000000 |		/* bank size:     1MB */		      0x00020000 |		/* strobe hold:   2 clocks */		      0x00001000 |		/* strobe setup:  1 clock */		      0x00000300 |		/* strobe length: 6 clocks */		      0x00000040 |		/* port size:     2 byte */		      0x00000010 |		/* region select: attribute */		      0x00000000 |		/* slot ID:       slot-A */		      0x00000000 |		/* write protect: off */		      0x00000001;		/* PCMCIA valid:  1 */    *POR1 (immrVal) = 0xa8000000 |		/* bank size:     32MB */		      0x00020000 |		/* strobe hold:   2 clocks */		      0x00001000 |		/* strobe setup:  1 clock */		      0x00000300 |		/* strobe length: 6 clocks */		      0x00000040 |		/* port size:     2 byte */		      0x00000000 |		/* region select: common mem */		      0x00000000 |		/* slot ID:       slot-A */		      0x00000000 |		/* write protect: off */		      0x00000001;		/* PCMCIA valid:  1 */    *POR2 (immrVal) = 0x0;    *POR3 (immrVal) = 0x0;    *POR4 (immrVal) = 0x0;    *POR5 (immrVal) = 0x0;    *POR6 (immrVal) = 0x0;    *POR7 (immrVal) = 0x0;    *PSCR (immrVal) = 0x0;    *PGCRA (immrVal) = 0x0;			/* XXX disable interupt */    *PGCRB (immrVal) = 0x0;			/* XXX disable interupt */    *BCSR1 &= ~(BCSR1_PCCARD_EN_L);		/* enable the PCMCIA */    *BCSR1 |= BCSR1_PCCVPP_MSK;			/* setup PC card Vpp to Hi-Z */    *BCSR1 &= ~(BCSR1_PCCARD_VCCON_L);		/* on PC card VCC */    flDelayMsecs (VCC_DELAY_MSEC);		/* wait for Vcc to ramp up */    *PGCRA (immrVal) |= 0x00000040;		/* reset the card A */    flDelayMsecs (10);				/* wait for the reset */    *PGCRA (immrVal) &= ~0x00000040;#if	FALSE    printf ("PIPR=0x%x\n", *PIPR(immrVal));    printf ("PSCR=0x%x\n", *PSCR(immrVal));    printf ("PER=0x%x\n", *PER(immrVal));    printf ("PGCRA=0x%x\n", *PGCRA(immrVal));    printf ("PGCRB=0x%x\n", *PGCRB(immrVal));#endif	/* FALSE */    return (flOK);    }/********************************************************************************* pcSetWindow - 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 pcSetWindow    (    FLSocket vol		/* pointer identifying drive */    )    {    /* Physical base as a 4K page */    vol.window.baseAddress = PC_BASE_ADRS_1 >> 12;    flSetWindowSize (&vol, PC_BASE_ADRS_1 >> 12);    }/********************************************************************************* pcSetMappingContext - 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.** The page to map is guaranteed to be on a full window-size boundary.** RETURNS: N/A*/LOCAL void pcSetMappingContext    (    FLSocket vol,		/* pointer identifying drive */    unsigned page		/* page to be mapped */    )    {    int	immrVal = vxImmrIsbGet();    if (page & ATTRIBUTE_SPACE_MAPPED)        *POR1 (immrVal) |= 0x00000010;		/* attribute mem */    else        *POR1 (immrVal) &= ~0x00000010;		/* common mem */    }/********************************************************************************* pcGetAndClearCardChangeIndicator - 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 pcGetAndClearCardChangeIndicator    (    FLSocket vol		/* pointer identifying drive */    )    {    return (FALSE);    }/********************************************************************************* pcWriteProtected - 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 pcWriteProtected    (    FLSocket vol		/* pointer identifying drive */    )    {    return (FALSE);    }#endif	/* INCLUDE_SOCKET_PCMCIA *//********************************************************************************* flFitInSocketWindow - check whether the flash array fits in the socket window** This routine checks whether the flash array fits in the socket window.** RETURNS: A chip size guaranteed to fit in the socket window.*/long int flFitInSocketWindow     (    long int chipSize,		/* size of single physical chip in bytes */    int      interleaving,	/* flash chip interleaving (1,2,4 etc) */    long int windowSize		/* socket window size in bytes */    )    {    if (chipSize*interleaving > windowSize) /* doesn't fit in socket window */        {        int  roundedSizeBits;        /* fit chip in the socket window */        chipSize = windowSize / interleaving;        /* round chip size at powers of 2 */        for (roundedSizeBits = 0; (0x1L << roundedSizeBits) <= chipSize;             roundedSizeBits++)	    ;        chipSize = (0x1L << (roundedSizeBits - 1));        }    return (chipSize);    }#if	FALSE/********************************************************************************* sysTffsCpy - copy memory from one location to another** This routine copies <size> characters from the object pointed* to by <source> into the object pointed to by <destination>. If copying* takes place between objects that overlap, the behavior is undefined.** INCLUDE FILES: string.h** RETURNS: A pointer to <destination>.** NOMANUAL*/void * sysTffsCpy    (    void *       destination,   /* destination of copy */    const void * source,        /* source of copy */    size_t       size           /* size of memory to copy */    )    {    bcopy ((char *) source, (char *) destination, (size_t) size);    return (destination);    }/********************************************************************************* sysTffsSet - set a block of memory** This routine stores <c> converted to an `unsigned char' in each of the* elements of the array of `unsigned char' beginning at <m>, with size <size>.** INCLUDE FILES: string.h** RETURNS: A pointer to <m>.** NOMANUAL*/void * sysTffsSet    (    void * m,                   /* block of memory */    int    c,                   /* character to store */    size_t size                 /* size of memory */    )    {    bfill ((char *) m, (int) size, c);    return (m);    }#endif	/* FALSE *//********************************************************************************* flDelayMsecs - wait for specified number of milliseconds** This routine waits for specified number of milliseconds.** RETURNS: N/A** NOMANUAL*/void flDelayMsecs    (    unsigned milliseconds       /* milliseconds to wait */    )    {    UINT32 ix;    UINT32 iy = 1;    UINT32 iz = 2;    /* it doesn't count time consumed in interrupt level */    for (ix = 0; ix < milliseconds; ix++)        for (ix = 0; ix < sysTffsMsecLoopCount; ix++)	    {	    tickGet ();			/* dummy */	    iy = KILL_TIME_FUNC;	/* consume time */	    }    }/********************************************************************************* flDelayLoop - consume the specified time** This routine consumes the specified time.** RETURNS: N/A*/void flDelayLoop     (    int  cycles    )    {    while (--cycles)	;    }/********************************************************************************* sysTffsFormat - format the flash memory above an offset** This routine formats the flash memory.  Because this function defines * the symbolic constant, HALF_FORMAT, the lower half of the specified flash * memory is left unformatted.  If the lower half of the flash memory was* previously formated by TrueFFS, and you are trying to format the upper half,* you need to erase the lower half of the flash memory before you format the* upper half.  To do this, you could use:* .CS* tffsRawio(0, 3, 0, 8)  * .CE* The first argument in the tffsRawio() command shown above is the TrueFFS * drive number, 0.  The second argument, 3, is the function number (also * known as TFFS_PHYSICAL_ERASE).  The third argument, 0, specifies the unit * number of the first erase unit you want to erase.  The fourth argument, 8,* specifies how many erase units you want to erase.  ** RETURNS: OK, or ERROR if it fails.*/STATUS sysTffsFormat (void)    {    STATUS status;    tffsDevFormatParams params = 	{#define	HALF_FORMAT	/* lower 0.5MB for bootimage, upper 1.5MB for TFFS */#ifdef	HALF_FORMAT	{0x80000l, 99, 1, 0x10000l, NULL, {0,0,0,0}, NULL, 2, 0, NULL},#else	{0x000000l, 99, 1, 0x10000l, NULL, {0,0,0,0}, NULL, 2, 0, NULL},#endif	/* HALF_FORMAT */	FTL_FORMAT_IF_NEEDED	};    /* we assume that the drive number 0 is SIMM */    status = tffsDevFormat (0, (int)&params);    return (status);    }#endif /*INCLUDE_TFFS */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲第一久久影院| 亚洲永久免费视频| 国产成人av福利| 亚洲综合免费观看高清完整版在线 | 成人午夜电影网站| 亚洲一区二区av在线| 久久午夜免费电影| 精品视频在线免费观看| 在线观看日产精品| 成人午夜在线免费| 国产老女人精品毛片久久| 美国欧美日韩国产在线播放| 天天av天天翘天天综合网| 综合婷婷亚洲小说| 亚洲三级电影网站| 亚洲伦理在线免费看| 国产精品不卡在线| 亚洲色图在线视频| 亚洲三级视频在线观看| 午夜精品福利一区二区蜜股av| 一区二区久久久久久| 洋洋成人永久网站入口| 亚洲成人免费电影| 日本不卡的三区四区五区| 美女在线视频一区| 精品一区二区在线视频| 成人高清免费观看| 色偷偷成人一区二区三区91 | 91色综合久久久久婷婷| 色爱区综合激月婷婷| 91精品国产综合久久婷婷香蕉| 精品国产一区二区三区久久久蜜月 | 国产综合一区二区| 99久久久无码国产精品| 欧美精品少妇一区二区三区| 一区二区三区不卡在线观看 | 欧美日韩高清一区二区三区| 欧美一区二区三区视频在线观看| 精品欧美久久久| 亚洲午夜视频在线| 国产精品亚洲专一区二区三区 | 国产夜色精品一区二区av| 一区二区三区 在线观看视频| 秋霞午夜av一区二区三区| 欧美色视频一区| 久久人人超碰精品| 日韩电影免费在线看| 99在线热播精品免费| 精品国产99国产精品| 亚洲.国产.中文慕字在线| 成人精品亚洲人成在线| 精品国偷自产国产一区| 五月天亚洲精品| kk眼镜猥琐国模调教系列一区二区| 这里只有精品视频在线观看| 极品少妇xxxx偷拍精品少妇| 欧美在线影院一区二区| 亚洲色图清纯唯美| 成人深夜福利app| 日本一区二区三区四区| 国产一区二区网址| 精品第一国产综合精品aⅴ| 日本不卡的三区四区五区| 欧美喷水一区二区| 天天综合色天天综合色h| 欧美性大战久久久| 亚洲成人免费av| 在线不卡免费欧美| 国产精品中文有码| 欧美国产精品v| 粉嫩高潮美女一区二区三区| 欧美激情资源网| 成人综合婷婷国产精品久久蜜臀| 国产人妖乱国产精品人妖| 国产成人精品免费一区二区| 日韩伦理免费电影| 欧美美女网站色| 狠狠色狠狠色合久久伊人| 中文字幕乱码日本亚洲一区二区| 91麻豆swag| 成人精品高清在线| 99国内精品久久| 亚洲第一成人在线| 久久精品综合网| 色婷婷av一区二区三区大白胸 | 亚洲第一在线综合网站| 日韩免费电影一区| av在线不卡观看免费观看| 亚洲国产中文字幕在线视频综合| 欧美一区二区三区免费大片| 国产真实乱对白精彩久久| 亚洲国产精品一区二区www| 精品乱人伦小说| 欧美色国产精品| 成人性色生活片| 日本中文字幕不卡| 亚洲激情五月婷婷| 国产色综合久久| 欧美福利一区二区| 一本色道久久综合精品竹菊| 国产福利不卡视频| 日本不卡一区二区三区高清视频| 中文字幕在线不卡一区二区三区| 精品国产乱码久久久久久夜甘婷婷| 精品不卡在线视频| 欧美日韩国产bt| 欧美日韩久久一区二区| 成人app网站| 成人v精品蜜桃久久一区| 国产一区三区三区| 经典三级视频一区| 理论片日本一区| 久久99国产精品久久99果冻传媒| 亚洲国产日韩综合久久精品| 亚洲精品高清在线| 夜夜精品浪潮av一区二区三区| 一区在线观看视频| 免费人成精品欧美精品| 日韩精品成人一区二区三区| 日韩和的一区二区| 天堂在线一区二区| 美女网站在线免费欧美精品| 奇米色777欧美一区二区| 日韩电影在线一区二区三区| 美国十次综合导航| 精品亚洲欧美一区| 国产精品888| 91免费在线看| 欧美一区二区三区在线观看| 日韩美女视频在线| 欧美极品少妇xxxxⅹ高跟鞋 | 丁香一区二区三区| 波多野结衣中文一区| 一本到不卡精品视频在线观看 | xf在线a精品一区二区视频网站| 久久综合色一综合色88| 亚洲精选免费视频| 日本在线观看不卡视频| 国产自产视频一区二区三区| 91香蕉国产在线观看软件| 91精品久久久久久久99蜜桃 | 99九九99九九九视频精品| 欧美性色aⅴ视频一区日韩精品| 欧美大片一区二区| 亚洲综合久久久| 国产一区二区三区四区五区美女| 色视频成人在线观看免| 欧美午夜精品一区| 2024国产精品| 午夜精品久久久久影视| 99视频精品在线| 久久久国产综合精品女国产盗摄| 亚洲黄色免费网站| av激情亚洲男人天堂| 91精品视频网| 亚洲国产成人va在线观看天堂| 制服丝袜在线91| 亚洲日本在线观看| 丰满岳乱妇一区二区三区| 日韩一区二区精品在线观看| 亚洲成人免费电影| 色哟哟国产精品| 亚洲欧美日本韩国| 国产91对白在线观看九色| 亚洲精品一区二区三区在线观看| 亚洲亚洲人成综合网络| 在线观看日韩高清av| 自拍偷拍国产精品| 欧美最猛黑人xxxxx猛交| 中文字幕视频一区二区三区久| 国产激情一区二区三区| 成人高清免费观看| 国产精品欧美一区喷水| 成人黄色av网站在线| 国产精品成人免费| 色www精品视频在线观看| 亚洲一区二区三区视频在线| 欧洲精品一区二区| 亚洲高清在线精品| 91精品国产综合久久香蕉的特点| 蜜臀av国产精品久久久久| 久久久久久亚洲综合影院红桃| 国产精品综合视频| 亚洲精品视频观看| 日韩欧美第一区| 粉嫩av一区二区三区粉嫩| 最新中文字幕一区二区三区 | 精品视频123区在线观看| 青草国产精品久久久久久| 国产日韩av一区二区| 色综合久久综合网97色综合| 首页综合国产亚洲丝袜| 国产日韩欧美a| 欧美日韩国产另类一区| 国内精品视频一区二区三区八戒| 国产精品进线69影院| 日韩精品影音先锋| 日本黄色一区二区| 国产精品一二三区| 偷拍亚洲欧洲综合|