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

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

?? csl_emi.h

?? dm642 串口初始化以及測試的程序
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
 *  Copyright 2003 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) DSP/BIOS 4.90.200 05-05-03 (barracuda-m04)" */
/*-----------------------------------------------------------------------*\
* EMI - Ethernet MAC Interface
*
* EMI.H
*
* This file contains the specification of the EMI device.
*
* NOTE:
*   When used in an multitasking environment, no EMI function may be
*   called while another EMI function is operating on the same EMI
*   handle in another thread. It is the responsibility of the application
*   to assure adherence to this restriction. This includes the ISR
*   function, which means interrupts should be disable while calling EMI
*   by masking the CPU interrupt onto which the EMAC is mapped.
*
\*-----------------------------------------------------------------------*/
#ifndef _CSL_EMI_H_
#define _CSL_EMI_H_

#if (EMAC_SUPPORT)
/*-----------------------------------------------------------------------*\
* NEW TYPES
\*-----------------------------------------------------------------------*/
#ifndef _CSL_EMI_TYPES
#define _CSL_EMI_TYPES
typedef unsigned int uint;
typedef void * Handle;
#endif

/*-----------------------------------------------------------------------*\
* STANDARD DATA STRUCTURES
\*-----------------------------------------------------------------------*/

/*-----------------------------------------------------------------------*\
* EMI_Pkt
*
* The packet structure defines the basic unit of memory used to hold data
* packets for the EMI device.
*
* A packet is comprised of one or more packet buffers. Each packet buffer
* contains a packet buffer header, and a pointer to the buffer data.
* The EMI_Pkt structure defines the packet buffer header.
*
* The pDataBuffer field points to the packet data. This is set when the
* buffer is allocated, and is not altered.
*
* BufferLen holds the the total length of the data buffer that is used to
* store the packet (or packet fragment). This size is set by the entity
* that originally allocates the buffer, and is not altered.
*
* The Flags field contains additional information about the packet
*
* ValidLen holds the length of the valid data currently contained in the
* data buffer.
*
* DataOffset is the byte offset from the start of the data buffer to the
* first byte of valid data. Thus (ValidLen+DataOffet)<=BufferLen.
*
* Note that for receive buffer packets, the DataOffset field may be
* assigned before there is any valid data in the packet buffer. This allows
* the application to reserve space at the top of data buffer for private
* use. In all instances, the DataOffset field must be valid for all packets
* handled by EMI.
*
* The data portion of the packet buffer represents a packet or a fragment
* of a larger packet. This is determined by the Flags parameter. At the
* start of every packet, the SOP bit is set in Flags. If the EOP bit is
* also set, then the packet is not fragmented. Otherwise; the next packet
* structure pointed to by the pNext field will contain the next fragment in
* the packet. On either type of buffer, when the SOP bit is set in Flags,
* then the PktChannel, PktLength, and PktFrags fields must also be valid.
* These fields contain additional information about the packet.
*
* The PktChannel field detetmines what channel the packet has arrived on,
* or what channel it should be transmitted on. The EMI library supports
* only a single receive channel, but allows for up to eight transmit
* channels. Transmit channels can be treated as round-robin or priority
* queues.
*
* The PktLength field holds the size of the entire packet. On single frag
* packets (both SOP and EOP set in BufFlags), PktLength and ValidLen will
* be equal.
*
* The PktFrags field holds the number of fragments (EMI_Pkt records) used
* to describe the packet. If more than 1 frag is present, the first record
* must have EMI_PKT_FLAGS_SOP flag set, with corresponding fields validated.
* Each frag/record must be linked list using the pNext field, and the final
* frag/record must have EMI_PKT_FLAGS_EOP flag set and pNext=0.
*
* In systems where the packet resides in cacheable memory, the data buffer
* must start on a cache line boundary and be an even multiple of cache
* lines in size. The EMI_Pkt header must not appear in the same cache line
* as the data portion of the packet. On multi-fragment packets, some packet
* fragments may reside in cacheable memory where others do not.
*
* ** NOTE: It is up to the caller to assure that all packet buffers    **
* ** residing in cacheable memory are not currently stored in L1 or L2 **
* ** cache when passed to any EMI function                             **
*
* Some of the packet Flags can only be set if the device is in the
* proper configuration to receive the corresponding frames. In order to
* enable these flags, the following modes must be set:
*       RxCrc Flag  : RXCRC Mode in EMI_Config
*       RxErr Flags : PASSERROR Mode in EMI_Config
*       RxCtl Flags : PASSCONTROL Mode in EMI_Config
*       RxPrm Flag  : EMI_RXFILTER_ALL in EMI_setReceiveFilter()
*
\*-----------------------------------------------------------------------*/
typedef struct _EMI_Pkt {
    struct _EMI_Pkt *pPrev;       /* Previous record                       */
    struct _EMI_Pkt *pNext;       /* Next record                           */
    Uint8           *pDataBuffer; /* Pointer to Data Buffer                */
    Uint32          BufferLen;    /* Physical Length of buffer (read only) */
    Uint32          Flags;        /* Packet Flags                          */
    Uint32          ValidLen;     /* Length of valid data in buffer        */
    Uint32          DataOffset;   /* Byte offset to valid data             */
    Uint32          PktChannel;   /* Tx/Rx Channel/Priority 0-7 (SOP only) */
    Uint32          PktLength;    /* Length of Packet (SOP only)           */
                                  /* (same as ValidLen on single frag Pkt) */
    Uint32          PktFrags;     /* Number of frags in packet (SOP only)  */
                                  /* (frag is EMI_Pkt record - normally 1) */
    } EMI_Pkt;

/*
// Packet Buffer Flags set in Flags
*/
#define EMI_PKT_FLAGS_SOP         0x80000000u /* Start of packet           */
#define EMI_PKT_FLAGS_EOP         0x40000000u /* End of packet             */

/*
// The Following Packet flags are set in Flags on RX packets only
*/
#define EMI_PKT_FLAGS_HASCRC      0x04000000u /* RxCrc: PKT has 4byte CRC  */
#define EMI_PKT_FLAGS_JABBER      0x02000000u /* RxErr: Jabber             */
#define EMI_PKT_FLAGS_OVERSIZE    0x01000000u /* RxErr: Oversize           */
#define EMI_PKT_FLAGS_FRAGMENT    0x00800000u /* RxErr: Fragment           */
#define EMI_PKT_FLAGS_UNDERSIZED  0x00400000u /* RxErr: Undersized         */
#define EMI_PKT_FLAGS_CONTROL     0x00200000u /* RxCtl: Control Frame      */
#define EMI_PKT_FLAGS_OVERRUN     0x00100000u /* RxErr: Overrun            */
#define EMI_PKT_FLAGS_CODEERROR   0x00080000u /* RxErr: Code Error         */
#define EMI_PKT_FLAGS_ALIGNERROR  0x00040000u /* RxErr: Alignment Error    */
#define EMI_PKT_FLAGS_CRCERROR    0x00020000u /* RxErr: Bad CRC            */
#define EMI_PKT_FLAGS_NOMATCH     0x00010000u /* RxPrm: No Match           */


