f1602528505c20ea19cbba7c2c85c62e94d24e48
[linux-flexiantxendom0-3.2.10.git] / drivers / net / sk98lin / h / skgedrv.h
1 /******************************************************************************
2  *
3  * Name:        skgedrv.h
4  * Project:     Gigabit Ethernet Adapters, Common Modules
5  * Purpose:     Interface with the driver
6  *
7  ******************************************************************************/
8
9 /******************************************************************************
10  *
11  *      (C)Copyright 1998-2002 SysKonnect.
12  *      (C)Copyright 2002-2003 Marvell.
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 #ifndef __INC_SKGEDRV_H_
24 #define __INC_SKGEDRV_H_
25
26 /* defines ********************************************************************/
27
28 /*
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.
32  */
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 */
44 #ifdef SK_NO_RLMT
45 #define SK_DRV_LINK_UP                  12      /* Link Up event for driver */
46 #define SK_DRV_LINK_DOWN                13      /* Link Down event for driver */
47 #endif
48 #define SK_DRV_DOWNSHIFT_DET    14      /* Downshift 4-Pair / 2-Pair (YUKON only) */
49 #endif /* __INC_SKGEDRV_H_ */