📄 dpx_err.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 error code file
**
** FILE : dpx_error.h
**
** DESCRIPTION: This file contains error code and error message for DUPLEX
** device driver
**
**
** NOTES :
**
*******************************************************************************/
/*
** MODIFICATION HISTORY:
**
** $Log: dpx_err.h.rca $
**
** Revision: 1.1 Wed Aug 16 16:22:12 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/24/00 chenkemi changed error base
** 1 06/23/99 chenkemi Initial Version
**
** 9 06/23/99 chenkemi Beta-1.0
** 8 06/23/99 chenkemi added a new error code "DPX_ERR_DEV_ID_TYPE.
** 7 06/17/99 chenkemi renamed the error code for Cell Tx/Rx failure
** 6 06/11/99 chenkemi added a new error code (DPX_ERR_RX_CELL_DISCARD)
** 5 05/24/99 chenkemi code cleanup after code review
** 4 04/12/99 chenkemi added access timeout error code for "indirect serial
** channel" registers.
** 3 03/25/99 chenkemi deleted a error code for "HSS link Id"
** 2 03/15/99 chenkemi Version Alpha1.1
** 1 03/02/99 chenkemi Initial Version
**
*/
#ifndef _DPX_ERR_H
#define _DPX_ERR_H
/* generic API return code */
/*---------------------------*/
#ifndef DPX_ERR_BASE
#define DPX_ERR_BASE -400
#endif
#define DPX_SUCCESS 0
#define DPX_ERR_FAILURE DPX_ERR_BASE
#define DPX_ERR_MEM_ALLOC (DPX_ERR_BASE - 1)
#define DPX_ERR_MODULE_ALREADY_INIT (DPX_ERR_BASE - 2)
#define DPX_ERR_MOD_NOT_INIT (DPX_ERR_BASE - 3) /* kc */
#define DPX_ERR_DEV_NOT_DETECTED (DPX_ERR_BASE - 4)
#define DPX_ERR_INVALID_STATE (DPX_ERR_BASE - 5)
#define DPX_ERR_INVALID_DEVICE (DPX_ERR_BASE - 6)
#define DPX_ERR_INVALID_INIT_VECTOR (DPX_ERR_BASE - 7)
#define DPX_ERR_DEV_ALREADY_ADDED (DPX_ERR_BASE - 8) /* kc */
#define DPX_ERR_EXCEED_MAX_DEVS (DPX_ERR_BASE - 9) /* kc */
#define DPX_ERR_INT_ALREADY_INSTALLED (DPX_ERR_BASE - 10)
#define DPX_ERR_INT_INSTALL (DPX_ERR_BASE - 11)
#define DPX_ERR_INVALID_CB_TYPE (DPX_ERR_BASE - 12)
#define DPX_ERR_INVALID_LPBK_TYPE (DPX_ERR_BASE - 13)
#define DPX_ERR_INVALID_FLAG (DPX_ERR_BASE - 14)
#define DPX_ERR_INVALID_LNK_ID (DPX_ERR_BASE - 15)
#define DPX_ERR_INVALID_LNK_SEL (DPX_ERR_BASE - 16)
#define DPX_ERR_INVALID_REG_ID (DPX_ERR_BASE - 17)
#define DPX_ERR_INVALID_CONTENTS (DPX_ERR_BASE - 18)
#define DPX_ERR_INVALID_CELL_HDR (DPX_ERR_BASE - 19)
#define DPX_ERR_INVALID_CHNL_ID (DPX_ERR_BASE - 20)
#define DPX_ERR_CELL_TX_BUSY (DPX_ERR_BASE - 21)
#define DPX_ERR_CELL_RX_CRC (DPX_ERR_BASE - 22)
#define DPX_ERR_CELL_DISCARDED (DPX_ERR_BASE - 23)
#define DPX_ERR_INVALID_BOC (DPX_ERR_BASE - 24)
#define DPX_ERR_CB_FN_NOT_INSTALLED (DPX_ERR_BASE - 25)
#define DPX_ERR_INDIRECT_CHANNEL_BUSY (DPX_ERR_BASE - 26)
#define DPX_ERR_EXCEED_REG_RANGE (DPX_ERR_BASE - 27)
#define DPX_ERR_DEV_ID_TYPE (DPX_ERR_BASE - 28)
#define DPX_ERR_MAX (DPX_ERR_BASE - 28)
/* the same as the last one */
#ifdef DPX_ERR_STR_DISPLAY
/* Error strings */
static char *DpxErrorStr[] =
{
"failed ",
"memory allocation failure ",
"Module already initialized ",
"Module not yet initialized ",
"device not detected ",
"invalid device state ",
"invalid device handler ",
"invalid init vector ",
"device already added ",
"exceed maximum device number ",
"interrupt handler already installed ",
"error in installing interrupt handler ",
"invalid callback type ",
"invalid loopback type ",
"invalid flag ",
"invalid HSS Link ID ",
"invalid link selection method",
"invalid register ID ",
"invalid contents ",
"invalid cell header ",
"invalid clocked serial channel ID ",
"Cell Tx port busy ",
"Cell Rx CRC error ",
"cell discarded ",
"invalid BOC " ,
"Callback function not instaled " ,
"indirect register access timeout " ,
"exceed maximum register range " ,
"detected invalid device ID or type "
};
#endif /* DPX_ERR_STR_DISPLAY */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -