| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /******************************************************************************* |
|---|
| 2 | 3 | MMC Header file |
|---|
| 3 | 4 | |
|---|
| 4 | 5 | Copyright (C) 2011 STMicroelectronics Ltd |
|---|
| 5 | 6 | |
|---|
| 6 | | - This program is free software; you can redistribute it and/or modify it |
|---|
| 7 | | - under the terms and conditions of the GNU General Public License, |
|---|
| 8 | | - version 2, as published by the Free Software Foundation. |
|---|
| 9 | | - |
|---|
| 10 | | - This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 11 | | - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 12 | | - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 13 | | - more details. |
|---|
| 14 | | - |
|---|
| 15 | | - The full GNU General Public License is included in this distribution in |
|---|
| 16 | | - the file called "COPYING". |
|---|
| 17 | 7 | |
|---|
| 18 | 8 | Author: Giuseppe Cavallaro <peppe.cavallaro@st.com> |
|---|
| 19 | 9 | *******************************************************************************/ |
|---|
| .. | .. |
|---|
| 34 | 24 | |
|---|
| 35 | 25 | #define MMC_GMAC4_OFFSET 0x700 |
|---|
| 36 | 26 | #define MMC_GMAC3_X_OFFSET 0x100 |
|---|
| 27 | +#define MMC_XGMAC_OFFSET 0x800 |
|---|
| 37 | 28 | |
|---|
| 38 | 29 | struct stmmac_counters { |
|---|
| 39 | 30 | unsigned int mmc_tx_octetcount_gb; |
|---|
| .. | .. |
|---|
| 126 | 117 | unsigned int mmc_rx_tcp_err_octets; |
|---|
| 127 | 118 | unsigned int mmc_rx_icmp_gd_octets; |
|---|
| 128 | 119 | unsigned int mmc_rx_icmp_err_octets; |
|---|
| 129 | | -}; |
|---|
| 130 | 120 | |
|---|
| 131 | | -void dwmac_mmc_ctrl(void __iomem *ioaddr, unsigned int mode); |
|---|
| 132 | | -void dwmac_mmc_intr_all_mask(void __iomem *ioaddr); |
|---|
| 133 | | -void dwmac_mmc_read(void __iomem *ioaddr, struct stmmac_counters *mmc); |
|---|
| 121 | + /* FPE */ |
|---|
| 122 | + unsigned int mmc_tx_fpe_fragment_cntr; |
|---|
| 123 | + unsigned int mmc_tx_hold_req_cntr; |
|---|
| 124 | + unsigned int mmc_rx_packet_assembly_err_cntr; |
|---|
| 125 | + unsigned int mmc_rx_packet_smd_err_cntr; |
|---|
| 126 | + unsigned int mmc_rx_packet_assembly_ok_cntr; |
|---|
| 127 | + unsigned int mmc_rx_fpe_fragment_cntr; |
|---|
| 128 | +}; |
|---|
| 134 | 129 | |
|---|
| 135 | 130 | #endif /* __MMC_H__ */ |
|---|