skgedrv.h 2.4 KB

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