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

📄 aal2xpif.h

📁 摩托罗拉Motolola公司网络处理器C3的示范代码.实现了ATM的AAL2层交换功能.想了解网络处理器的可以
💻 H
字号:
/* *  aal2If.h *  Header file for AAL2 Switch application XP routines *//* *  Copyright (c) 2001, 2002 C-Port Corporation *  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 AAL2IF_H#define AAL2IF_H#include <dcpPsSonet.h>#include <atmVcTable.h>#include <aal2TableDefs.h>/* * # defines for the BASE_QUEUES  of each of the CPS */#define CP0_BASE_QUEUE                  0 #define CP1_BASE_QUEUE                  4 #define CP2_BASE_QUEUE                  8 #define CP3_BASE_QUEUE                 12 #define CP4_BASE_QUEUE                 16#define CP5_BASE_QUEUE                 20#define CP6_BASE_QUEUE                 24#define CP7_BASE_QUEUE                124#define CP8_BASE_QUEUE                224#define CP9_BASE_QUEUE                228#define CP10_BASE_QUEUE               232#define CP11_BASE_QUEUE               236#define CP12_BASE_QUEUE               240#define CP13_BASE_QUEUE               244#define CP14_BASE_QUEUE               248#define CP15_BASE_QUEUE               252 /* Queue defines for ATM */#define ATM_PORT1_BASE_QUEUE          CP4_BASE_QUEUE#define ATM_PORT2_BASE_QUEUE          CP5_BASE_QUEUE/* Queue defines for AAL2 Rx */#define AAL2_RX1_BASE_QUEUE           CP0_BASE_QUEUE#define AAL2_RX2_BASE_QUEUE           CP1_BASE_QUEUE#define AAL2_RX3_BASE_QUEUE           CP2_BASE_QUEUE#define AAL2_RX4_BASE_QUEUE           CP3_BASE_QUEUE#define AAL2_RX5_BASE_QUEUE           CP8_BASE_QUEUE#define AAL2_RX6_BASE_QUEUE           CP9_BASE_QUEUE/* Queue defines for AAL2 Tx */#define AAL2_TX1_BASE_QUEUE           CP10_BASE_QUEUE#define AAL2_TX2_BASE_QUEUE           CP11_BASE_QUEUE#define AAL2_TX3_BASE_QUEUE           CP12_BASE_QUEUE#define AAL2_TX4_BASE_QUEUE           CP13_BASE_QUEUE#define AAL2_TX5_BASE_QUEUE           CP14_BASE_QUEUE#define AAL2_TX6_BASE_QUEUE           CP15_BASE_QUEUE/* Queue defines for XP */#define XP_BASE_QUEUE                 260#define XP_SONET_MONITOR_QUEUE        261#define XP_ATM_CONTROL_QUEUE          262#define XP_RES_CID_QUEUE              263#define XP_BASE_QUEUE_LOCAL             0#define XP_SONET_QUEUE_LOCAL            1#define XP_CONTROL_QUEUE_LOCAL          2#define XP_AAL2_CONTROL_QUEUE_LOCAL     3/* Defines for QOS */#define CBR_OFFSET                     96 #define RTVBR_OFFSET                   97 #define NRTVBR_OFFSET                  98 #define UBR_OFFSET                     99 #define ATM_QOS1_CBR_QUEUE            CP6_BASE_QUEUE  + CBR_OFFSET #define ATM_QOS2_CBR_QUEUE            CP7_BASE_QUEUE  + CBR_OFFSET #define ATM_QOS1_RTVBR_QUEUE          CP6_BASE_QUEUE  + RTVBR_OFFSET #define ATM_QOS2_RTVBR_QUEUE          CP7_BASE_QUEUE  + RTVBR_OFFSET #define ATM_QOS1_NRTVBR_QUEUE         CP6_BASE_QUEUE  + NRTVBR_OFFSET #define ATM_QOS2_NRTVBR_QUEUE         CP7_BASE_QUEUE  + NRTVBR_OFFSET #define ATM_QOS1_UBR_QUEUE            CP6_BASE_QUEUE  + UBR_OFFSET #define ATM_QOS2_UBR_QUEUE            CP7_BASE_QUEUE  + UBR_OFFSET void aal2TableCreate      ();void aal2CidTableWrite    (CidTabEntry*           tabEntry,                           TsTableId              tableId);void aal2WriteVerify      (int32u                 tableIndex,                           void*                  tableData,                           TsTableId              tableId,                           int                    length);void aal2CidTableSetup    (TsTableId              tableId);#endif /* AAL2IF_H */

⌨️ 快捷键说明

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