⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ixethaal5app_p.h

📁 intel IXP400系列cpu(2.3版)的库文件
💻 H
字号:
/** * @file IxEthAal5App_p.h * * @brief This file contains the private declaration of the IxEthAal5App * component's main functions, utilities, etc * *  * @par * IXP400 SW Release version 2.3 *  * -- Copyright Notice -- *  * @par * Copyright (c) 2001-2005, Intel Corporation. * All rights reserved. *  * @par * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the Intel Corporation nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. *  *  * @par * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  *  * @par * -- End of Copyright Notice --*/#ifndef IXETHAAL5APP_P_H#define IXETHAAL5APP_P_H/* User defined header files */#include "IxOsal.h"#include "IxAtmTypes.h"#include "IxAtmdAcc.h"#include "IxAtmm.h"#include "IxNpeDl.h"typedef enum{    IX_EAA_UTOPIA_MODE = 1,    IX_EAA_ADSL_MODE}IxEAAModeType;/**** @def IX_ETHAAL5APP_CODELET_DEBUG_DO** @brief Execute statements if NDEBUG not defined. To use the debug* codes add IX_DEBUG=1 during the compilation* When IX_DEBUG is not called and for optimization purpose, it is preferably * to add the do-while statement.*/#ifndef NDEBUG#define IX_ETHAAL5APP_CODELET_DEBUG_DO(statements) statements#else#define IX_ETHAAL5APP_CODELET_DEBUG_DO(x) do{}while(0);#endif/** * @fn ixEthAal5AppUtilsAtmVcRegisterConnect * * @brief Register and connect an Aal Pdu receive and transmit VC for a *        particular port/vpi/vci. * * This function allows a user to connect to an Aal5 Pdu receive and  * transmit service for a particular port/vpi/vci. It registers the callback  * and allocates internal resources and a Connection Id to be used in further  * API calls related to this VCC. * * @param port (in) VC identification : logical PHY port [0..7] * @param vpi (in) VC identification : ATM Vpi [0..255] * @param vci (in) VC identification : ATM Vci [0..65535] * @param atmService (in) type of service * @param rxQueueId (in) this identifieds which of two Qs the VC *     should use when icoming traffic is processed * @param rxCallback (in) function called when mbufs are received. *     This parameter cannot be a null pointer. * @param minimumReplenishCount (in) number of free mbufs to be used with *     this channel. Use a high number when the expected traffic rate on *     this channel is high, or when the user's mbufs are small, or when *     the RxVcFreeLow Notification has to be invoked less often. * @param bufferFreeCallback (in) function to be called to return *     ownership of buffers to the IxEthAal5AppUtils user. * @param userId (in) user Id to use in callback communications * @param rxConnId (out) Rx Conn Id passed back from IxAtmdAcc * @param txConnId (out) Tx Conn Id passed back from IxAtmdAcc * * @return @li IX_SUCCESS successful call to ixEthAal5AppUtilsAtmVcRegisterConnect * @return @li IX_FAIL parameter error, VC already in use or port is * not initialised or some other error occurs during processing. * */IX_STATUSixEthAal5AppUtilsAtmVcRegisterConnect (    IxAtmLogicalPort port,    IxAtmmVc txVc,    IxAtmmVc rxVc,    IxAtmdAccAalType aalType,    IxAtmRxQueueId rxQueueId,    IxAtmdAccRxVcRxCallback rxCallback,    unsigned int minimumReplenishCount,    IxAtmdAccTxVcBufferReturnCallback bufferFreeCallback,    IxAtmdAccRxVcFreeLowCallback rxFreeLowCallback,    IxAtmdAccUserId userId,    IxAtmConnId *rxConnId,    IxAtmConnId *txConnId);/** * @fn ixEthAal5AppUtilsAtmVcUnregisterDisconnect  * * @brief Disconnect and unregister an Aal transmit and receive VC. * * @param rxConnId (in) conn Id of the Rx VC to disconnect and unregister * @param txConnId (in) conn Id of the Tx VC to disconnect and unregister * * @return @li IX_SUCCESS successful call to ixEthAal5AppUtilsAtmVcUnregisterDisconnect * @return @li IX_FAIL parameter error, failed to disconnect, * not initialised or some other error occurs during processing. * */IX_STATUSixEthAal5AppUtilsAtmVcUnregisterDisconnect (    IxAtmConnId rxConnId,     IxAtmConnId txConnId);/** * @fn ixEthAal5AppUtilsAtmAllVcsDisconnect * * @brief Disconnect and unregister all registered VCs. * * @param none * * @return @li IX_SUCCESS successful call to ixEthAal5AppUtilsAtmAllVcsDisconnect * @return @li IX_FAIL parameter error, failed to disconnect, * not initialised or some other error occurs during processing. * */IX_STATUSixEthAal5AppUtilsAtmAllVcsDisconnect (void);/** * @fn ixEthAal5AppShowTaskDisable * * @brief Disable the ShowTask's loop * */void ixEthAal5AppShowTaskDisable(void);/** * @fn ixEAAEthDBRecordsShow * * @brief Show the Ethernet DB Records * */void ixEAAEthDBRecordsShow(void);#endif /* IXETHAAL5APP_P_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -