37c464eea95274674086b68b5cc7d4c57adc5591
[linux-flexiantxendom0-3.2.10.git] / drivers / net / sk98lin / h / skerror.h
1 /******************************************************************************
2  *
3  * Name:        skerror.h
4  * Project:     GEnesis, PCI Gigabit Ethernet Adapter
5  * Version:     $Revision: 1.4 $
6  * Date:        $Date: 1999/11/22 13:51:59 $
7  * Purpose:     SK specific Error log support
8  *
9  ******************************************************************************/
10
11 /******************************************************************************
12  *
13  *      (C)Copyright 1998,1999 SysKonnect,
14  *      a business unit of Schneider & Koch & Co. Datensysteme GmbH.
15  *
16  *      This program is free software; you can redistribute it and/or modify
17  *      it under the terms of the GNU General Public License as published by
18  *      the Free Software Foundation; either version 2 of the License, or
19  *      (at your option) any later version.
20  *
21  *      The information in this file is provided "AS IS" without warranty.
22  *
23  ******************************************************************************/
24
25 /******************************************************************************
26  *
27  * History:
28  *      $Log: skerror.h,v $
29  *      Revision 1.4  1999/11/22 13:51:59  cgoos
30  *      Changed license header to GPL.
31  *      
32  *      Revision 1.3  1999/09/14 14:04:42  rwahl
33  *      Added error base SK_ERRBASE_PECP.
34  *      Changed error base for driver.
35  *      
36  *      Revision 1.2  1998/08/11 11:15:41  gklug
37  *      chg: comments
38  *      
39  *      Revision 1.1  1998/08/11 11:09:38  gklug
40  *      add: error bases
41  *      add: error Classes
42  *      first version
43  *      
44  *      
45  *
46  ******************************************************************************/
47
48 #ifndef _INC_SKERROR_H_
49 #define _INC_SKERROR_H_
50
51 /*
52  * Define the Error Classes
53  */
54 #define SK_ERRCL_OTHER          (0)     /* Other error */
55 #define SK_ERRCL_CONFIG         (1L<<0) /* Configuration error */
56 #define SK_ERRCL_INIT           (1L<<1) /* Initialization error */
57 #define SK_ERRCL_NORES          (1L<<2) /* Out of resources error */
58 #define SK_ERRCL_SW             (1L<<3) /* internal Software error */
59 #define SK_ERRCL_HW             (1L<<4) /* Hardware failure */
60 #define SK_ERRCL_COMM           (1L<<5) /* Communication error */
61
62
63 /*
64  * Define Error code bases
65  */
66 #define SK_ERRBASE_RLMT         100     /* Base Error number for RLMT */
67 #define SK_ERRBASE_HWINIT       200     /* Base Error number for HWInit */
68 #define SK_ERRBASE_VPD          300     /* Base Error number for VPD */
69 #define SK_ERRBASE_PNMI         400     /* Base Error number for PNMI */
70 #define SK_ERRBASE_CSUM         500     /* Base Error number for Checksum */
71 #define SK_ERRBASE_SIRQ         600     /* Base Error number for Special IRQ */
72 #define SK_ERRBASE_I2C          700     /* Base Error number for i2C module */
73 #define SK_ERRBASE_QUEUE        800     /* Base Error number for Scheduler */
74 #define SK_ERRBASE_ADDR         900     /* Base Error number for Address mod. */
75 #define SK_ERRBASE_PECP         1000    /* Base Error number for PECP */
76 #define SK_ERRBASE_DRV          1100    /* Base Error number for Driver */
77
78 #endif  /* _INC_SKERROR_H_ */