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