skerror.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:3k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  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.  * (C)Copyright 1998,1999 SysKonnect,
  13.  * a business unit of Schneider & Koch & Co. Datensysteme 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.  * History:
  26.  * $Log: skerror.h,v $
  27.  * Revision 1.4  1999/11/22 13:51:59  cgoos
  28.  * Changed license header to GPL.
  29.  *
  30.  * Revision 1.3  1999/09/14 14:04:42  rwahl
  31.  * Added error base SK_ERRBASE_PECP.
  32.  * Changed error base for driver.
  33.  *
  34.  * Revision 1.2  1998/08/11 11:15:41  gklug
  35.  * chg: comments
  36.  *
  37.  * Revision 1.1  1998/08/11 11:09:38  gklug
  38.  * add: error bases
  39.  * add: error Classes
  40.  * first version
  41.  *
  42.  *
  43.  *
  44.  ******************************************************************************/
  45. #ifndef _INC_SKERROR_H_
  46. #define _INC_SKERROR_H_
  47. /*
  48.  * Define the Error Classes
  49.  */
  50. #define SK_ERRCL_OTHER (0) /* Other error */
  51. #define SK_ERRCL_CONFIG (1L<<0) /* Configuration error */
  52. #define SK_ERRCL_INIT (1L<<1) /* Initialization error */
  53. #define SK_ERRCL_NORES (1L<<2) /* Out of resources error */
  54. #define SK_ERRCL_SW (1L<<3) /* internal Software error */
  55. #define SK_ERRCL_HW (1L<<4) /* Hardware failure */
  56. #define SK_ERRCL_COMM (1L<<5) /* Communication error */
  57. /*
  58.  * Define Error code bases
  59.  */
  60. #define SK_ERRBASE_RLMT 100 /* Base Error number for RLMT */
  61. #define SK_ERRBASE_HWINIT 200 /* Base Error number for HWInit */
  62. #define SK_ERRBASE_VPD 300 /* Base Error number for VPD */
  63. #define SK_ERRBASE_PNMI 400 /* Base Error number for PNMI */
  64. #define SK_ERRBASE_CSUM 500 /* Base Error number for Checksum */
  65. #define SK_ERRBASE_SIRQ 600 /* Base Error number for Special IRQ */
  66. #define SK_ERRBASE_I2C 700 /* Base Error number for i2C module */
  67. #define SK_ERRBASE_QUEUE 800 /* Base Error number for Scheduler */
  68. #define SK_ERRBASE_ADDR 900 /* Base Error number for Address mod. */
  69. #define SK_ERRBASE_PECP 1000    /* Base Error number for PECP */
  70. #define SK_ERRBASE_DRV 1100 /* Base Error number for Driver */
  71. #endif /* _INC_SKERROR_H_ */