if_fddi.h 3.4 KB

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