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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /******************************************************************************
  2.  *
  3.  * Name: skgedrv.h
  4.  * Project: GEnesis, PCI Gigabit Ethernet Adapter
  5.  * Version: $Revision: 1.4 $
  6.  * Date: $Date: 1999/11/22 13:52:46 $
  7.  * Purpose: Interface with the driver
  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.  *
  27.  * $Log: skgedrv.h,v $
  28.  * Revision 1.4  1999/11/22 13:52:46  cgoos
  29.  * Changed license header to GPL.
  30.  *
  31.  * Revision 1.3  1998/12/01 13:31:39  cgoos
  32.  * SWITCH INTERN Event added.
  33.  *
  34.  * Revision 1.2  1998/11/25 08:28:38  gklug
  35.  * rmv: PORT SWITCH Event
  36.  *
  37.  * Revision 1.1  1998/09/29 06:14:07  gklug
  38.  * add: driver events (initial version)
  39.  *
  40.  *
  41.  ******************************************************************************/
  42. #ifndef __INC_SKGEDRV_H_
  43. #define __INC_SKGEDRV_H_
  44. /* defines ********************************************************************/
  45. /*
  46.  * Define the driver events.
  47.  * Usually the events are defined by the destination module. In case of the
  48.  * driver we put the definition of the events here.
  49.  */
  50. #define SK_DRV_PORT_RESET 1 /* The port needs to be reset */
  51. #define SK_DRV_NET_UP    2 /* The net is now operational */
  52. #define SK_DRV_NET_DOWN 3 /* The net is now down */
  53. #define SK_DRV_SWITCH_SOFT 4 /* Ports switch with both links conn */
  54. #define SK_DRV_SWITCH_HARD 5 /* Port switch due to link failure */
  55. #define SK_DRV_RLMT_SEND 6 /* Send a RLMT packet */
  56. #define SK_DRV_ADAP_FAIL 7 /* The whole adapter fails */
  57. #define SK_DRV_PORT_FAIL 8 /* One port fails */
  58. #define SK_DRV_SWITCH_INTERN 9 /* Port switch from driver to itself */
  59. #endif /* __INC_SKGEDRV_H_ */