aal2tabledefs.h

来自「摩托罗拉Motolola公司网络处理器C3的示范代码.实现了ATM的AAL2层交」· C头文件 代码 · 共 53 行

H
53
字号
/* *  aal2TableDefs.h - AAL2 Switch Table definitions *//* *  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 AAL2TABLEDEFS_H#define AAL2TABLEDEFS_H#include <dcpTypes.h>#include <dcpTableSvcs.h>typedef struct{    /* first 32 bits */    int16u    queueId;    int16u    vcIndex;    /* second 32 bits */    int32u    atmEgressKey; /* VPI <20:31>, VCI <4:19> and Port# <0:3> */    /* third 32 bits */    int8u     cid;    int8u     pad1;    int16u    pad2;} CidTabEntryData;typedef struct{    int32u           index;    CidTabEntryData  data;} CidTabEntry;#define composeCidIndex(vcIndex, cid) (((vcIndex) << 8) | (cid))#define AAL2_DMEM_TABLE_INDEX_MASK  0x01FF#define POWER_OF_2_SHIFT 9#endif /* AAL2TABLEDEFS_H */

⌨️ 快捷键说明

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