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

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

?? lan91c96.c

?? 移植到WLIT項目的redboot源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
/**********************************************************************************  COPYRIGHT (C) 2000, 2001 Intel Corporation.****  This software as well as the software described in it is furnished under **  license and may only be used or copied in accordance with the terms of the **  license. The information in this file is furnished for informational use **  only, is subject to change without notice, and should not be construed as **  a commitment by Intel Corporation. Intel Corporation assumes no **  responsibility or liability for any errors or inaccuracies that may appear **  in this document or any software that may be provided in association with **  this document. **  Except as permitted by such license, no part of this document may be **  reproduced, stored in a retrieval system, or transmitted in any form or by **  any means without the express written consent of Intel Corporation. ****  FILENAME:       lan91c96.c****  PURPOSE:       This file contains the LAN91C96 device driver. This module**                 is common for all platforms supporting this device.****  LAST MODIFIED:  $Modtime: 3/26/02 12:35a $******************************************************************************//*********************************************************************************   HEADER FILES********************************************************************************/#include <redboot.h>#include <cyg/infra/cyg_type.h>#include "../include/lan91c96API.h"#include "../include/lan91c96.h"#define __TIMEOUT	100000#define __TIMEBASE	3686400extern void hal_clock_read(cyg_uint32 *) ;extern unsigned long hal_elapsed_ticks(unsigned long *) ;extern void hal_delay_us(cyg_uint32) ;extern LAN91C96_ContextT ctxSLan91c96;/*********************************************************************************   LOCAL DEFINITIONS********************************************************************************///static OSTContextT *ostCtxP = &Ost;/********************************************************************************** FUNCTION:*    ReadWord** DESCRIPTION:*    Read 16-Bit Word from LAN91C96** INPUT PARAMETERS:*    PVUINT32 offset - Pointer to value to read.** RETURNS:*    Value read.** GLOBAL EFFECTS:*    None.** ASSUMPTIONS:*    None.** CALLS:*    None.** CALLED BY:*    All routines needed to access the LAN91C96 on board registers.** PROTOTYPE:*    static*    UINT16 ReadWord(PVUINT32 offset);*********************************************************************************/staticUINT16 ReadWord(PVUINT32 offset){    return((*offset & 0xFF) | ((*(offset + 1) & 0xFF) << 8));}/********************************************************************************** FUNCTION:*    ReadByte** DESCRIPTION:*    Read 8-bit byte from LAN91C96** INPUT PARAMETERS:*    PVUINT32 offset - Pointer to value to read.** RETURNS:*    Value read.** GLOBAL EFFECTS:*    None.** ASSUMPTIONS:*    None.** CALLS:*    None.** CALLED BY:*    All routines needed to access the LAN91C96 on board registers.** PROTOTYPE:*    static*    UINT16 ReadByte(PVUINT32 offset);*********************************************************************************/staticUINT16 ReadByte(PVUINT32 offset){    return(*offset & 0xFF);}/********************************************************************************** FUNCTION:*    WriteWord** DESCRIPTION:*    Write 16-Bit Word to LAN91C96** INPUT PARAMETERS:*    UINT16 value - Value to write*    PVUINT32 offset - Pointer of offset** RETURNS:*    None.** GLOBAL EFFECTS:*    None.** ASSUMPTIONS:*    None.** CALLS:*    None.** CALLED BY:*    All routines needed to access the LAN91C96 on board registers.** PROTOTYPE:*    static*    VOID WriteWord(UINT16 value, PVUINT32 offset);*********************************************************************************/staticVOID WriteWord(UINT16 value, PVUINT32 offset){    *offset = value & 0xFF ;    *(offset + 1) = (unsigned long)((value & 0xFF00) >> 8);}/********************************************************************************** FUNCTION:*    WriteByte** DESCRIPTION:*    Write 8-Bit byte to LAN91C96** INPUT PARAMETERS:*    UINT16 value - Value to write*    PVUINT32 offset - Pointer of offset** RETURNS:*    None.** GLOBAL EFFECTS:*    None.** ASSUMPTIONS:*    None.** CALLS:*    None.** CALLED BY:*    All routines needed to access the LAN91C96 on board registers.** PROTOTYPE:*    static*    VOID WriteByte(UINT16 value, PVUINT32 offset);*********************************************************************************/staticVOID WriteByte(UINT16 value, PVUINT32 offset){    *offset = (value & 0xFF);}/********************************************************************************** FUNCTION:*    GetTimeStamp** DESCRIPTION:*    Get a time reference.** INPUT PARAMETERS:*    LAN91C96_ContextT *ctxP - Pointer to the LAN91C96 Device Context Structure** RETURNS:*    None.** GLOBAL EFFECTS:*    The time stamp is updated in the DCS.** ASSUMPTIONS:*    None.** CALLS:*    None.** CALLED BY:*    Any LAN91C96 internal routine.** PROTOTYPE:*    VOID GetTimeStamp(LAN91C96_ContextT *ctxP);** NOTE:*    static*    This routine should be called prior to calling GetDeltaTimeStamp.*********************************************************************************/staticVOID GetTimeStamp(LAN91C96_ContextT *ctxP){    if (ctxP->timeFlag)    {        // Get starting poll start timestamp.        ctxP->timeStamp = 0 ;//ostCtxP->getTimer_fnp(ostCtxP);    }    else    {        ctxP->timeStamp = 0;        ctxP->deltaTime = 0;    }}/********************************************************************************** FUNCTION:*    GetDeltaTimeStamp** DESCRIPTION:*    Get a delta time reference.** INPUT PARAMETERS:*    LAN91C96_ContextT *ctxP - Pointer to the LAN91C96 Device Context Structure** RETURNS:*    None.** GLOBAL EFFECTS:*    The delta time stamp is updated in the DCS.** ASSUMPTIONS:*    None.** CALLS:*    None.** CALLED BY:*    Any LAN91C96 internal routine.** PROTOTYPE:*    VOID GetDeltaTimeStamp(LAN91C96_ContextT *ctxP);** NOTE:*    static*    This routine should be called after calling GetTimeStamp.*********************************************************************************/staticVOID GetDeltaTimeStamp(LAN91C96_ContextT *ctxP, PCHAR title){    if (ctxP->timeFlag)    {        ctxP->deltaTime = 0 ; //ostCtxP->getDelta_fnp(ostCtxP, ctxP->timeStamp);    }}/********************************************************************************** FUNCTION:*    DisplayTxStatus** DESCRIPTION:*    Display the bit settings for the Transmit Status Word.** INPUT PARAMETERS:*    LAN91C96_ContextT *ctxP - Pointer to the LAN91C96 Device Context Structure.** RETURNS:*    None.** GLOBAL EFFECTS:*    None.** ASSUMPTIONS:*    None.** CALLS:*    WriteByte - To write a byte to either the attribute or I/O space.*    WriteWord - To write a word to either the attribute or I/O space.*    DM_CWDbgPrintf - Display debug messages for this device.** CALLED BY:*    LAN91C96TransmitPacket** PROTOTYPE:*    static*    VOID DisplayTxStatus(LAN91C96_ContextT *ctxP);*********************************************************************************/staticVOID DisplayTxStatus(LAN91C96_ContextT *ctxP){    PVUINT32 ioRegsP = ctxP->LAN91C96IoP;     // Get pointer to I/O space    volatile UINT16 ephSR;		volatile unsigned char bankActiveOnEntry ;		//Read the current bank and store so it can be restored upon exiting this function		bankActiveOnEntry = ReadByte(&ioRegsP[LAN91C96_BANK_SELECT]) ;    // Select Bank 0    WriteByte(BANK0, &ioRegsP[LAN91C96_BANK_SELECT]);    // Get the transmit status.    //WriteWord(LAN91C96_PTR_READ, &ioRegsP[LAN91C96_POINTER]);    ephSR = ReadWord(&ioRegsP[LAN91C96_EPH_STATUS]);    // Display the error bits.    if (ephSR & LAN91C96_EPHSR_ERRORS)    {//printf("LAN91C96_EPHSR_ERRORS\n") ;    }    if (ephSR & LAN91C96_EPHSR_SNGL_COL)    {			printf("LAN91C96_EPHSR_SNGL_COL\n") ;    }    if (ephSR & LAN91C96_EPHSR_MUL_COL)    {			printf("LAN91C96_EPHSR_MUL_COL\n") ;    }    if (ephSR & LAN91C96_EPHSR_16COL)    {			printf("LAN91C96_EPHSR_16COL\n") ;    }    if (ephSR & LAN91C96_EPHSR_SQET)    {			printf("LAN91C96_EPHSR_SQET\n") ;    }    if (ephSR & LAN91C96_EPHSR_TX_DEFR)    {			printf("LAN91C96_EPHSR_TX_DEFR\n") ;    }    if (ephSR & LAN91C96_EPHSR_LATCOL)    {			printf("LAN91C96_EPHSR_LATCOL\n") ;    }    if (ephSR & LAN91C96_EPHSR_LOST_CARR)    {			printf("LAN91C96_EPHSR_LOST_CARR\n") ;    }    if (ephSR & LAN91C96_EPHSR_EXC_DEF)    {			printf("LAN91C96_EPHSR_EXC_DEF\n") ;    }    if (ephSR & LAN91C96_EPHSR_LINK_OK)    {			printf("LAN91C96_EPHSR_LINK_OK\n") ;    }    if (ephSR & LAN91C96_EPHSR_TX_UNRN)    {			printf("LAN91C96_EPHSR_TX_UNRN\n") ;    }		if (ephSR & LAN91C96_EPHSR_LTX_MULT)		{			printf("LAN91C96_EPHSR_LTX_MULT\n");		}		if (ephSR & LAN91C96_EPHSR_LTX_BRD)		{			printf("LAN91C96_EPHSR_LTX_BRD\n") ;		}		//restore the bank to htat whic was active when this function was entered		WriteByte(bankActiveOnEntry, &ioRegsP[LAN91C96_BANK_SELECT]);}/********************************************************************************** FUNCTION:*    ReadEEPROM** DESCRIPTION:*    This routine reads a value from the LAN91C98 EEPROM

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区在线播放| 久久精品国产澳门| 91片在线免费观看| 亚洲一区二区美女| 国产在线不卡视频| 欧美日韩视频在线一区二区 | 舔着乳尖日韩一区| 91精品国产高清一区二区三区| 奇米色一区二区三区四区| 久久九九久精品国产免费直播| 国产成人亚洲综合a∨婷婷| 日韩理论片一区二区| 欧美日韩一区二区电影| 精品一区二区综合| 中文字幕日本不卡| 欧美日韩精品专区| 国产一区二区视频在线播放| 国产精品高潮呻吟| 欧美精品99久久久**| 国产伦精品一区二区三区视频青涩| 国产精品亲子乱子伦xxxx裸| 欧美日韩精品是欧美日韩精品| 美女视频黄a大片欧美| 中文字幕一区免费在线观看| 欧美日韩电影在线| 成人一区二区视频| 欧美一级艳片视频免费观看| 香蕉久久一区二区不卡无毒影院| 欧美二区在线观看| 成人av在线电影| 午夜精品福利久久久| 亚洲国产精品av| 91精品国产欧美一区二区| 成人污视频在线观看| 日韩在线a电影| 国产精品第一页第二页第三页| 欧美精品久久久久久久多人混战 | 欧美日韩美女一区二区| 国产一区二区三区在线观看免费 | 国产毛片精品视频| 亚洲成在人线免费| 中文字幕欧美日本乱码一线二线 | 欧美电视剧在线看免费| 91丨porny丨户外露出| 国产一区二区不卡| 日韩成人免费看| 一区二区三区欧美日韩| 久久网站热最新地址| 91精品一区二区三区在线观看| 一本色道久久综合狠狠躁的推荐 | 99久久精品国产一区| 激情欧美一区二区| 欧美aⅴ一区二区三区视频| 一区二区三区国产精品| 亚洲天天做日日做天天谢日日欢| 久久综合九色欧美综合狠狠| 91精品国产91综合久久蜜臀| 欧美视频日韩视频| 91国在线观看| 91麻豆精东视频| 成人禁用看黄a在线| 成人免费看片app下载| 国产精品123区| 亚洲一区二区三区中文字幕| 成人免费视频一区| 免费一级片91| 热久久免费视频| 午夜成人免费电影| 亚洲午夜免费福利视频| 亚洲尤物在线视频观看| 一区二区三区不卡视频| 一二三区精品视频| 亚洲一区二区三区四区在线| 亚洲精品第1页| 亚洲精品中文字幕在线观看| 亚洲视频一二三| 夜夜嗨av一区二区三区中文字幕| 亚洲蜜桃精久久久久久久| 亚洲精品国产a久久久久久 | 国产一区二区久久| 青青草91视频| 五月婷婷欧美视频| 视频在线观看91| 美女免费视频一区二区| 激情综合一区二区三区| 国精品**一区二区三区在线蜜桃 | 国产1区2区3区精品美女| 国产不卡免费视频| av中文字幕不卡| 色猫猫国产区一区二在线视频| 一本大道综合伊人精品热热| 欧美性受极品xxxx喷水| 日韩一级完整毛片| 久久久久久亚洲综合影院红桃| 久久精品欧美一区二区三区麻豆| 国产精品久久久一本精品| 亚洲精品高清在线观看| 日本欧美韩国一区三区| 韩国精品主播一区二区在线观看 | 91精品国模一区二区三区| 精品免费日韩av| 中文字幕的久久| 一区二区欧美在线观看| 蜜臀av一区二区三区| 懂色av中文一区二区三区| 欧美色爱综合网| 久久久精品综合| 一区二区三区欧美在线观看| 麻豆一区二区三区| 色综合天天性综合| 91精品国产日韩91久久久久久| 国产欧美中文在线| 亚洲第一会所有码转帖| 国产a级毛片一区| 欧美视频中文一区二区三区在线观看| 日韩欧美一区二区在线视频| 中文字幕一区二区三区乱码在线 | 久久国产精品99久久人人澡| 99视频在线精品| 日韩欧美国产综合一区| 亚洲人成精品久久久久| 日日夜夜精品视频免费| 成人综合在线网站| 这里只有精品99re| 亚洲男人的天堂在线aⅴ视频| 精品一区二区三区影院在线午夜| 99国产精品久久久久| 日韩女优制服丝袜电影| 亚洲免费在线看| 国产精品99久| 日韩精品一区二区三区视频播放| 日韩毛片在线免费观看| 国产乱子轮精品视频| 欧美日韩一级视频| 亚洲丝袜另类动漫二区| 国产福利精品一区| 日韩欧美一区二区免费| 亚洲sss视频在线视频| www.欧美精品一二区| 精品999在线播放| 日韩国产精品久久| 欧美视频第二页| 美女一区二区在线观看| 欧美日韩电影一区| 一区二区三区日韩欧美| 色综合一个色综合| 中文字幕一区二区三区蜜月| 国产经典欧美精品| www国产精品av| 青青草国产精品亚洲专区无| 欧美人与z0zoxxxx视频| 亚洲最新视频在线观看| 色av综合在线| 亚洲精品中文在线| 91在线一区二区三区| 国产精品久久精品日日| 国产不卡高清在线观看视频| 久久嫩草精品久久久精品一| 精彩视频一区二区| 欧美tickle裸体挠脚心vk| 麻豆成人久久精品二区三区小说| 9191久久久久久久久久久| 五月婷婷色综合| 91精品国产欧美一区二区成人| 午夜视黄欧洲亚洲| 717成人午夜免费福利电影| 五月天中文字幕一区二区| 7777精品伊人久久久大香线蕉经典版下载 | 日韩精品成人一区二区三区| 欧美制服丝袜第一页| 亚洲成人黄色影院| 精品视频在线免费观看| 午夜视频一区二区| 欧美一级日韩不卡播放免费| 美女久久久精品| 久久综合狠狠综合久久综合88 | 国产午夜精品福利| 粉嫩蜜臀av国产精品网站| 国产精品久久久久久福利一牛影视| 99久久婷婷国产| 一区二区三区免费看视频| 欧美日本一道本| 久久精品国产一区二区| 国产欧美一区二区三区沐欲| 成人高清伦理免费影院在线观看| 亚洲色图欧美激情| 欧美日韩精品免费| 国产一区激情在线| 亚洲视频网在线直播| 欧美日韩高清在线播放| 韩国女主播成人在线观看| 国产精品人人做人人爽人人添| 色94色欧美sute亚洲13| 日韩激情视频网站| 欧美精品一区二区在线播放| 成人一区二区三区| 一区二区免费看| 91在线视频官网| 亚洲人吸女人奶水| 欧美日本一区二区三区四区|