diff options
Diffstat (limited to 'drivers/net/skfp/h/lnkstat.h')
-rw-r--r-- | drivers/net/skfp/h/lnkstat.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/drivers/net/skfp/h/lnkstat.h b/drivers/net/skfp/h/lnkstat.h new file mode 100644 index 000000000000..c73dcd96a40f --- /dev/null +++ b/drivers/net/skfp/h/lnkstat.h | |||
@@ -0,0 +1,84 @@ | |||
1 | /****************************************************************************** | ||
2 | * | ||
3 | * (C)Copyright 1998,1999 SysKonnect, | ||
4 | * a business unit of Schneider & Koch & Co. Datensysteme GmbH. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * The information in this file is provided "AS IS" without warranty. | ||
12 | * | ||
13 | ******************************************************************************/ | ||
14 | |||
15 | /* | ||
16 | * Definition of the Error Log Structure | ||
17 | * This structure will be copied into the Error Log buffer | ||
18 | * during the NDIS General Request ReadErrorLog by the MAC Driver | ||
19 | */ | ||
20 | |||
21 | struct s_error_log { | ||
22 | |||
23 | /* | ||
24 | * place holder for token ring adapter error log (zeros) | ||
25 | */ | ||
26 | u_char reserved_0 ; /* byte 0 inside Error Log */ | ||
27 | u_char reserved_1 ; /* byte 1 */ | ||
28 | u_char reserved_2 ; /* byte 2 */ | ||
29 | u_char reserved_3 ; /* byte 3 */ | ||
30 | u_char reserved_4 ; /* byte 4 */ | ||
31 | u_char reserved_5 ; /* byte 5 */ | ||
32 | u_char reserved_6 ; /* byte 6 */ | ||
33 | u_char reserved_7 ; /* byte 7 */ | ||
34 | u_char reserved_8 ; /* byte 8 */ | ||
35 | u_char reserved_9 ; /* byte 9 */ | ||
36 | u_char reserved_10 ; /* byte 10 */ | ||
37 | u_char reserved_11 ; /* byte 11 */ | ||
38 | u_char reserved_12 ; /* byte 12 */ | ||
39 | u_char reserved_13 ; /* byte 13 */ | ||
40 | |||
41 | /* | ||
42 | * FDDI link statistics | ||
43 | */ | ||
44 | /* | ||
45 | * smt error low | ||
46 | */ | ||
47 | #define SMT_ERL_AEB (1<<15) /* A elast. buffer */ | ||
48 | #define SMT_ERL_BLC (1<<14) /* B link error condition */ | ||
49 | #define SMT_ERL_ALC (1<<13) /* A link error condition */ | ||
50 | #define SMT_ERL_NCC (1<<12) /* not copied condition */ | ||
51 | #define SMT_ERL_FEC (1<<11) /* frame error condition */ | ||
52 | |||
53 | /* | ||
54 | * smt event low | ||
55 | */ | ||
56 | #define SMT_EVL_NCE (1<<5) | ||
57 | |||
58 | u_short smt_error_low ; /* byte 14/15 */ | ||
59 | u_short smt_error_high ; /* byte 16/17 */ | ||
60 | u_short smt_event_low ; /* byte 18/19 */ | ||
61 | u_short smt_event_high ; /* byte 20/21 */ | ||
62 | u_short connection_policy_violation ; /* byte 22/23 */ | ||
63 | u_short port_event ; /* byte 24/25 */ | ||
64 | u_short set_count_low ; /* byte 26/27 */ | ||
65 | u_short set_count_high ; /* byte 28/29 */ | ||
66 | u_short aci_id_code ; /* byte 30/31 */ | ||
67 | u_short purge_frame_counter ; /* byte 32/33 */ | ||
68 | |||
69 | /* | ||
70 | * CMT and RMT state machines | ||
71 | */ | ||
72 | u_short ecm_state ; /* byte 34/35 */ | ||
73 | u_short pcm_a_state ; /* byte 36/37 */ | ||
74 | u_short pcm_b_state ; /* byte 38/39 */ | ||
75 | u_short cfm_state ; /* byte 40/41 */ | ||
76 | u_short rmt_state ; /* byte 42/43 */ | ||
77 | |||
78 | u_short not_used[30] ; /* byte 44-103 */ | ||
79 | |||
80 | u_short ucode_version_level ; /* byte 104/105 */ | ||
81 | |||
82 | u_short not_used_1 ; /* byte 106/107 */ | ||
83 | u_short not_used_2 ; /* byte 108/109 */ | ||
84 | } ; | ||