stmmac: remove warning when compile as built-in (V2)
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / stmmac.h
CommitLineData
3c9732c0
GC
1/*******************************************************************************
2
3 Header file for stmmac platform data
4
5 Copyright (C) 2009 STMicroelectronics Ltd
6
7 This program is free software; you can redistribute it and/or modify it
8 under the terms and conditions of the GNU General Public License,
9 version 2, as published by the Free Software Foundation.
10
11 This program is distributed in the hope it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 more details.
15
16 You should have received a copy of the GNU General Public License along with
17 this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
19
20 The full GNU General Public License is included in this distribution in
21 the file called "COPYING".
22
23 Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
24*******************************************************************************/
25
26#ifndef __STMMAC_PLATFORM_DATA
27#define __STMMAC_PLATFORM_DATA
28
57a503c6
VK
29#include <linux/platform_device.h>
30
25985edc 31/* platform data for platform device structure's platform_data field */
3c9732c0
GC
32
33/* Private data for the STM on-board ethernet driver */
34struct plat_stmmacenet_data {
35 int bus_id;
36 int pbl;
dfb8fb96 37 int clk_csr;
3c9732c0 38 int has_gmac;
e326e850 39 int enh_desc;
ebbb293f
GC
40 int tx_coe;
41 int bugged_jumbo;
543876c9 42 int pmt;
61b8013a 43 int force_sf_dma_mode;
3c9732c0 44 void (*fix_mac_speed)(void *priv, unsigned int speed);
ad01b7d4 45 void (*bus_setup)(void __iomem *ioaddr);
293bb1c4
GC
46 int (*init)(struct platform_device *pdev);
47 void (*exit)(struct platform_device *pdev);
48 void *custom_cfg;
3c9732c0
GC
49 void *bsp_priv;
50};
51
52struct plat_stmmacphy_data {
53 int bus_id;
54 int phy_addr;
55 unsigned int phy_mask;
56 int interface;
57 int (*phy_reset)(void *priv);
58 void *priv;
59};
60#endif
61