1
0
uboot-1.1.4-kirkwood/drivers/sk98lin/h/skerror.h

58 lines
2.2 KiB
C
Raw Permalink Normal View History

2024-01-07 23:57:24 +01:00
/******************************************************************************
*
* Name: skerror.h
2024-01-07 23:58:22 +01:00
* Project: Gigabit Ethernet Adapters, Common Modules
* Version: $Revision: 1.1.1.1 $
2024-01-08 00:07:02 +01:00
* Date: $Date: 2008/12/15 11:39:21 $
2024-01-07 23:57:24 +01:00
* Purpose: SK specific Error log support
*
******************************************************************************/
/******************************************************************************
*
2024-01-07 23:58:22 +01:00
* LICENSE:
* (C)Copyright 1998-2002 SysKonnect.
* (C)Copyright 2002-2004 Marvell.
2024-01-07 23:57:24 +01:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* The information in this file is provided "AS IS" without warranty.
2024-01-07 23:58:22 +01:00
* /LICENSE
2024-01-07 23:57:24 +01:00
*
******************************************************************************/
#ifndef _INC_SKERROR_H_
#define _INC_SKERROR_H_
/*
* Define Error Classes
*/
#define SK_ERRCL_OTHER (0) /* Other error */
#define SK_ERRCL_CONFIG (1L<<0) /* Configuration error */
#define SK_ERRCL_INIT (1L<<1) /* Initialization error */
#define SK_ERRCL_NORES (1L<<2) /* Out of Resources error */
#define SK_ERRCL_SW (1L<<3) /* Internal Software error */
#define SK_ERRCL_HW (1L<<4) /* Hardware Failure */
#define SK_ERRCL_COMM (1L<<5) /* Communication error */
/*
* Define Error Code Bases
*/
#define SK_ERRBASE_RLMT 100 /* Base Error number for RLMT */
#define SK_ERRBASE_HWINIT 200 /* Base Error number for HWInit */
#define SK_ERRBASE_VPD 300 /* Base Error number for VPD */
#define SK_ERRBASE_PNMI 400 /* Base Error number for PNMI */
#define SK_ERRBASE_CSUM 500 /* Base Error number for Checksum */
#define SK_ERRBASE_SIRQ 600 /* Base Error number for Special IRQ */
#define SK_ERRBASE_I2C 700 /* Base Error number for I2C module */
#define SK_ERRBASE_QUEUE 800 /* Base Error number for Scheduler */
#define SK_ERRBASE_ADDR 900 /* Base Error number for Address module */
2024-01-07 23:58:22 +01:00
#define SK_ERRBASE_PECP 1000 /* Base Error number for PECP */
2024-01-07 23:57:24 +01:00
#define SK_ERRBASE_DRV 1100 /* Base Error number for Driver */
2024-01-07 23:58:22 +01:00
#define SK_ERRBASE_ASF 1200 /* Base Error number for ASF */
2024-01-07 23:57:24 +01:00
#endif /* _INC_SKERROR_H_ */
2024-01-07 23:58:22 +01:00