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

📄 ixhssaccpktrx_p.h

📁 intel IXP400系列cpu(2.3版)的库文件
💻 H
字号:
/** * @file IxHssAccPktRx_p.h * * @author Intel Corporation * @date  14 Dec 2001 * * @brief This file contains the private API of the HSS Packetised Rx module * *  * @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 --*//** * @defgroup IxHssAccPktRx_p IxHssAccPktRx_p * * @brief IXP400 HSS Access Packet Rx Module *  * @{ */#ifndef IXHSSACCPKTRX_P_H#define IXHSSACCPKTRX_P_H#include "IxHssAcc.h"#include "IxNpeA.h"#include "IxQMgr.h" #include "IxOsal.h"/** * Prototypes for interface functions. *//** * @fn void ixHssAccPktRxFreeLowCallback (IxQMgrQId qId,                                           IxQMgrCallbackId cbId); * * @brief This function is the Callback run by the RxFreeQMQ, and is called * when the RxFree QMQ reaches a NearlyEmpty threshold. * * @param IxQMgrQId qId (in)-  The IxQMQ Id, this is the ID number of the queue. * @param IxQMgrCallbackId cbId (in) - The IxQMQ callback ID. This Id  * uniquely identifies a callback function. * @return void  */void ixHssAccPktRxFreeLowCallback (IxQMgrQId qId, 			      IxQMgrCallbackId cbId);/** * @fn void ixHssAccPktRxCallback (IxQMgrQId qId,                                    IxQMgrCallbackId cbId); * * @brief This function is the Callback run by the RxQMQ, and is called  * when the Rx QMQ reaches a NotEmpty condition. * * @param IxQMgrQId qId (in) -  The IxQMQ Queue Id, this is the ID number of  * the queue * @param IxQMgrCallbackId cbId (in) - The IxQMQ callback ID * @return void  */void ixHssAccPktRxCallback (IxQMgrQId qId, 		       IxQMgrCallbackId cbId);/** * @fn IX_STATUS ixHssAccPktRxFreeReplenish (IxHssAccHssPort hssPortId,                                              IxHssAccHdlcPort hdlcPortId,                                              IX_OSAL_MBUF *buffer); * * @brief This funtion is called to fill one of the Rx Free QMQ with client  * supplied free buffers. *  * @param IxHssAccHssPort hssPortId (in) - This is the HSS port number on  * which the HDLC port of the client that is calling this function is on * @param IxHssAccHdlcPort hdlcPortId (in) - This is the HDLC port number of  * the client that is calling this function is on.  * @param IX_OSAL_MBUF *buffer -  The client supplied buffer that is to be added to a  * Rx Free QMQ. * * The function checks if the port:pipe configuration is connected. If connected, * set up the NPE shared region of the IX_OSAL_BUF buffer as follows. The  * status field is set to IX_HSSACC_PKT_OK. The ixp_pkt_len field is set to  * zero. The ixp_data field is set to physical address of data. The ixp_len * field is set to the m_Len field from the OS dependant region. The  * ixp_next field is set to NULL. The error_count field is set to zero. * Endian conversion to Little Endian is done for the NPE shared region of the * IX_OSAL_BUF buffer. The Cache is flushed for the NPE shared region of  * IX_OSAL_BUF buffer. The physical address is calculated by virtual to physical  * address conversion of the pointer to the NPE Shared region. Queue entry is  * prepared by setting the most significant 27 bits to the physical address of the * NPE shared region, and the least significant five bits to the HDLC pipe number. * This queue entry is enqueued into the appropriate Rx free queue. If the write fails, * the buffer will be freed and an error returned to the client. The number of buffers  * in use count is incremented by one for the corresponding HDLC client. * * @return  *         - IX_SUCCESS The function executed successfully *         - IX_FAIL The function did not execute successfully *         - IX_HSSACC_RESOURCE_ERR The function did not execute successfully due *                          to a parameter error *  */IX_STATUS ixHssAccPktRxFreeReplenish (IxHssAccHssPort hssPortId, 			    IxHssAccHdlcPort hdlcPortId, 			    IX_OSAL_MBUF *buffer);/** * @fn void ixHssAccPktRxShow (void); * * @brief This function is called to display the stats for the RX module. * * @return void  */void ixHssAccPktRxShow (void);/** * @fn void ixHssAccPktRxStatsInit (void);  * * @brief This function is called to resets all the stats for the RX module. *  * @return void  */void ixHssAccPktRxStatsInit (void);/** * @fn IX_STATUS ixHssAccPktRxInit (void) * * @brief This function will initialise the PktRx module * * @return  *            - IX_SUCCESS Function executed successfully *            - IX_FAIL Function failed to execute */IX_STATUS ixHssAccPktRxInit (void);/** * @fn IX_STATUS ixHssAccPktRxUninit (void) * * @brief  This function Uninitialises all resources for the Packetised Rx  * module. * * @return  *         - IX_SUCCESS The function executed successfully *         - IX_FAIL The function did not execute successfully *         - IX_HSSACC_RESOURCE_ERR The function did not execute successfully  *                                   due to a resource error */IX_STATUS ixHssAccPktRxUninit (void);#endif /* IXHSSACCPKTRX_P_H *//** * @} defgroup IxHssAccPktRx_p */

⌨️ 快捷键说明

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