skerror.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /******************************************************************************
  2. *
  3. * Name: skerror.h
  4. * Project: Gigabit Ethernet Adapters, Common Modules
  5. * Version: $Revision: 1.7 $
  6. * Date: $Date: 2003/05/13 17:25:13 $
  7. * Purpose: SK specific Error log support
  8. *
  9. ******************************************************************************/
  10. /******************************************************************************
  11. *
  12. * (C)Copyright 1998-2002 SysKonnect.
  13. * (C)Copyright 2002-2003 Marvell.
  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. #ifndef _INC_SKERROR_H_
  24. #define _INC_SKERROR_H_
  25. /*
  26. * Define Error Classes
  27. */
  28. #define SK_ERRCL_OTHER (0) /* Other error */
  29. #define SK_ERRCL_CONFIG (1L<<0) /* Configuration error */
  30. #define SK_ERRCL_INIT (1L<<1) /* Initialization error */
  31. #define SK_ERRCL_NORES (1L<<2) /* Out of Resources error */
  32. #define SK_ERRCL_SW (1L<<3) /* Internal Software error */
  33. #define SK_ERRCL_HW (1L<<4) /* Hardware Failure */
  34. #define SK_ERRCL_COMM (1L<<5) /* Communication error */
  35. /*
  36. * Define Error Code Bases
  37. */
  38. #define SK_ERRBASE_RLMT 100 /* Base Error number for RLMT */
  39. #define SK_ERRBASE_HWINIT 200 /* Base Error number for HWInit */
  40. #define SK_ERRBASE_VPD 300 /* Base Error number for VPD */
  41. #define SK_ERRBASE_PNMI 400 /* Base Error number for PNMI */
  42. #define SK_ERRBASE_CSUM 500 /* Base Error number for Checksum */
  43. #define SK_ERRBASE_SIRQ 600 /* Base Error number for Special IRQ */
  44. #define SK_ERRBASE_I2C 700 /* Base Error number for I2C module */
  45. #define SK_ERRBASE_QUEUE 800 /* Base Error number for Scheduler */
  46. #define SK_ERRBASE_ADDR 900 /* Base Error number for Address module */
  47. #define SK_ERRBASE_PECP 1000 /* Base Error number for PECP */
  48. #define SK_ERRBASE_DRV 1100 /* Base Error number for Driver */
  49. #endif /* _INC_SKERROR_H_ */