forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/stmicro/stmmac/mmc.h
....@@ -1,19 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*******************************************************************************
23 MMC Header file
34
45 Copyright (C) 2011 STMicroelectronics Ltd
56
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".
177
188 Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
199 *******************************************************************************/
....@@ -34,6 +24,7 @@
3424
3525 #define MMC_GMAC4_OFFSET 0x700
3626 #define MMC_GMAC3_X_OFFSET 0x100
27
+#define MMC_XGMAC_OFFSET 0x800
3728
3829 struct stmmac_counters {
3930 unsigned int mmc_tx_octetcount_gb;
....@@ -126,10 +117,14 @@
126117 unsigned int mmc_rx_tcp_err_octets;
127118 unsigned int mmc_rx_icmp_gd_octets;
128119 unsigned int mmc_rx_icmp_err_octets;
129
-};
130120
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
+};
134129
135130 #endif /* __MMC_H__ */