47e5d57c4d4e69c27440d8fe1e77d9c083628034
[linux-flexiantxendom0-3.2.10.git] / drivers / net / sk98lin / h / skerror.h
1 /******************************************************************************
2  *
3  * Name:        skerror.h
4  * Project:     Gigabit Ethernet Adapters, Common Modules
5  * Purpose:     SK specific Error log support
6  *
7  ******************************************************************************/
8
9 /******************************************************************************
10  *
11  *      (C)Copyright 1998-2002 SysKonnect.
12  *      (C)Copyright 2002-2003 Marvell.
13  *
14  *      This program is free software; you can redistribute it and/or modify
15  *      it under the terms of the GNU General Public License as published by
16  *      the Free Software Foundation; either version 2 of the License, or
17  *      (at your option) any later version.
18  *
19  *      The information in this file is provided "AS IS" without warranty.
20  *
21  ******************************************************************************/
22
23 #ifndef _INC_SKERROR_H_
24 #define _INC_SKERROR_H_
25
26 /*
27  * Define Error Classes
28  */
29 #define SK_ERRCL_OTHER          (0)             /* Other error */
30 #define SK_ERRCL_CONFIG         (1L<<0) /* Configuration error */
31 #define SK_ERRCL_INIT           (1L<<1) /* Initialization error */
32 #define SK_ERRCL_NORES          (1L<<2) /* Out of Resources error */
33 #define SK_ERRCL_SW                     (1L<<3) /* Internal Software error */
34 #define SK_ERRCL_HW                     (1L<<4) /* Hardware Failure */
35 #define SK_ERRCL_COMM           (1L<<5) /* Communication error */
36
37
38 /*
39  * Define Error Code Bases
40  */
41 #define SK_ERRBASE_RLMT          100    /* Base Error number for RLMT */
42 #define SK_ERRBASE_HWINIT        200    /* Base Error number for HWInit */
43 #define SK_ERRBASE_VPD           300    /* Base Error number for VPD */
44 #define SK_ERRBASE_PNMI          400    /* Base Error number for PNMI */
45 #define SK_ERRBASE_CSUM          500    /* Base Error number for Checksum */
46 #define SK_ERRBASE_SIRQ          600    /* Base Error number for Special IRQ */
47 #define SK_ERRBASE_I2C           700    /* Base Error number for I2C module */
48 #define SK_ERRBASE_QUEUE         800    /* Base Error number for Scheduler */
49 #define SK_ERRBASE_ADDR          900    /* Base Error number for Address module */
50 #define SK_ERRBASE_PECP         1000    /* Base Error number for PECP */
51 #define SK_ERRBASE_DRV          1100    /* Base Error number for Driver */
52
53 #endif  /* _INC_SKERROR_H_ */