/*-----------------------------------------------------------------------*\
* EMI_Config
*
* The config structure defines how the EMI device should operate. It is
* passed to the device when the device is opened, and remains in effect
* until the device is closed.
*
* The following is a short description of the configuration fields:
*
* ModeFlags    - Specify the Fixed Operating Mode of the Device
* EMI_CONFIG_MODEFLG_CHPRIORITY  - Treat TX channels as Priority Levels
*                                  (Channel 7 is highest, 0 is lowest)
* EMI_CONFIG_MODEFLG_MACLOOPBACK - Set MAC in Internal Loopback for Testing
* EMI_CONFIG_MODEFLG_RXCRC       - Include the 4 byte EtherCRC in RX frames
* EMI_CONFIG_MODEFLG_TXCRC       - Assume TX Frames Include 4 byte EtherCRC
* EMI_CONFIG_MODEFLG_PASSERROR   - Receive Error Frames for Testing
* EMI_CONFIG_MODEFLG_PASSCONTROL - Receive Control Frames for Testing
*
* MdioModeFlags - Specify the MDIO/PHY Operation (See EMIMDIO.H)
*
* TxChannels    - Number of TX Channels to use (1-8, usually 1)
*
* MacAddr       - Device MAC address
*
* RxMaxPktPool  - Max Rx packet buffers to get from pool
*                 (Must be in the range of 8 to 192)
*
* A list of callback functions is used to register callback functions with
* a particular instance of the EMI peripheral. Callback functions are
* used by EMI to communicate with the application. These functions are
* REQUIRED for operation. The same callback table can be used for multiple
* driver instances.
*
* The callback functions can be used by EMI during any EMI function, but
* mostly occur during calls to EMI_statusIsr() and EMI_statusPoll().
*
* pfcbGetPacket -  Called by EMI to get a free packet buffer from the
*                  application layer for receive data. This function
*                  should return NULL is no free packets are available.
*                  The size of the packet buffer must be large enough
*                  to accommodate a full sized packet (1514 or 1518
*                  depending on the EMI_CONFIG_MODEFLG_RXCRC flag), plus
*                  any application buffer padding (DataOffset).
*
* pfcbFreePacket - Called by EMI to give a free packet buffer back to
*                  the application layer. This function is used to
*                  return transmit packets. Note that at the time of the
*                  call, structure fields other than pDataBuffer and
*                  BufferLen are in an undefined state.
*
* pfcbRxPacket   - Called to give a received data packet to the application
*                  layer. The applicaiton must accept the packet.
*                  When the application is finished with the packet, it
*                  can return it to its own free queue.
*
*                  This function also returns a pointer to a free packet to
*                  replace the received packet on the EMAC free list. It
*                  returns NULL when no free packets are available. The
*                  return packet is the same as would be returned by
*                  pfcbGetPacket.
*
*                  Thus if a newly received packet is not desired, it can
*                  simply be returned to EMI via the return value.
*
* pfcbStatus     - Called to indicate to the application that it
*                  should call EMI_getStatus() to read the current
*                  device status. This call is made when device status
*                  changes.
*
* pfcbStatistics - Called to indicate to the application that it
*                  should call EMI_getStatistics() to read the
*                  current Ethernet statistics. Called when the
*                  statistic counters are to the point of overflow.
*
* The hApplication calling calling argument is the application's handle
* as supplied to the EMI device in the EMI_open() function.
\*-----------------------------------------------------------------------*/
typedef struct _EMI_Config {
    uint        ModeFlags;      /* Configuation Mode Flags                */
    uint        MdioModeFlags;  /* EMIMDIO Mode Flags (see EMIMDIO.H)     */
    uint        TxChannels;     /* Number of Tx Channels to use (1-8)     */
    Uint8       MacAddr[6];     /* Mac Address                            */
    uint        RxMaxPktPool;   /* Max Rx packet buffers to get from pool */
    EMI_Pkt *   (*pfcbGetPacket)(Handle hApplication);
    void        (*pfcbFreePacket)(Handle hApplication, EMI_Pkt *pEmiPacket);
    EMI_Pkt *   (*pfcbRxPacket)(Handle hApplication, EMI_Pkt *pEmiPacket);
    void        (*pfcbStatus)(Handle hApplication);
    void        (*pfcbStatistics)(Handle hApplication);
} EMI_Config;

/*
//  Configuration Mode Flags
*/
#define EMI_CONFIG_MODEFLG_CHPRIORITY  0x0001 /* Use Tx channel priority  */
#define EMI_CONFIG_MODEFLG_MACLOOPBACK 0x0002 /* MAC internal loopback    */
#define EMI_CONFIG_MODEFLG_RXCRC       0x0004 /* Include CRC in RX frames */
#define EMI_CONFIG_MODEFLG_TXCRC       0x0008 /* Tx frames include CRC    */
#define EMI_CONFIG_MODEFLG_PASSERROR   0x0010 /* Pass error frames            */
#define EMI_CONFIG_MODEFLG_PASSCONTROL 0x0020 /* Pass control frames          */

/*-----------------------------------------------------------------------*\
* EMI_Status
*
* The status structure contains information about the MAC's run-time
* status.
*
* The following is a short description of the configuration fields:
*
* MdioLinkStatus - Current link status (non-zero on good link) (see EMIMDIO.H)
*
* PhyDev         - Current PHY device in use (0-31)
*
* RxPktHeld      - Current number of Rx packets held by the EMI device
*
* TxPktHeld      - Current number of Tx packets held by the EMI device
*
* FatalError     - Fatal Error Code (TBD)
\*-----------------------------------------------------------------------*/
typedef struct _EMI_Status {
    uint        MdioLinkStatus; /* EMIMDIO Link status (see EMIMDIO.H)   */
    uint        PhyDev;         /* Current PHY device in use (0-31)      */
    uint        RxPktHeld;      /* Number of packets held for Rx         */
    uint        TxPktHeld;      /* Number of packets held for Tx         */
    uint        FatalError;     /* Fatal Error when non-zero             */
} EMI_Status;


/*-----------------------------------------------------------------------*\
* EMI_Statistics
*
* The statistics structure is the used to retrieve the current count
* of various packet events in the system. These values represent the
* delta values from the last time the statistics were read.
\*-----------------------------------------------------------------------*/
typedef struct _EMI_Statistics {
    Uint32 RxGoodFrames;     /* Good Frames Received                         */
    Uint32 RxBCastFrames;    /* Good Broadcast Frames Received               */
    Uint32 RxMCastFrames;    /* Good Multicast Frames Received               */
    Uint32 RxPauseFrames;    /* PauseRx Frames Received                      */
    Uint32 RxCRCErrors;      /* Frames Received with CRC Errors              */
    Uint32 RxAlignCodeErrors;/* Frames Received with Alignment/Code Errors   */
    Uint32 RxOversized;      /* Oversized Frames Received                    */
    Uint32 RxJabber;         /* Jabber Frames Received                       */
    Uint32 RxUndersized;     /* Undersized Frames Received                   */
    Uint32 RxFragments;      /* Rx Frame Fragments Received                  */
    Uint32 RxFiltered;       /* Rx Frames Filtered Based on Address          */
    Uint32 RxQOSFiltered;    /* Rx Frames Filtered Based on QoS Filtering    */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91香蕉视频mp4| 精品一区二区av| 在线观看日韩毛片| 一区二区三区中文字幕在线观看| 成人va在线观看| 亚洲精品久久久久久国产精华液| 在线观看亚洲精品视频| 午夜精品一区二区三区免费视频| 欧美一级日韩一级| 日本成人在线视频网站| 久久美女艺术照精彩视频福利播放| 国产精一品亚洲二区在线视频| 中文字幕高清一区| 色天使久久综合网天天| 日韩精品五月天| 久久精品在线免费观看| 91电影在线观看| 美女性感视频久久| 18欧美乱大交hd1984| 欧美日精品一区视频| 精品一区二区三区久久| 亚洲视频一区二区免费在线观看| 欧美片在线播放| 国产成人综合视频| 亚洲国产精品久久一线不卡| 精品国精品国产尤物美女| 99视频一区二区三区| 青青草91视频| 亚洲免费毛片网站| 精品999在线播放| 一本在线高清不卡dvd| 毛片av中文字幕一区二区| 最新成人av在线| 欧美va亚洲va在线观看蝴蝶网| 成人aa视频在线观看| 欧美a级一区二区| 亚洲欧美综合网| www久久精品| 欧美另类一区二区三区| 成人自拍视频在线观看| 日本不卡一区二区| 亚洲欧美日韩国产成人精品影院 | 韩国av一区二区三区| 亚洲日本一区二区| 久久网这里都是精品| 欧美体内she精高潮| 99久久精品国产毛片| 国产麻豆视频一区二区| 肉色丝袜一区二区| 亚洲精品国产品国语在线app| 久久久久久夜精品精品免费| 欧美日韩一区 二区 三区 久久精品| 高清视频一区二区| 久久99精品国产91久久来源| 天天av天天翘天天综合网| 亚洲欧洲日韩在线| 国产欧美一区二区精品性| 欧美一区二区免费观在线| 日本黄色一区二区| 91免费在线播放| 不卡影院免费观看| 国产成人99久久亚洲综合精品| 麻豆免费看一区二区三区| 水野朝阳av一区二区三区| 一区二区三区在线观看视频| 国产精品理论在线观看| 国产清纯美女被跳蛋高潮一区二区久久w| 91精品国产综合久久精品性色| 欧美性猛片aaaaaaa做受| 色网站国产精品| 色婷婷精品久久二区二区蜜臀av| 99re这里只有精品首页| av网站免费线看精品| 99视频精品在线| 99精品视频在线免费观看| 99精品视频在线观看免费| 99国产精品久久久久久久久久| 99久久免费精品高清特色大片| 成人免费毛片片v| 成人av在线电影| 色综合激情五月| 欧美在线观看视频在线| 欧美日韩电影在线| 91麻豆精品国产| 精品日韩一区二区| 久久综合色一综合色88| 日本一区二区三区视频视频| 国产精品乱人伦中文| 中文字幕欧美一区| 亚洲综合视频网| 日韩经典一区二区| 精品一区二区综合| 国产99久久久精品| 91美女在线观看| 在线播放亚洲一区| www激情久久| 麻豆91免费看| 不卡区在线中文字幕| 色欲综合视频天天天| 欧美一区二区三区在线观看视频| 欧美电影免费提供在线观看| 久久久久久9999| 中文字幕字幕中文在线中不卡视频| 亚洲已满18点击进入久久| 日本不卡在线视频| 欧美大片在线观看一区二区| 欧美韩国日本一区| 亚洲成人自拍一区| 国产精品影视在线观看| 色香蕉成人二区免费| 日韩免费高清视频| 自拍偷拍国产精品| 麻豆精品一区二区三区| 成人网在线播放| 欧美一级艳片视频免费观看| 国产精品天天看| 日韩av二区在线播放| 成人97人人超碰人人99| 欧美一区二区美女| 国产精品久久久一区麻豆最新章节| 亚洲综合丝袜美腿| 国产成人免费在线| 欧美日本一区二区三区| 亚洲国产成人在线| 美国精品在线观看| 在线观看av一区| 日本一区二区动态图| 琪琪久久久久日韩精品| 97精品久久久久中文字幕| 欧美精品一区二区三| 亚洲地区一二三色| 99久久精品国产麻豆演员表| 精品精品国产高清一毛片一天堂| 一区二区三区精品视频在线| 国产一区二区在线电影| 777欧美精品| 樱桃国产成人精品视频| 国产激情一区二区三区四区| 91精品国产黑色紧身裤美女| 亚洲欧美日韩综合aⅴ视频| 国产精品99精品久久免费| 91精品久久久久久久91蜜桃| 亚洲免费在线看| 成年人网站91| 国产三级精品视频| 麻豆精品国产传媒mv男同 | 亚洲电影视频在线| 97久久久精品综合88久久| 久久久精品免费网站| 美女视频黄a大片欧美| 欧美日韩精品一区二区在线播放| 136国产福利精品导航| 国产精品99久久久久久有的能看| 亚洲国产精品一区二区www| 色综合久久88色综合天天免费| 欧美经典一区二区三区| 国产精品一品视频| 久久婷婷久久一区二区三区| 狠狠狠色丁香婷婷综合久久五月| 欧美一区二区三区视频在线观看| 亚洲v精品v日韩v欧美v专区| 在线精品视频一区二区| 一区二区成人在线| 欧美视频中文字幕| 午夜亚洲福利老司机| 欧美日韩一级大片网址| 五月综合激情网| 欧美精品久久99久久在免费线| 亚洲一区二区三区国产| 欧美吞精做爰啪啪高潮| 午夜私人影院久久久久| 884aa四虎影成人精品一区| 秋霞午夜鲁丝一区二区老狼| 日韩一区二区精品在线观看| 美女视频一区二区三区| xfplay精品久久| 国产精品18久久久久久久久| 久久精品在这里| 99re这里只有精品视频首页| 亚洲欧美日本韩国| 欧美精品一二三| 免费观看30秒视频久久| 精品国产网站在线观看| 国产一区二区网址| 亚洲欧洲一区二区三区| 91传媒视频在线播放| 日产欧产美韩系列久久99| 欧美v国产在线一区二区三区| 国产精品中文字幕一区二区三区| 欧美激情一区二区三区在线| 99国产麻豆精品| 天天做天天摸天天爽国产一区 | 成人黄色软件下载| 亚洲欧美aⅴ...| 欧美一区二区三区四区高清| 国产经典欧美精品| 亚洲一区在线观看网站| 欧美变态tickle挠乳网站| av成人老司机| 日韩在线卡一卡二|