1. 21 12月, 2011 1 次提交
    • M
      net: introduce per device index · fea7dcae
      Michael Walle 提交于
      Instead of counting the device index everytime a functions needs it, store
      it in the eth_device struct. eth_register() keeps track of the indices and
      updates the device's index number. This simplifies some functions in
      net/eth.c.
      
      Additionally, a network driver can now query its index, eg. to get the
      correct environment ethaddr name.
      Signed-off-by: NMichael Walle <michael@walle.cc>
      Cc: Prafulla Wadaskar <prafulla@marvell.com>
      Cc: Mike Frysinger <vapier@gentoo.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      fea7dcae
  2. 06 10月, 2011 2 次提交
  3. 02 10月, 2011 1 次提交
  4. 22 9月, 2011 1 次提交
  5. 10 9月, 2011 1 次提交
  6. 05 9月, 2011 2 次提交
  7. 09 8月, 2011 1 次提交
  8. 03 8月, 2011 1 次提交
  9. 21 4月, 2011 1 次提交
    • A
      Create PHY Lib for U-Boot · 5f184715
      Andy Fleming 提交于
      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: NAndy Fleming <afleming@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      Acked-by: NDetlev Zundel <dzu@denx.de>
      5f184715
  10. 20 2月, 2011 2 次提交
  11. 15 11月, 2010 1 次提交
    • B
      Net: clarify board/cpu_eth_init calls · 8ad25bf8
      Ben Warren 提交于
      This has always been confusing, and the idea of these functions returning the
      number of interfaces initialized was half-baked and ultimately pointless.
      Instead, act more like regular functions and return < 0 on failure, >= 0 on
      success.
      
      This change shouldn't break anything.
      Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
      8ad25bf8
  12. 12 10月, 2010 1 次提交
  13. 10 8月, 2010 1 次提交
    • B
      Fix compile warnings for const correctness · d7fb9bcf
      Ben Warren 提交于
      Commit 6e37b1a3a25004d3df5867de49fff6b3fc9c4f04 modifies several net calls
      to take a (const char *) parameter instead of (char *), but in some cases
      the modified functions call other functions taking (char *).  The end result
      is warnings about discarding the const qualifier.
      
      This patch fixes these other function signatures.
      Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
      d7fb9bcf
  14. 12 7月, 2010 1 次提交
  15. 21 6月, 2010 1 次提交
  16. 20 6月, 2010 1 次提交
  17. 04 5月, 2010 2 次提交
  18. 14 12月, 2009 1 次提交
  19. 08 8月, 2009 2 次提交
  20. 23 7月, 2009 1 次提交
  21. 15 6月, 2009 2 次提交
  22. 16 5月, 2009 1 次提交
  23. 28 4月, 2009 1 次提交
  24. 21 3月, 2009 1 次提交
    • M
      net: new utility functions for working with enetaddr's · 3f6e6993
      Mike Frysinger 提交于
      Declare new utility functions for converting between the environment
      variables (eth*addr) and the binary MAC address representation.  This way
      we can unify all the random places that already do this kind of thing.
      
      The functions in question:
      	eth_parse_enetaddr - "..." -> {...}
      	eth_getenv_enetaddr - env -> {...}
      	eth_setenv_enetaddr - {...} -> env
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      CC: Ben Warren <biggerbadderben@gmail.com>
      3f6e6993
  25. 23 2月, 2009 1 次提交
  26. 17 2月, 2009 1 次提交
  27. 10 11月, 2008 8 次提交