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