rcsdpatmapiif.h

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

H
90
字号
/*  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  or Motorola Incorporated is strictly prohibited. * *  File : RcSdpAtmApi.h */#ifndef RCSDPATMAPI_H#define RCSDPATMAPI_H#include <dcpTypes.h>#include "atm.h"#include "dcpRegisterDefs.h"/* changed this structure for table enhancements */typedef volatile struct _RxByteCtrlSpc {  int8u cpId_tblId;  int8u reserved[7];} RxByteCtrlSpc;typedef volatile struct _RxSyncCtrlSpc {    int8 deltaCnt;    int8 alphaCnt;    int8u state;    int8u reserved;} RxSyncCtrlSpc;typedef volatile struct _TxByteCtrlSpc {    int8u reserved1[8];} TxByteCtrlSpc;typedef struct {        CellHeader      cellHeader;        int16u          vccIndex;        int8u           pduHdrStatus;#define GOOD_HEC_CELL      0x00#define IDLE_UA_CELL       0x01#define BAD_HEC_CELL       0x80#define NO_TOKEN          ~0x03    /* skip condition only */        int8u           congestionDrops;        int8            crc10Indicator; /* Indication of the success/failure (0/-1) of the CRC 10 */#define GOOD_CRC10          0#define BAD_CRC10          -1        int8u           encodedPti;        int8u           camValue; /* for OAM debug, what did we cam on? */        int8u           pad2[24];} AtmExtract;typedef struct {        AtmExtract      atmExtract;} ExtractSpc;typedef struct {    CellHeader         cellHeader;    int8u              payloadLength;    int8u              txType; /* nonzero indicates OAM, insert CRC10 */    int8u              reserved[25];} AtmMergeSpc;typedef struct {    AtmMergeSpc atmMergeSpc;    int8u pad1[24];    int8u pad2[44];    int8u pad3[28];} MergeSpc;/* *  Aal5CpcsMergeSpace */typedef struct {    int32u vpiVci;    int16u length;} Aal5CpcsMergeSpace;#endif

⌨️ 快捷键说明

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