ethtool.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Applied Micro X-Gene SoC Ethernet v2 Driver
  3. *
  4. * Copyright (c) 2017, Applied Micro Circuits Corporation
  5. * Author(s): Iyappan Subramanian <isubramanian@apm.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #ifndef __XGENE_ENET_V2_ETHTOOL_H__
  21. #define __XGENE_ENET_V2_ETHTOOL_H__
  22. struct xge_gstrings_stats {
  23. char name[ETH_GSTRING_LEN];
  24. int offset;
  25. };
  26. struct xge_gstrings_extd_stats {
  27. char name[ETH_GSTRING_LEN];
  28. u32 addr;
  29. u32 value;
  30. };
  31. #define TR64 0xa080
  32. #define TR127 0xa084
  33. #define TR255 0xa088
  34. #define TR511 0xa08c
  35. #define TR1K 0xa090
  36. #define TRMAX 0xa094
  37. #define TRMGV 0xa098
  38. #define RFCS 0xa0a4
  39. #define RMCA 0xa0a8
  40. #define RBCA 0xa0ac
  41. #define RXCF 0xa0b0
  42. #define RXPF 0xa0b4
  43. #define RXUO 0xa0b8
  44. #define RALN 0xa0bc
  45. #define RFLR 0xa0c0
  46. #define RCDE 0xa0c4
  47. #define RCSE 0xa0c8
  48. #define RUND 0xa0cc
  49. #define ROVR 0xa0d0
  50. #define RFRG 0xa0d4
  51. #define RJBR 0xa0d8
  52. #define RDRP 0xa0dc
  53. #define TMCA 0xa0e8
  54. #define TBCA 0xa0ec
  55. #define TXPF 0xa0f0
  56. #define TDFR 0xa0f4
  57. #define TEDF 0xa0f8
  58. #define TSCL 0xa0fc
  59. #define TMCL 0xa100
  60. #define TLCL 0xa104
  61. #define TXCL 0xa108
  62. #define TNCL 0xa10c
  63. #define TPFH 0xa110
  64. #define TDRP 0xa114
  65. #define TJBR 0xa118
  66. #define TFCS 0xa11c
  67. #define TXCF 0xa120
  68. #define TOVR 0xa124
  69. #define TUND 0xa128
  70. #define TFRG 0xa12c
  71. void xge_set_ethtool_ops(struct net_device *ndev);
  72. #endif /* __XGENE_ENET_V2_ETHTOOL_H__ */