📄 dpx_test.h
字号:
/******************************************************************************/
/** COPYRIGHT (C) 1999 PMC-SIERRA, INC. ALL RIGHTS RESERVED. **/
/**--------------------------------------------------------------------------**/
/** This software embodies materials and concepts which are proprietary and **/
/** confidential to PMC-Sierra, Inc. **/
/** PMC-Sierra distributes this software to its customers pursuant to the **/
/** terms and conditions of the Device Driver Software License Agreement **/
/** contained in the text file software.lic that is distributed along with **/
/** the device driver software. This software can only be utilized if all **/
/** terms and conditions of the Device Driver Software License Agreement are **/
/** accepted. If there are any questions, concerns, or if the Device Driver **/
/** Software License Agreement text file, software.lic, is missing please **/
/** contact PMC-Sierra for assistance. **/
/**--------------------------------------------------------------------------**/
/** **/
/******************************************************************************/
/*******************************************************************************
** MODULE : Duplex device drivers test and example indication callback
** header file
**
** FILE : Dpx_test.h
**
** DESCRIPTION: This file contains constants and structure definitions
** required by code in dpx_test.c.
**
**
** NOTES : This is an example file which can be used for testing in the
** VxWorks and PV platform. It does NOT intend for use in real
** production code.
**
*******************************************************************************/
/*
** MODIFICATION HISTORY:
**
** $Log: dpx_test.h.rca $
**
** Revision: 1.1 Wed Aug 16 16:22:14 2000 bhalwani
** Beta-1.0
**
**
** 4 06/15/00 Bhalwani Vortex chipset driver beta-1.0
** 3 06/15/00 Bhalwani Vortex chipset driver Alpha-1.30
** 2 02/15/00 chenkemi alpha-001
** 1 07/19/99 chenkemi Initial Version
**
** 7 07/19/99 chenkemi Beta-1.0
** 6 07/19/99 chenkemi removed path reference for syspci.h header file
** 5 07/07/99 chenkemi added ClearRxDataBuffer()
** 4 06/24/99 chenkemi renamed dpxDebugInitVector(0 to dpxDefaultInitVector()
** 3 06/21/99 chenkemi moved out VcTable variable.
** 2 06/17/99 chenkemi added AAL0 test code
** 1 06/16/99 chenkemi Initial Version
**
*/
#ifndef _DPX_TEST_H
#define _DPX_TEST_H
/** include files **/
#include <msgQLib.h>
#include "sysPci.h"
#include "dpx_api.h"
#include "dpx.h"
/* ATM cell payload size in bytes */
#define DPX_CELL_PAYLOAD_SIZE 48
#define ATM_CELL_HEADER_PTI_BIT 0x02
#define MTU_SIZE 2400
#define MAXIMUM_VC_CONNECTIONS 2
#define AAL5_TEST_MSG_VPI 15
#define AAL5_TEST_MSG_VCI 20
#define AAL0_TEST_MSG_VPI 100
#define AAL0_TEST_MSG_VCI 250
/* define for RxCells task priority */
/** In VxWorks, the higher the number, the lower the priority */
#define DPX_RX_TASK_PRIORITY 87
#define DPX_RX_TASK_STACK_SZ 4096 /* in bytes */
/* define forTxData task priority */
#define DPX_TX_TASK_PRIORITY 90
#define DPX_TX_TASK_STACK_SZ 4096 /* in bytes */
typedef enum _eAAL_Type
{
AAL5_TYPE = 0,
AAL0_TYPE,
RAW_TYPE,
AAL_TYPE_UNKNOWN
} eAAL_TYPE;
/* VC table */
typedef struct _Vc_Table
{
UINT1 vpi;
UINT2 vci;
eAAL_TYPE type;
} VC_TABLE;
/* data buffer structure for storing information and data of message received */
typedef struct _Rx_Data_Buff
{
INT4 length; /* size of message data in the data buffer */
UINT4 CRC32; /* if message is CRC protected, it stores the current
CRC32 value */
UINT1 data[MTU_SIZE + 8]; /* Data buffer for storing the received message */
} RX_DATA_BUFF;
typedef struct _Pmc_Slot_Dev_Handle
{
UINT1 SlotDevId;
void *pDevHandle;
} PMC_SLOT_DEV_HANDLE;
/* function prototype in dpx_test.c file */
INT4 dpx_TxAAL5Msg (DUPLEX duplex, UINT1 *pMsg, INT4 length, UINT1 vpi,
UINT2 vci);
INT4 dpx_TxAAL0Msg (DUPLEX duplex, UINT1 *pMsg, UINT1 vpi, UINT2 vci);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -