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

📄 errcode.h

📁 RAID卡的测试程序
💻 H
📖 第 1 页 / 共 2 页
字号:

/* BGA */
#define PIERR_BGA_INACTIVE (PIERR_BGA_ERROR + 0)
#define PIERR_BGA_DELETE_ERROR (PIERR_BGA_ERROR + 1)
#define PIERR_BGA_ADD_ERROR (PIERR_BGA_ERROR + 2)

/* event */
#define PIERR_EVENT_NOT_FOUND (PIERR_EVENT_ERROR + 0)
#define PIERR_INVALID_EVENT_LOCATION (PIERR_EVENT_ERROR + 0x1)
#define PIERR_EVENT_ID_OUTOFRANGE (PIERR_EVENT_ERROR + 0x2)
#define PIERR_EVENT_EMPTY_STRING (PIERR_EVENT_ERROR + 0x3)
#define PIERR_EVENT_STRLENGTH_TOOLONG (PIERR_EVENT_ERROR + 0x4)
#define PIERR_EVENT_DUPLICATED (PIERR_EVENT_ERROR + 0x5)
#define PIERR_EVENT_TOTAL_EXCEED_MAX (PIERR_EVENT_ERROR + 0x6)
#define PIERR_EVENT_NEW_EVENT (PIERR_EVENT_ERROR + 0x7)
#define PIERR_EVENT_MISSING_EVENT (PIERR_EVENT_ERROR + 0x8)

/* bga schedule */
#define PIERR_LIMIT_SCHEDULES (PIERR_SCHEDULE_ERROR + 0)
#define PIERR_SCHEDULE_NOT_FOUND (PIERR_SCHEDULE_ERROR + 1)

#define PIERR_EXIST_SCHEDULE_ON_DEVICE (PIERR_SCHEDULE_ERROR + 0x10)
#define PIERR_INVALID_SCHEDULE_TYPE (PIERR_SCHEDULE_ERROR + 0x11)
#define PIERR_INVALID_SCHEDULE (PIERR_SCHEDULE_ERROR + 0x12)

/* CIM Error */
#define PIERR_CIM_EXCEPTION (PIERR_CIM_ERROR + 0)

/* XML Parser Error */
#define PIERR_XMLPARSER_PARSE_ERROR    (PIERR_XMLPARSER_ERROR + 0)
#define PIERR_XMLPARSER_NOSUCH_FILETYPE (PIERR_XMLPARSER_ERROR + 1)
#define PIERR_XML_VALID_ERROR (PIERR_XMLPARSER_ERROR + 2)
/* --- functional routines ------------------------------------------------- */

/**************************************************************************
* Function Name: getErrorDescription 
* Description: get the description of the specified error code.
* Parameters:    
*   	[in] errCode, the specified error code
* Return: The error message.
* Remarks: none.     
****************************************************************************/
char * getErrorDescription(u32 u32ErrCode);

/**************************************************************************
* Function Name: formPMICErrorCode 
* Description: form the PMIC error code according to completion status,
*       and sense information.
* Parameters:    
*   	[in] u8CompStatus, the completion status
*       [in] pu8Sense, the sense buffer
*       [in] u32SenseLen, the sense buffer length
* Return: The PMIC error code. The format of the PMIC error code is:
*           (PIERR_PMIC_ERROR | (<sense key> << 24) | (<asc> << 16) |
*           (<ascq> << 8) | (completion status))
* Remarks: none.     
****************************************************************************/
u32 formPMICErrorCode(u8 u8CompStatus, u8 * pu8Sense, u32 u32SenseLen);

boolean_t isPMICErrorCode(const u32 u32ErrorCode);

u8 getPMICErrorAsc(const u32 u32ErrorCode);
u8 getPMICErrorAscq(const u32 u32ErrorCode);
u8 getPMICErrorSenseKey(const u32 u32ErrorCode);
u8 getPMICErrorStatus(const u32 u32ErrorCode);

/**************************************************************************
* Function Name: getPMICErrorDescription 
* Description: get the description message of the PMIC error code.
* Parameters:    
*   	[in] u32PMICErrCode, the PMIC error code formed by 
*           formPMICErrorCode(...).
*       [out] pstrBuf, the message will be returned here.
*       [in] u32BufLen, the length of the message buffer.
* Return: PIERR_NO_ERROR, if succeeded; otherwise, failed.
* Remarks: none.     
****************************************************************************/
u32 getPMICErrorDescription(u32 u32PMICErrCode, char * pstrBuf, u32 u32BufLen);

#endif /* __PI_ERRCODE_H__ */

/*******************************************************************************
 * Change Log
 *
 * $Log: errcode.h,v $
 * Revision 1.40  2004/03/24 03:27:22  weny
 * I2 API porting
 *
 * Revision 1.39  2004/03/11 00:03:37  debinc
 * Add two more BGA error definition
 *
 * Revision 1.38  2004/03/05 22:20:12  zhengj
 * added support for system time and stats
 *
 * Revision 1.37  2004/03/05 03:23:35  debinc
 * Two new event error code
 *
 * Revision 1.36  2004/02/18 22:36:49  debinc
 * More event customization related error code
 *
 * Revision 1.35  2004/02/14 01:44:34  zhengj
 * improve flash error code
 *
 * Revision 1.34  2004/02/10 23:35:17  zhengj
 * flash support modification
 *
 * Revision 1.33  2004/02/06 03:33:57  debinc
 * new XML error code
 *
 * Revision 1.32  2004/01/30 03:55:38  zhengj
 * lmm support
 *
 * Revision 1.31  2004/01/30 03:33:31  weny
 * add error code of INVALID_CTRL_DEBUG_LEVEL
 *
 * Revision 1.30  2004/01/28 00:36:18  weny
 * add error codes for TFTP get/put
 *
 * Revision 1.29  2004/01/23 01:03:04  weny
 * add an error code
 *
 * Revision 1.28  2003/12/18 01:31:14  debinc
 * XML parser error
 *
 * Revision 1.27  2003/12/03 22:23:41  debinc
 * new error code
 *
 * Revision 1.26  2003/11/04 23:38:40  zhengj
 * some changes for device numbering and more
 *
 * Revision 1.25  2003/10/17 01:13:14  zhengj
 * more error code
 *
 * Revision 1.24  2003/10/14 00:07:36  weny
 * add PIERR_ALREADY_RUNNING for I2 singleton
 *
 * Revision 1.23  2003/09/26 21:25:01  weny
 * CIM Error code
 *
 * Revision 1.22  2003/09/19 00:05:48  weny
 * add some support to bga cmd and phydrv online/offline
 *
 * Revision 1.21  2003/09/18 19:12:32  zhengj
 * subsys ctrl PD settings
 *
 * Revision 1.20  2003/09/13 00:34:37  weny
 * config lock support
 *
 * Revision 1.19  2003/07/14 18:48:36  weny
 * add INVALID_LD_DEF
 *
 * Revision 1.18  2003/06/28 05:47:44  weny
 * add bga scheduler support
 *
 * Revision 1.17  2003/06/28 03:26:56  weny
 * iscsi node info support
 *
 * Revision 1.16  2003/06/27 23:48:25  weny
 * add some more error codes
 *
 * Revision 1.15  2003/06/26 21:04:08  weny
 * add some error codes
 *
 * Revision 1.14  2003/06/24 02:25:29  zhengj
 * added PIERR_COMMENT_COMMAND
 *
 * Revision 1.13  2003/06/12 02:34:38  weny
 * add some event related error codes
 *
 * Revision 1.12  2003/06/03 20:57:48  weny
 * add more specific error codes.
 *
 * Revision 1.11  2003/04/15 17:49:29  weny
 * adding more error codes
 *
 * Revision 1.10  2003/04/14 19:36:02  weny
 * add PMIC error support
 *
 * Revision 1.9  2003/04/11 05:15:37  weny
 * add more error codes
 *
 * Revision 1.8  2003/04/10 03:35:30  weny
 * add more cfg error code
 *
 * Revision 1.7  2003/04/09 19:50:13  weny
 * add more error codes for cfg
 *
 * Revision 1.6  2003/04/08 23:29:49  weny
 * add some configuration related error codes
 *
 * Revision 1.5  2003/04/02 00:10:39  weny
 * add some error codes related to f/w interface
 *
 * Revision 1.4  2003/03/22 00:55:39  weny
 * add some new error codes.
 *
 * Revision 1.3  2003/03/11 23:53:52  weny
 * add pmic error code support.
 *
 * Revision 1.2  2003/03/07 04:50:08  weny
 * add PIERR_PROCESS_FORK.
 *
 * Revision 1.1  2003/03/06 01:17:06  weny
 * Phase1 debut
 *
 *
 ******************************************************************************/

⌨️ 快捷键说明

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