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

📄 lwq.h

📁 用于嵌入式系统的TCP/IP协议栈及若干服务
💻 H
字号:
/**            Copyright (c) 1998-2001 by NETsilicon Inc.**  This software is copyrighted by and is the sole property of*  NETsilicon.  All rights, title, ownership, or other interests*  in the software remain the property of NETsilicon.  This*  software may only be used in accordance with the corresponding*  license agreement.  Any unauthorized use, duplication, transmission,*  distribution, or disclosure of this software is expressly forbidden.**  This Copyright notice may not be removed or modified without prior*  written consent of NETsilicon.**  NETsilicon, reserves the right to modify this software*  without notice.**  NETsilicon*  411 Waverley Oaks Road                  USA 781.647.1234*  Suite 227                               http://www.netsilicon.com*  Waltham, MA 02452                       AmericaSales@netsilicon.com***************************************************************************  $Source: M:/psisrc/stack/incl/rcs/lwq.h $***************************************************************************  File Description:  LWQ definitions***************************************************************************/#ifdef LWQ#ifndef __LWQ__#define __LWQ__#include "config.h"#include "ccdep.h"#include "std.h"#include "q.h"#include "timer.h"#include "socket.h"#include "dsu.h"#include "netdev.h"#include "m.h"#define SML_PKT_SIZE    128#define m_list          ndp->nd_mlist#define lwq_lpkts       ((int)ndp->nd_lpkts)#define lwq_spkts       ((int)ndp->nd_spkts)#define lwq_pkts        ((int)(ndp->nd_spkts + ndp->nd_lpkts))import  boolean lwq_debug, lwq_trace;import  u32     nc_hsize;import  int     os_disintr(void);import  void    os_resintr(int savpri);#define NUMBER_LARGE_PACKETS    8#define NUMBER_SMALL_PACKETS    20import  void    lwq_init (netdev * ndp);import  m       * lwq_getbuf (netdev * ndp, int len);import  int     lwq_alobuf (void * ndptr);import  int     lwq_rlsbuf (netdev * ndp);import  q       * lq_out (q * qp);import   char   * lq_outparent (q * qp);import   char * lq_outhead (q * qp);import   q * lq_in (q * a, q * b);import  void lwq_recv_task (netdev * ndp, st (*fn)(m * mp));#endif /* __LWQ__ */#endif /* LWQ */

⌨️ 快捷键说明

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