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

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

?? csl_emac.h

?? mpeg2_encoder為MPEG2算法的DEMO
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*****************************************************************************\
*           Copyright (C) 1999-2003 Texas Instruments Incorporated.
*                           All Rights Reserved
*------------------------------------------------------------------------------
* FILENAME...... csl_emac.h
* DATE CREATED.. 02/08/2002
* LAST MODIFIED. 04/24/2003
*------------------------------------------------------------------------------
* NOTE:
*   When used in an multitasking environment, no EMAC function may be
*   called while another EMAC function is operating on the same device
*   handle in another thread. It is the responsibility of the application
*   to assure adherence to this restriction.
*
\******************************************************************************/
#ifndef _CSL_EMAC_H
#define _CSL_EMAC_H_

/* Include the main CSL file */
#include <csl.h>

#include <csl_mdio.h>

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

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

/*-----------------------------------------------------------------------*\
* EMAC_Pkt
*
* The packet structure defines the basic unit of memory used to hold data
* packets for the EMAC 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 EMAC_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 EMAC.
*
* 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 EMAC 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 (EMAC_Pkt records) used
* to describe the packet. If more than 1 frag is present, the first record
* must have EMAC_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 EMAC_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 EMAC_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 EMAC 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 EMAC_Config
*       RxErr Flags : PASSERROR Mode in EMAC_Config
*       RxCtl Flags : PASSCONTROL Mode in EMAC_Config
*       RxPrm Flag  : EMAC_RXFILTER_ALL in EMAC_setReceiveFilter()
*
\*-----------------------------------------------------------------------*/
typedef struct _EMAC_Pkt {
    Uint32           AppPrivate;   /* For use by the application            */
    struct _EMAC_Pkt *pPrev;       /* Previous record                       */
    struct _EMAC_Pkt *pNext;       /* Next record                           */
    Uint8            *pDataBuffer; /* Pointer to Data Buffer (read only)    */
    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 EMAC_Pkt record - normally 1)*/
    } EMAC_Pkt;

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

/*
// The Following Packet flags are set in Flags on RX packets only
*/
#define EMAC_PKT_FLAGS_HASCRC      0x04000000u /* RxCrc: PKT has 4byte CRC  */
#define EMAC_PKT_FLAGS_JABBER      0x02000000u /* RxErr: Jabber             */
#define EMAC_PKT_FLAGS_OVERSIZE    0x01000000u /* RxErr: Oversize           */
#define EMAC_PKT_FLAGS_FRAGMENT    0x00800000u /* RxErr: Fragment           */
#define EMAC_PKT_FLAGS_UNDERSIZED  0x00400000u /* RxErr: Undersized         */
#define EMAC_PKT_FLAGS_CONTROL     0x00200000u /* RxCtl: Control Frame      */
#define EMAC_PKT_FLAGS_OVERRUN     0x00100000u /* RxErr: Overrun            */
#define EMAC_PKT_FLAGS_CODEERROR   0x00080000u /* RxErr: Code Error         */
#define EMAC_PKT_FLAGS_ALIGNERROR  0x00040000u /* RxErr: Alignment Error    */
#define EMAC_PKT_FLAGS_CRCERROR    0x00020000u /* RxErr: Bad CRC            */
#define EMAC_PKT_FLAGS_NOMATCH     0x00010000u /* RxPrm: No Match           */


/*-----------------------------------------------------------------------*\
* EMAC_Config
*
* The config structure defines how the EMAC 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
* EMAC_CONFIG_MODEFLG_CHPRIORITY  - Treat TX channels as Priority Levels
*                                  (Channel 7 is highest, 0 is lowest)
* EMAC_CONFIG_MODEFLG_MACLOOPBACK - Set MAC in Internal Loopback for Testing
* EMAC_CONFIG_MODEFLG_RXCRC       - Include the 4 byte EtherCRC in RX frames
* EMAC_CONFIG_MODEFLG_TXCRC       - Assume TX Frames Include 4 byte EtherCRC
* EMAC_CONFIG_MODEFLG_PASSERROR   - Receive Error Frames for Testing
* EMAC_CONFIG_MODEFLG_PASSCONTROL - Receive Control Frames for Testing
*
* MdioModeFlags - Specify the MDIO/PHY Operation (See EMACMDIO.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 EMAC peripheral. Callback functions are
* used by EMAC 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 EMAC during any EMAC function, but
* mostly occur during calls to EMAC_statusIsr() and EMAC_statusPoll().
*
* pfcbGetPacket -  Called by EMAC 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 EMAC_CONFIG_MODEFLG_RXCRC flag), plus
*                  any application buffer padding (DataOffset).
*
* pfcbFreePacket - Called by EMAC 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 EMAC via the return value.
*
* pfcbStatus     - Called to indicate to the application that it
*                  should call EMAC_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 EMAC_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 EMAC device in the EMAC_open() function.
\*-----------------------------------------------------------------------*/
typedef struct _EMAC_Config {
    uint        ModeFlags;      /* Configuation Mode Flags                */
    uint        MdioModeFlags;  /* CSL_MDIO Mode Flags (see CSL_MDIO.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 */
    EMAC_Pkt *  (*pfcbGetPacket)(Handle hApplication);
    void        (*pfcbFreePacket)(Handle hApplication, EMAC_Pkt *pPacket);
    EMAC_Pkt *  (*pfcbRxPacket)(Handle hApplication, EMAC_Pkt *pPacket);
    void        (*pfcbStatus)(Handle hApplication);
    void        (*pfcbStatistics)(Handle hApplication);
} EMAC_Config;

/*
//  Configuration Mode Flags
*/
#define EMAC_CONFIG_MODEFLG_CHPRIORITY  0x0001 /* Use Tx channel priority  */
#define EMAC_CONFIG_MODEFLG_MACLOOPBACK 0x0002 /* MAC internal loopback    */
#define EMAC_CONFIG_MODEFLG_RXCRC       0x0004 /* Include CRC in RX frames */
#define EMAC_CONFIG_MODEFLG_TXCRC       0x0008 /* Tx frames include CRC    */
#define EMAC_CONFIG_MODEFLG_PASSERROR   0x0010 /* Pass error frames        */
#define EMAC_CONFIG_MODEFLG_PASSCONTROL 0x0020 /* Pass control frames      */

/*-----------------------------------------------------------------------*\
* EMAC_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 link) (see CSL_MDIO.H)
*
* PhyDev         - Current PHY device in use (0-31)
*
* RxPktHeld      - Current number of Rx packets held by the EMAC device
*
* TxPktHeld      - Current number of Tx packets held by the EMAC device
*
* FatalError     - Fatal Error Code (TBD)
\*-----------------------------------------------------------------------*/
typedef struct _EMAC_Status {
    uint        MdioLinkStatus; /* CSL_MDIO Link status (see CSL_MDIO.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             */
} EMAC_Status;


/*-----------------------------------------------------------------------*\
* EMAC_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 _EMAC_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    */
    Uint32 RxOctets;         /* Total Received Bytes in Good Frames          */
    Uint32 TxGoodFrames;     /* Good Frames Sent                             */
    Uint32 TxBCastFrames;    /* Good Broadcast Frames Sent                   */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合激情网| 国产成人亚洲综合a∨猫咪| 国产在线视频精品一区| www.欧美.com| 日韩一区二区在线看片| 亚洲人吸女人奶水| 国产美女娇喘av呻吟久久| 色成人在线视频| 国产精品免费免费| 蜜桃视频在线观看一区| 欧美午夜一区二区三区免费大片| 久久久99精品久久| 婷婷综合久久一区二区三区| 91社区在线播放| 国产欧美日韩精品一区| 久久精品国内一区二区三区| 欧美亚州韩日在线看免费版国语版| 国产日韩欧美不卡| 寂寞少妇一区二区三区| 欧美色老头old∨ideo| 中文字幕中文乱码欧美一区二区| 亚洲一区在线电影| 国产日韩欧美综合一区| 国产精品久久久久精k8 | 日韩美女啊v在线免费观看| 麻豆精品视频在线观看免费| 欧美日韩高清在线| 亚洲高清免费视频| 在线观看91精品国产入口| 亚洲美女视频在线观看| 色综合色综合色综合| 亚洲色图20p| 99久久婷婷国产| 亚洲国产高清在线| 成人听书哪个软件好| 国产精品丝袜久久久久久app| 国产精品系列在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 蜜臂av日日欢夜夜爽一区| 日韩一区二区电影在线| 老汉av免费一区二区三区| 精品久久久网站| 国产精品中文字幕一区二区三区| 久久欧美一区二区| 国产成人在线影院| 国产精品久久久久久久久免费相片 | 国产在线精品国自产拍免费| 欧美精品一区二区三区蜜臀| 国产激情偷乱视频一区二区三区| 国产午夜精品美女毛片视频| av电影一区二区| 亚洲在线视频网站| 欧美一级国产精品| 国产精品99久久久久| 国产精品毛片久久久久久 | 极品美女销魂一区二区三区 | 亚洲激情在线激情| 蜜桃免费网站一区二区三区| 精品国产91久久久久久久妲己| 国产精品自拍在线| 中文字幕五月欧美| 欧美肥胖老妇做爰| 国产乱码一区二区三区| 欧美极品xxx| 欧美日韩亚洲丝袜制服| 久久99国产精品免费网站| 国产精品网站在线播放| 欧美三级日韩在线| 国产成人亚洲综合a∨婷婷| 亚洲视频中文字幕| 欧美日韩国产小视频| 国产九色sp调教91| 亚洲一区在线电影| 久久毛片高清国产| 欧美二区乱c少妇| 成熟亚洲日本毛茸茸凸凹| 亚洲综合av网| 国产清纯白嫩初高生在线观看91| 在线观看成人小视频| 国产乱对白刺激视频不卡| 伊人色综合久久天天人手人婷| 久久免费美女视频| 欧美三区免费完整视频在线观看| 国产精品自拍毛片| 天天综合网 天天综合色| 国产精品久久久久一区| 精品乱码亚洲一区二区不卡| 欧美伊人精品成人久久综合97| 国产剧情一区二区三区| 日本不卡123| 一区二区三区日韩精品视频| 国产免费观看久久| 欧美电影免费观看完整版| 欧美伊人久久久久久久久影院| 本田岬高潮一区二区三区| 久久国产婷婷国产香蕉| 亚洲国产一区二区视频| 亚洲麻豆国产自偷在线| 国产欧美精品日韩区二区麻豆天美| 8x8x8国产精品| 色综合久久久久| 成人性色生活片免费看爆迷你毛片| 麻豆一区二区99久久久久| 丝袜亚洲另类欧美综合| 一区二区三区日韩欧美| 亚洲综合视频在线观看| 亚洲欧美国产77777| 亚洲欧洲精品成人久久奇米网| 久久久久九九视频| 久久久久久久国产精品影院| 日韩免费观看2025年上映的电影 | 秋霞av亚洲一区二区三| 亚洲一区二区在线视频| 一区二区三区四区在线播放| 亚洲欧美一区二区久久| 伊人婷婷欧美激情| 亚洲综合在线电影| 亚洲国产精品麻豆| 午夜激情一区二区三区| 久久国产人妖系列| 日本女优在线视频一区二区| 奇米一区二区三区av| 免费成人在线网站| 精品一区二区三区免费毛片爱| 久久99精品久久久| 国产精品996| 国产精品99久久久久久宅男| 国产经典欧美精品| 99视频精品在线| 日本道色综合久久| 欧美女孩性生活视频| 91麻豆精品91久久久久同性| 91精品国产一区二区三区香蕉| 欧美一级日韩一级| 国产欧美一区二区精品久导航| 亚洲国产精品黑人久久久| 中文字幕在线不卡一区二区三区| **网站欧美大片在线观看| 亚洲精品免费电影| 午夜免费久久看| 国产精品中文欧美| 色狠狠一区二区| 精品国免费一区二区三区| 日本一区二区视频在线| 一区二区三区四区高清精品免费观看| 亚洲愉拍自拍另类高清精品| 日本亚洲最大的色成网站www| 国产成人aaa| 91成人免费在线| 精品国产91亚洲一区二区三区婷婷 | 欧美一区二区免费视频| 久久久99久久精品欧美| 一区二区不卡在线播放| 久久99久久久久| 91在线高清观看| 日韩欧美一二区| 亚洲日本丝袜连裤袜办公室| 日本美女视频一区二区| www.亚洲色图.com| 91精品国产免费| 综合久久综合久久| 捆绑调教美女网站视频一区| 91久久奴性调教| 精品国产3级a| 日本一道高清亚洲日美韩| 99久久精品情趣| 精品少妇一区二区三区免费观看| 亚洲九九爱视频| 国产大陆a不卡| 91精品国产色综合久久| 亚洲人成网站影音先锋播放| 狠狠色丁香婷婷综合久久片| 欧美日韩在线免费视频| 国产精品三级av| 九色|91porny| 欧美一区二区三区视频在线| 亚洲三级电影全部在线观看高清| 国产乱对白刺激视频不卡| 91精品国产福利在线观看 | 欧美mv和日韩mv国产网站| 亚洲成人av电影在线| 91香蕉视频在线| 国产婷婷色一区二区三区在线| 免费在线一区观看| 欧美丝袜丝交足nylons图片| 亚洲欧洲日产国产综合网| 国产一区二区三区免费看| 日韩视频在线一区二区| 亚洲国产cao| 欧美日精品一区视频| 亚洲免费观看高清完整版在线| 处破女av一区二区| 国产欧美日韩综合| 国产成人综合在线观看| 久久精品在线观看| 国产成人自拍网| 中文字幕一区二区三区精华液| 国产91丝袜在线18| 国产精品人成在线观看免费| 国产91清纯白嫩初高中在线观看|