[SCSI] mpt2sas: Before removing sas_device search device in list for _scsih_sas_devic...
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / stmmac.h
blob32bfd1a8a48d3b7d5da83b425f4e6416603c33c6
1 /*******************************************************************************
3 Header file for stmmac platform data
5 Copyright (C) 2009 STMicroelectronics Ltd
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.
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.
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.
20 The full GNU General Public License is included in this distribution in
21 the file called "COPYING".
23 Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
24 *******************************************************************************/
26 #ifndef __STMMAC_PLATFORM_DATA
27 #define __STMMAC_PLATFORM_DATA
29 /* platfrom data for platfrom device structure's platfrom_data field */
31 /* Private data for the STM on-board ethernet driver */
32 struct plat_stmmacenet_data {
33 int bus_id;
34 int pbl;
35 int has_gmac;
36 void (*fix_mac_speed)(void *priv, unsigned int speed);
37 void (*bus_setup)(unsigned long ioaddr);
38 #ifdef CONFIG_STM_DRIVERS
39 struct stm_pad_config *pad_config;
40 #endif
41 void *bsp_priv;
44 struct plat_stmmacphy_data {
45 int bus_id;
46 int phy_addr;
47 unsigned int phy_mask;
48 int interface;
49 int (*phy_reset)(void *priv);
50 void *priv;
52 #endif