fix error return value while loading environment
[barebox-mini2440.git] / include / fec.h
blob85691b6854a71d1e3d8e067fea6d3e1bb26a60a3
1 /*
2 * (C) Copyright 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
3 * (C) Copyright 2007 Pengutronix, Juergen Beisert <j.beisert@pengutronix.de>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 * MA 02111-1307 USA
21 /**
22 * @file
23 * @brief Shared structures and constants between i.MX27's and MPC52xx's FEC
25 #ifndef __INCLUDE_NETWORK_FEC_H
26 #define __INCLUDE_NETWORK_FEC_H
29 * Supported phy types on this platform
31 typedef enum {
32 SEVENWIRE,
33 MII10,
34 MII100,
35 RMII,
36 } xceiver_type;
39 * Define the phy connected externally for FEC drivers
40 * (like MPC52xx and i.MX27)
42 struct fec_platform_data {
43 xceiver_type xcv_type;
44 int phy_addr;
47 #endif /* __INCLUDE_NETWORK_FEC_H */