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