if_fddi.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. #include <linux/netdevice.h>
  23. #include <uapi/linux/if_fddi.h>
  24. /* Define FDDI statistics structure */
  25. struct fddi_statistics {
  26. /* Generic statistics. */
  27. struct net_device_stats gen;
  28. /* Detailed FDDI statistics. Adopted from RFC 1512 */
  29. __u8 smt_station_id[8];
  30. __u32 smt_op_version_id;
  31. __u32 smt_hi_version_id;
  32. __u32 smt_lo_version_id;
  33. __u8 smt_user_data[32];
  34. __u32 smt_mib_version_id;
  35. __u32 smt_mac_cts;
  36. __u32 smt_non_master_cts;
  37. __u32 smt_master_cts;
  38. __u32 smt_available_paths;
  39. __u32 smt_config_capabilities;
  40. __u32 smt_config_policy;
  41. __u32 smt_connection_policy;
  42. __u32 smt_t_notify;
  43. __u32 smt_stat_rpt_policy;
  44. __u32 smt_trace_max_expiration;
  45. __u32 smt_bypass_present;
  46. __u32 smt_ecm_state;
  47. __u32 smt_cf_state;
  48. __u32 smt_remote_disconnect_flag;
  49. __u32 smt_station_status;
  50. __u32 smt_peer_wrap_flag;
  51. __u32 smt_time_stamp;
  52. __u32 smt_transition_time_stamp;
  53. __u32 mac_frame_status_functions;
  54. __u32 mac_t_max_capability;
  55. __u32 mac_tvx_capability;
  56. __u32 mac_available_paths;
  57. __u32 mac_current_path;
  58. __u8 mac_upstream_nbr[FDDI_K_ALEN];
  59. __u8 mac_downstream_nbr[FDDI_K_ALEN];
  60. __u8 mac_old_upstream_nbr[FDDI_K_ALEN];
  61. __u8 mac_old_downstream_nbr[FDDI_K_ALEN];
  62. __u32 mac_dup_address_test;
  63. __u32 mac_requested_paths;
  64. __u32 mac_downstream_port_type;
  65. __u8 mac_smt_address[FDDI_K_ALEN];
  66. __u32 mac_t_req;
  67. __u32 mac_t_neg;
  68. __u32 mac_t_max;
  69. __u32 mac_tvx_value;
  70. __u32 mac_frame_cts;
  71. __u32 mac_copied_cts;
  72. __u32 mac_transmit_cts;
  73. __u32 mac_error_cts;
  74. __u32 mac_lost_cts;
  75. __u32 mac_frame_error_threshold;
  76. __u32 mac_frame_error_ratio;
  77. __u32 mac_rmt_state;
  78. __u32 mac_da_flag;
  79. __u32 mac_una_da_flag;
  80. __u32 mac_frame_error_flag;
  81. __u32 mac_ma_unitdata_available;
  82. __u32 mac_hardware_present;
  83. __u32 mac_ma_unitdata_enable;
  84. __u32 path_tvx_lower_bound;
  85. __u32 path_t_max_lower_bound;
  86. __u32 path_max_t_req;
  87. __u32 path_configuration[8];
  88. __u32 port_my_type[2];
  89. __u32 port_neighbor_type[2];
  90. __u32 port_connection_policies[2];
  91. __u32 port_mac_indicated[2];
  92. __u32 port_current_path[2];
  93. __u8 port_requested_paths[3*2];
  94. __u32 port_mac_placement[2];
  95. __u32 port_available_paths[2];
  96. __u32 port_pmd_class[2];
  97. __u32 port_connection_capabilities[2];
  98. __u32 port_bs_flag[2];
  99. __u32 port_lct_fail_cts[2];
  100. __u32 port_ler_estimate[2];
  101. __u32 port_lem_reject_cts[2];
  102. __u32 port_lem_cts[2];
  103. __u32 port_ler_cutoff[2];
  104. __u32 port_ler_alarm[2];
  105. __u32 port_connect_state[2];
  106. __u32 port_pcm_state[2];
  107. __u32 port_pc_withhold[2];
  108. __u32 port_ler_flag[2];
  109. __u32 port_hardware_present[2];
  110. };
  111. #endif /* _LINUX_IF_FDDI_H */