u-boot/include/linux
Andy Fleming 5f184715ec Create PHY Lib for U-Boot
Extends the mii_dev structure to participate in a full-blown MDIO and
PHY driver scheme.  The mii_dev structure and miiphy calls are modified
in such a way to allow the original mii command and miiphy
infrastructure to work as before, but also to support a new set of APIs
which allow (among other things) sharing of PHY driver code and 10G support

The mii command will continue to support normal PHY management functions
(Clause 22 of 802.3), but will not be changed to support 10G
(Clause 45).

The basic design is similar to PHY Lib from Linux, but simplified for
U-Boot's network and driver infrastructure.

We now have MDIO drivers and PHY drivers

An MDIO driver provides:
read
write
reset

A PHY driver provides:
(optionally): probe
config - initial setup, starting of auto-negotiation
startup - waiting for AN, and reading link state
shutdown - any cleanup needed

The ethernet drivers interact with the PHY Lib using these functions:
phy_connect()
phy_config()
phy_startup()
phy_shutdown()

Each PHY driver can be configured separately, or all at once using
config_phylib_all_drivers.h (added in the patch which adds the drivers)

We also provide generic drivers for Clause 22 (10/100/1000), and
Clause 45 (10G) PHYs.

We also implement phy_reset(), and call it in phy_connect(). Because
phy_reset() is essentially the same as miiphy_reset, but:
a) must support 10G PHYs, and
b) should use the phylib primitives,

we implement miiphy_reset, using phy_reset(), but only when
CONFIG_PHYLIB is set. Otherwise, we just use the old version. In this
way, we save on compile size, even if we don't manage to save code size.

Pulled ethtool.h and mdio.h from:
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
782d640afd15af7a1faf01cfe566ca4ac511319d
With many, many deletions so as to enable compilation under u-boot

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Detlev Zundel <dzu@denx.de>
2011-04-20 15:09:19 -05:00
..
byteorder
mtd NAND: add support for reading ONFI page table 2011-04-01 14:49:08 -05:00
unaligned ARM: Use Linux version for unaligned access code 2009-11-07 15:56:30 -06:00
usb USB: Add USB RNDIS gadget protocol 2011-02-19 20:32:37 +01:00
apm_bios.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
bitops.h Correct ffs/fls regression for PowerPC etc 2009-09-17 22:45:31 +02:00
compiler-gcc.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
compiler-gcc4.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
compiler.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
config.h
crc7.h lib: add crc7 from Linux 2011-01-18 23:38:08 +01:00
crc32.h Coding style cleanup, update CHANGELOG. 2008-12-16 01:02:17 +01:00
ctype.h ctype: constify lookup table 2010-11-28 21:58:29 +01:00
edd.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
err.h
ethtool.h Create PHY Lib for U-Boot 2011-04-20 15:09:19 -05:00
fb.h Coding Style cleanup 2010-10-27 22:48:30 +02:00
ioctl.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
ioport.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
kbuild.h Coding Style cleanup 2010-10-27 22:48:30 +02:00
list.h
lzo.h add lzop decompression support 2009-12-05 01:30:23 +01:00
math64.h UBIFS: Implement read-only UBIFS support in U-Boot 2009-03-20 22:39:15 +01:00
mc146818rtc.h Replace BCD2BIN and BIN2BCD macros with inline functions 2009-08-25 12:57:55 +02:00
mdio.h Create PHY Lib for U-Boot 2011-04-20 15:09:19 -05:00
mii.h Coding style (white space) cleanup. 2010-12-17 10:14:09 +01:00
netdevice.h USB-CDC: Port struct net_device_stats 2011-02-19 20:32:37 +01:00
poison.h
posix_types.h
rbtree.h Add Red Black Tree support 2008-10-18 21:54:01 +02:00
screen_info.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
stat.h nios2: add struct stat support in linux/stat.h 2010-04-02 12:28:40 -04:00
stddef.h
string.h
time.h
types.h UBI: Add basic UBI support to U-Boot (Part 6/8) 2008-11-19 20:34:39 +01:00