Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * INET     An implementation of the TCP/IP protocol suite for the LINUX
0004  *      operating system.  INET is implemented using the BSD Socket
0005  *      interface as the means of communication with the user level.
0006  *
0007  *      Global definitions for the ANSI FDDI interface.
0008  *
0009  * Version: @(#)if_fddi.h   1.0.2   Sep 29 2004
0010  *
0011  * Author:  Lawrence V. Stefani, <stefani@lkg.dec.com>
0012  *
0013  *      if_fddi.h is based on previous if_ether.h and if_tr.h work by
0014  *          Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
0015  *          Donald Becker, <becker@super.org>
0016  *          Alan Cox, <alan@lxorguk.ukuu.org.uk>
0017  *          Steve Whitehouse, <gw7rrm@eeshack3.swan.ac.uk>
0018  *          Peter De Schrijver, <stud11@cc4.kuleuven.ac.be>
0019  */
0020 #ifndef _LINUX_IF_FDDI_H
0021 #define _LINUX_IF_FDDI_H
0022 
0023 #include <linux/netdevice.h>
0024 #include <uapi/linux/if_fddi.h>
0025 
0026 /* Define FDDI statistics structure */
0027 struct fddi_statistics {
0028 
0029     /* Generic statistics. */
0030 
0031     struct net_device_stats gen;
0032 
0033     /* Detailed FDDI statistics.  Adopted from RFC 1512 */
0034 
0035     __u8    smt_station_id[8];
0036     __u32   smt_op_version_id;
0037     __u32   smt_hi_version_id;
0038     __u32   smt_lo_version_id;
0039     __u8    smt_user_data[32];
0040     __u32   smt_mib_version_id;
0041     __u32   smt_mac_cts;
0042     __u32   smt_non_master_cts;
0043     __u32   smt_master_cts;
0044     __u32   smt_available_paths;
0045     __u32   smt_config_capabilities;
0046     __u32   smt_config_policy;
0047     __u32   smt_connection_policy;
0048     __u32   smt_t_notify;
0049     __u32   smt_stat_rpt_policy;
0050     __u32   smt_trace_max_expiration;
0051     __u32   smt_bypass_present;
0052     __u32   smt_ecm_state;
0053     __u32   smt_cf_state;
0054     __u32   smt_remote_disconnect_flag;
0055     __u32   smt_station_status;
0056     __u32   smt_peer_wrap_flag;
0057     __u32   smt_time_stamp;
0058     __u32   smt_transition_time_stamp;
0059     __u32   mac_frame_status_functions;
0060     __u32   mac_t_max_capability;
0061     __u32   mac_tvx_capability;
0062     __u32   mac_available_paths;
0063     __u32   mac_current_path;
0064     __u8    mac_upstream_nbr[FDDI_K_ALEN];
0065     __u8    mac_downstream_nbr[FDDI_K_ALEN];
0066     __u8    mac_old_upstream_nbr[FDDI_K_ALEN];
0067     __u8    mac_old_downstream_nbr[FDDI_K_ALEN];
0068     __u32   mac_dup_address_test;
0069     __u32   mac_requested_paths;
0070     __u32   mac_downstream_port_type;
0071     __u8    mac_smt_address[FDDI_K_ALEN];
0072     __u32   mac_t_req;
0073     __u32   mac_t_neg;
0074     __u32   mac_t_max;
0075     __u32   mac_tvx_value;
0076     __u32   mac_frame_cts;
0077     __u32   mac_copied_cts;
0078     __u32   mac_transmit_cts;
0079     __u32   mac_error_cts;
0080     __u32   mac_lost_cts;
0081     __u32   mac_frame_error_threshold;
0082     __u32   mac_frame_error_ratio;
0083     __u32   mac_rmt_state;
0084     __u32   mac_da_flag;
0085     __u32   mac_una_da_flag;
0086     __u32   mac_frame_error_flag;
0087     __u32   mac_ma_unitdata_available;
0088     __u32   mac_hardware_present;
0089     __u32   mac_ma_unitdata_enable;
0090     __u32   path_tvx_lower_bound;
0091     __u32   path_t_max_lower_bound;
0092     __u32   path_max_t_req;
0093     __u32   path_configuration[8];
0094     __u32   port_my_type[2];
0095     __u32   port_neighbor_type[2];
0096     __u32   port_connection_policies[2];
0097     __u32   port_mac_indicated[2];
0098     __u32   port_current_path[2];
0099     __u8    port_requested_paths[3*2];
0100     __u32   port_mac_placement[2];
0101     __u32   port_available_paths[2];
0102     __u32   port_pmd_class[2];
0103     __u32   port_connection_capabilities[2];
0104     __u32   port_bs_flag[2];
0105     __u32   port_lct_fail_cts[2];
0106     __u32   port_ler_estimate[2];
0107     __u32   port_lem_reject_cts[2];
0108     __u32   port_lem_cts[2];
0109     __u32   port_ler_cutoff[2];
0110     __u32   port_ler_alarm[2];
0111     __u32   port_connect_state[2];
0112     __u32   port_pcm_state[2];
0113     __u32   port_pc_withhold[2];
0114     __u32   port_ler_flag[2];
0115     __u32   port_hardware_present[2];
0116 };
0117 #endif  /* _LINUX_IF_FDDI_H */