skerror.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. * (C)Copyright 1998-2002 SysKonnect GmbH.
  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. *
  24. * History:
  25. * $Log: skerror.h,v $
  26. * Revision 1.5 2002/04/25 11:05:10 rschmidt
  27. * Editorial changes
  28. *
  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. #ifndef _INC_SKERROR_H_
  48. #define _INC_SKERROR_H_
  49. /*
  50. * Define Error Classes
  51. */
  52. #define SK_ERRCL_OTHER (0) /* Other error */
  53. #define SK_ERRCL_CONFIG (1L<<0) /* Configuration error */
  54. #define SK_ERRCL_INIT (1L<<1) /* Initialization error */
  55. #define SK_ERRCL_NORES (1L<<2) /* Out of Resources error */
  56. #define SK_ERRCL_SW (1L<<3) /* Internal Software error */
  57. #define SK_ERRCL_HW (1L<<4) /* Hardware Failure */
  58. #define SK_ERRCL_COMM (1L<<5) /* Communication error */
  59. /*
  60. * Define Error Code Bases
  61. */
  62. #define SK_ERRBASE_RLMT 100 /* Base Error number for RLMT */
  63. #define SK_ERRBASE_HWINIT 200 /* Base Error number for HWInit */
  64. #define SK_ERRBASE_VPD 300 /* Base Error number for VPD */
  65. #define SK_ERRBASE_PNMI 400 /* Base Error number for PNMI */
  66. #define SK_ERRBASE_CSUM 500 /* Base Error number for Checksum */
  67. #define SK_ERRBASE_SIRQ 600 /* Base Error number for Special IRQ */
  68. #define SK_ERRBASE_I2C 700 /* Base Error number for I2C module */
  69. #define SK_ERRBASE_QUEUE 800 /* Base Error number for Scheduler */
  70. #define SK_ERRBASE_ADDR 900 /* Base Error number for Address module */
  71. #define SK_ERRBASE_PECP 1000 /* Base Error number for PECP */
  72. #define SK_ERRBASE_DRV 1100 /* Base Error number for Driver */
  73. #endif /* _INC_SKERROR_H_ */