1 /******************************************************************************
4 * Project: Gigabit Ethernet Adapters, Common Modules
5 * Purpose: Interface with the driver
7 ******************************************************************************/
9 /******************************************************************************
11 * (C)Copyright 1998-2002 SysKonnect.
12 * (C)Copyright 2002-2003 Marvell.
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.
19 * The information in this file is provided "AS IS" without warranty.
21 ******************************************************************************/
23 #ifndef __INC_SKGEDRV_H_
24 #define __INC_SKGEDRV_H_
26 /* defines ********************************************************************/
29 * Define the driver events.
30 * Usually the events are defined by the destination module.
31 * In case of the driver we put the definition of the events here.
33 #define SK_DRV_PORT_RESET 1 /* The port needs to be reset */
34 #define SK_DRV_NET_UP 2 /* The net is operational */
35 #define SK_DRV_NET_DOWN 3 /* The net is down */
36 #define SK_DRV_SWITCH_SOFT 4 /* Ports switch with both links connected */
37 #define SK_DRV_SWITCH_HARD 5 /* Port switch due to link failure */
38 #define SK_DRV_RLMT_SEND 6 /* Send a RLMT packet */
39 #define SK_DRV_ADAP_FAIL 7 /* The whole adapter fails */
40 #define SK_DRV_PORT_FAIL 8 /* One port fails */
41 #define SK_DRV_SWITCH_INTERN 9 /* Port switch by the driver itself */
42 #define SK_DRV_POWER_DOWN 10 /* Power down mode */
43 #define SK_DRV_TIMER 11 /* Timer for free use */
45 #define SK_DRV_LINK_UP 12 /* Link Up event for driver */
46 #define SK_DRV_LINK_DOWN 13 /* Link Down event for driver */
48 #define SK_DRV_DOWNSHIFT_DET 14 /* Downshift 4-Pair / 2-Pair (YUKON only) */
49 #endif /* __INC_SKGEDRV_H_ */