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

📄 xpmaininit.h

📁 摩托罗拉Motolola公司网络处理器C3的示范代码.实现了ATM的AAL2层交换功能.想了解网络处理器的可以
💻 H
字号:
/* *  Copyright (c) 2000, 2001, 2002 C-Port Corporation, a Motorola Company *  All Rights Reserved * *  The information contained in this file is confidential and proprietary. *  Any reproduction, use or disclosure, in whole or in part, of this *  program, including any attempt to obtain a human-readable version of this *  program, without the express, prior written consent of C-Port *  Corporation is strictly prohibited. */#ifndef AAL2XPINIT_H#define AAL2XPINIT_H#include <dcpKernelSvcs.h>#define AAL2_CP_BIT_MASK            0xFFFF#define AAL2_PORT_BIT_MASK          0x0030#define AAL2_MAIN_THREAD_STACK_SIZE   1024 #define MAX_QUEUES_PER_PROC         4typedef struct{    KsProcId pid;    int8u    allow_limit[MAX_QUEUES_PER_PROC];} QmuParams;typedef struct{    int16u    allow;    int16u    limit;} QosQueueParams;static QmuParams qmuParams[NUMBER_OF_PROCS]={    { CPprocID(0),  {0x99, 0x11, 0x11, 0x11} }, /* AAL2 RX CP */    { CPprocID(1),  {0x99, 0x11, 0x11, 0x11} }, /* AAL2 RX CP */    { CPprocID(2),  {0x99, 0x11, 0x11, 0x11} }, /* AAL2 RX CP */    { CPprocID(3),  {0x99, 0x11, 0x11, 0x11} }, /* AAL2 RX CP */    { CPprocID(4),  {0x77, 0x11, 0x11, 0x11} }, /* ATM CP */    { CPprocID(5),  {0x77, 0x11, 0x11, 0x11} }, /* ATM CP */    { CPprocID(6),  {0x11, 0x11, 0x11, 0x11} }, /* ATM QoS CP */    { CPprocID(7),  {0x11, 0x11, 0x11, 0x11} }, /* ATM QoS CP */    { CPprocID(8),  {0x99, 0x11, 0x11, 0x11} }, /* AAL2 RX CP */    { CPprocID(9),  {0x99, 0x11, 0x11, 0x11} }, /* AAL2 RX CP */    { CPprocID(10), {0x88, 0x77, 0x11, 0x11} }, /* AAL2 TX CP */    { CPprocID(11), {0x88, 0x77, 0x11, 0x11} }, /* AAL2 TX CP */    { CPprocID(12), {0x88, 0x77, 0x11, 0x11} }, /* AAL2 TX CP */    { CPprocID(13), {0x88, 0x77, 0x11, 0x11} }, /* AAL2 TX CP */    { CPprocID(14), {0x88, 0x77, 0x11, 0x11} }, /* AAL2 TX CP */    { CPprocID(15), {0x88, 0x77, 0x11, 0x11} }, /* AAL2 TX CP */    { FPprocID,     {0x00, 0x00, 0x00, 0x00} },    { XPprocID,     {0x77, 0x77, 0x77, 0x77} },};/* * BMU Initialization related definitions * -------------------------------------- */typedef int8u BmuParams;BmuParams bmuParams[] ={    12, /* CP 0  */  /* AAL2 Rx CP */    12, /* CP 1  */  /* AAL2 Rx CP */    12, /* CP 2  */  /* AAL2 Rx CP */    12, /* CP 3  */  /* AAL2 Rx CP */    12, /* CP 4  */  /* ATM CP */    12, /* CP 5  */  /* ATM CP */     0, /* CP 6  */  /* QOS CP */     0, /* CP 7  */  /* QOS CP */    12, /* CP 8  */  /* AAL2 Rx CP */    12, /* CP 9  */  /* AAL2 Rx CP */    11, /* CP 10 */  /* AAL2 Tx CP */    11, /* CP 11 */  /* AAL2 Tx CP */    11,  /* CP 12 */ /* AAL2 Tx CP */    11,  /* CP 13 */ /* AAL2 Tx CP */    11,  /* CP 14 */ /* AAL2 Tx CP */    11,  /* CP 15 */ /* AAL2 Tx CP */};/* ------------------------------------------------------------ * The following 2 defines need to be changed if there is any * change in the AAL2 TX CP assignment and/or number of virtual * circuits per CP */#define NUMBER_OF_TIMERS         3072#define NUMBER_OF_TIMER_POOLS    6/* --------------------------------------------------------- */#define SEQ_NUM_LBIT             0#define SEQ_NUM_NBITS            2#define NEXT_POINTER_LBIT        2#define NEXT_POINTER_NBITS       14FAR_DATA int8u      timeout   [NUMBER_OF_TIMERS];FAR_DATA int16u     next      [NUMBER_OF_TIMERS];QsQueueId           nqQId     [NUMBER_OF_CPS];#endif /* AAL2XPINIT_H */

⌨️ 快捷键说明

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