async: Introduce async_schedule_dev_nocall()
[platform/kernel/linux-starfive.git] / include / linux / if_fddi.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * INET         An implementation of the TCP/IP protocol suite for the LINUX
4  *              operating system.  INET is implemented using the BSD Socket
5  *              interface as the means of communication with the user level.
6  *
7  *              Global definitions for the ANSI FDDI interface.
8  *
9  * Version:     @(#)if_fddi.h   1.0.2   Sep 29 2004
10  *
11  * Author:      Lawrence V. Stefani, <stefani@lkg.dec.com>
12  *
13  *              if_fddi.h is based on previous if_ether.h and if_tr.h work by
14  *                      Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
15  *                      Donald Becker, <becker@super.org>
16  *                      Alan Cox, <alan@lxorguk.ukuu.org.uk>
17  *                      Steve Whitehouse, <gw7rrm@eeshack3.swan.ac.uk>
18  *                      Peter De Schrijver, <stud11@cc4.kuleuven.ac.be>
19  */
20 #ifndef _LINUX_IF_FDDI_H
21 #define _LINUX_IF_FDDI_H
22
23 #include <linux/netdevice.h>
24 #include <uapi/linux/if_fddi.h>
25
26 /* Define FDDI statistics structure */
27 struct fddi_statistics {
28
29         /* Generic statistics. */
30
31         struct net_device_stats gen;
32
33         /* Detailed FDDI statistics.  Adopted from RFC 1512 */
34
35         __u8    smt_station_id[8];
36         __u32   smt_op_version_id;
37         __u32   smt_hi_version_id;
38         __u32   smt_lo_version_id;
39         __u8    smt_user_data[32];
40         __u32   smt_mib_version_id;
41         __u32   smt_mac_cts;
42         __u32   smt_non_master_cts;
43         __u32   smt_master_cts;
44         __u32   smt_available_paths;
45         __u32   smt_config_capabilities;
46         __u32   smt_config_policy;
47         __u32   smt_connection_policy;
48         __u32   smt_t_notify;
49         __u32   smt_stat_rpt_policy;
50         __u32   smt_trace_max_expiration;
51         __u32   smt_bypass_present;
52         __u32   smt_ecm_state;
53         __u32   smt_cf_state;
54         __u32   smt_remote_disconnect_flag;
55         __u32   smt_station_status;
56         __u32   smt_peer_wrap_flag;
57         __u32   smt_time_stamp;
58         __u32   smt_transition_time_stamp;
59         __u32   mac_frame_status_functions;
60         __u32   mac_t_max_capability;
61         __u32   mac_tvx_capability;
62         __u32   mac_available_paths;
63         __u32   mac_current_path;
64         __u8    mac_upstream_nbr[FDDI_K_ALEN];
65         __u8    mac_downstream_nbr[FDDI_K_ALEN];
66         __u8    mac_old_upstream_nbr[FDDI_K_ALEN];
67         __u8    mac_old_downstream_nbr[FDDI_K_ALEN];
68         __u32   mac_dup_address_test;
69         __u32   mac_requested_paths;
70         __u32   mac_downstream_port_type;
71         __u8    mac_smt_address[FDDI_K_ALEN];
72         __u32   mac_t_req;
73         __u32   mac_t_neg;
74         __u32   mac_t_max;
75         __u32   mac_tvx_value;
76         __u32   mac_frame_cts;
77         __u32   mac_copied_cts;
78         __u32   mac_transmit_cts;
79         __u32   mac_error_cts;
80         __u32   mac_lost_cts;
81         __u32   mac_frame_error_threshold;
82         __u32   mac_frame_error_ratio;
83         __u32   mac_rmt_state;
84         __u32   mac_da_flag;
85         __u32   mac_una_da_flag;
86         __u32   mac_frame_error_flag;
87         __u32   mac_ma_unitdata_available;
88         __u32   mac_hardware_present;
89         __u32   mac_ma_unitdata_enable;
90         __u32   path_tvx_lower_bound;
91         __u32   path_t_max_lower_bound;
92         __u32   path_max_t_req;
93         __u32   path_configuration[8];
94         __u32   port_my_type[2];
95         __u32   port_neighbor_type[2];
96         __u32   port_connection_policies[2];
97         __u32   port_mac_indicated[2];
98         __u32   port_current_path[2];
99         __u8    port_requested_paths[3*2];
100         __u32   port_mac_placement[2];
101         __u32   port_available_paths[2];
102         __u32   port_pmd_class[2];
103         __u32   port_connection_capabilities[2];
104         __u32   port_bs_flag[2];
105         __u32   port_lct_fail_cts[2];
106         __u32   port_ler_estimate[2];
107         __u32   port_lem_reject_cts[2];
108         __u32   port_lem_cts[2];
109         __u32   port_ler_cutoff[2];
110         __u32   port_ler_alarm[2];
111         __u32   port_connect_state[2];
112         __u32   port_pcm_state[2];
113         __u32   port_pc_withhold[2];
114         __u32   port_ler_flag[2];
115         __u32   port_hardware_present[2];
116 };
117 #endif  /* _LINUX_IF_FDDI_H */