]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/net/sk98lin/h/skgedrv.h
Linux-2.6.12-rc2
[mirror_ubuntu-artful-kernel.git] / drivers / net / sk98lin / h / skgedrv.h
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 *
13 * (C)Copyright 1998-2002 SysKonnect.
14 * (C)Copyright 2002-2003 Marvell.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * The information in this file is provided "AS IS" without warranty.
22 *
23 ******************************************************************************/
24
25 #ifndef __INC_SKGEDRV_H_
26 #define __INC_SKGEDRV_H_
27
28 /* defines ********************************************************************/
29
30 /*
31 * Define the driver events.
32 * Usually the events are defined by the destination module.
33 * In case of the driver we put the definition of the events here.
34 */
35 #define SK_DRV_PORT_RESET 1 /* The port needs to be reset */
36 #define SK_DRV_NET_UP 2 /* The net is operational */
37 #define SK_DRV_NET_DOWN 3 /* The net is down */
38 #define SK_DRV_SWITCH_SOFT 4 /* Ports switch with both links connected */
39 #define SK_DRV_SWITCH_HARD 5 /* Port switch due to link failure */
40 #define SK_DRV_RLMT_SEND 6 /* Send a RLMT packet */
41 #define SK_DRV_ADAP_FAIL 7 /* The whole adapter fails */
42 #define SK_DRV_PORT_FAIL 8 /* One port fails */
43 #define SK_DRV_SWITCH_INTERN 9 /* Port switch by the driver itself */
44 #define SK_DRV_POWER_DOWN 10 /* Power down mode */
45 #define SK_DRV_TIMER 11 /* Timer for free use */
46 #ifdef SK_NO_RLMT
47 #define SK_DRV_LINK_UP 12 /* Link Up event for driver */
48 #define SK_DRV_LINK_DOWN 13 /* Link Down event for driver */
49 #endif
50 #define SK_DRV_DOWNSHIFT_DET 14 /* Downshift 4-Pair / 2-Pair (YUKON only) */
51 #endif /* __INC_SKGEDRV_H_ */