skgedrv.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /******************************************************************************
  2. *
  3. * Name: skgedrv.h
  4. * Project: Gigabit Ethernet Adapters, Common Modules
  5. * Version: $Revision: 1.10 $
  6. * Date: $Date: 2003/07/04 12:25:01 $
  7. * Purpose: Interface with the driver
  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_SKGEDRV_H_
  24. #define __INC_SKGEDRV_H_
  25. /* defines ********************************************************************/
  26. /*
  27. * Define the driver events.
  28. * Usually the events are defined by the destination module.
  29. * In case of the driver we put the definition of the events here.
  30. */
  31. #define SK_DRV_PORT_RESET 1 /* The port needs to be reset */
  32. #define SK_DRV_NET_UP 2 /* The net is operational */
  33. #define SK_DRV_NET_DOWN 3 /* The net is down */
  34. #define SK_DRV_SWITCH_SOFT 4 /* Ports switch with both links connected */
  35. #define SK_DRV_SWITCH_HARD 5 /* Port switch due to link failure */
  36. #define SK_DRV_RLMT_SEND 6 /* Send a RLMT packet */
  37. #define SK_DRV_ADAP_FAIL 7 /* The whole adapter fails */
  38. #define SK_DRV_PORT_FAIL 8 /* One port fails */
  39. #define SK_DRV_SWITCH_INTERN 9 /* Port switch by the driver itself */
  40. #define SK_DRV_POWER_DOWN 10 /* Power down mode */
  41. #define SK_DRV_TIMER 11 /* Timer for free use */
  42. #ifdef SK_NO_RLMT
  43. #define SK_DRV_LINK_UP 12 /* Link Up event for driver */
  44. #define SK_DRV_LINK_DOWN 13 /* Link Down event for driver */
  45. #endif
  46. #define SK_DRV_DOWNSHIFT_DET 14 /* Downshift 4-Pair / 2-Pair (YUKON only) */
  47. #endif /* __INC_SKGEDRV_H_ */