mmc.h (22942498ccebf13b076859f8746be161dc0c6d89) mmc.h (4fa9c49f4d596edf89a6364a92af7b8102231d73)
1/* SPDX-License-Identifier: GPL-2.0-only */
1/*******************************************************************************
2 MMC Header file
3
4 Copyright (C) 2011 STMicroelectronics Ltd
5
2/*******************************************************************************
3 MMC Header file
4
5 Copyright (C) 2011 STMicroelectronics Ltd
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
7
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
18 Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
19*******************************************************************************/
20
21#ifndef __MMC_H__
22#define __MMC_H__
23
24/* MMC control register */
25/* When set, all counter are reset */

--- 97 unchanged lines hidden (view full) ---

123 unsigned int mmc_rx_udp_gd_octets;
124 unsigned int mmc_rx_udp_err_octets;
125 unsigned int mmc_rx_tcp_gd_octets;
126 unsigned int mmc_rx_tcp_err_octets;
127 unsigned int mmc_rx_icmp_gd_octets;
128 unsigned int mmc_rx_icmp_err_octets;
129};
130
8 Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
9*******************************************************************************/
10
11#ifndef __MMC_H__
12#define __MMC_H__
13
14/* MMC control register */
15/* When set, all counter are reset */

--- 97 unchanged lines hidden (view full) ---

113 unsigned int mmc_rx_udp_gd_octets;
114 unsigned int mmc_rx_udp_err_octets;
115 unsigned int mmc_rx_tcp_gd_octets;
116 unsigned int mmc_rx_tcp_err_octets;
117 unsigned int mmc_rx_icmp_gd_octets;
118 unsigned int mmc_rx_icmp_err_octets;
119};
120
121void dwmac_mmc_ctrl(void __iomem *ioaddr, unsigned int mode);
122void dwmac_mmc_intr_all_mask(void __iomem *ioaddr);
123void dwmac_mmc_read(void __iomem *ioaddr, struct stmmac_counters *mmc);
124
131#endif /* __MMC_H__ */
125#endif /* __MMC_H__ */