- 21 12月, 2011 1 次提交
-
-
由 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>
-
- 06 10月, 2011 2 次提交
-
-
由 Mike Frysinger 提交于
This is long over due. All but two net drivers have been converted, but those have now been dropped. The only thing left to do is actually delete all references to NET_MULTI and code that is compiled when that is not defined. So here we scrub the core code. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Mike Frysinger 提交于
This driver was never converted to NET_MULTI, and no board uses it. So punt it and be done. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 02 10月, 2011 1 次提交
-
-
由 Philip Balister 提交于
Signed-off-by: NPhilip Balister <philip@opensdr.com>
-
- 22 9月, 2011 1 次提交
-
-
由 Mike Frysinger 提交于
The new sanity check introduces a printf warning for some systems: eth.c:233: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int' Rather than tweak the format string, use the new assert() helper instead. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 10 9月, 2011 1 次提交
-
-
由 Helmut Raiger 提交于
eth_get_dev_by_name() is not safe to use for devname being NULL as it uses strcmp. This patch makes it fail with a BUG(). Signed-off-by: NHelmut Raiger <helmut.raiger@hale.at> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 05 9月, 2011 2 次提交
-
-
由 Simon Glass 提交于
This fixes "Warning: failed to set MAC address" on platforms which rely on an 'ethaddr' environment variable to set the MAC address. This bug was introduced by this commit: 7616e785 Add Ethernet hardware MAC address framework to usbnet Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NKumar Gala <galak@kernel.crashing.org> Tested-by: NMichal Simek <monstr@monstr.eu> Tested-by: NHeiko Schocher <hs@denx.de>
-
由 Michal Simek 提交于
If name is longer than allocated space NAMESIZE mac address is rewritten which show error message like: Error message: Warning: Xlltemac.87000000 MAC addresses don't match: Address in SROM is 30:00:00:00:00:00 Address in environment is 00:0a:35:00:6a:04 NAMESIZE contains Driver name + zero terminated character. Signed-off-by: NMichal Simek <monstr@monstr.eu>
-
- 09 8月, 2011 1 次提交
-
-
由 Simon Glass 提交于
Built-in Ethernet adapters support setting the mac address by means of a ethaddr environment variable for each interface (ethaddr, eth1addr, eth2addr). This adds similar support to the USB network side, using the names usbethaddr, usbeth1addr, etc. They are kept separate since we don't want a USB device taking the MAC address of a built-in device or vice versa. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NEric Bénard <eric@eukrea.com>
-
- 03 8月, 2011 1 次提交
-
-
由 Andreas Bießmann 提交于
All available at91rm9200 boards have migrated to ar920t/at91 and therefore to CONFIG_NET_MULTI. The obsolete at91rm9200_miiphy_initialize() was removed in "ARM: remove obsolete at91rm9200". Signed-off-by: NAndreas Bießmann <andreas.devel@googlemail.com>
-
- 21 4月, 2011 1 次提交
-
-
由 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>
-
- 20 2月, 2011 2 次提交
-
-
由 Remy Bohmer 提交于
Signed-off-by: NRemy Bohmer <linux@bohmer.net>
-
由 Simon Glass 提交于
This adds support for using USB Ethernet dongles in host mode. This is just the framework - drivers will come later. A new config option called CONFIG_USB_HOST_ETHER can be defined in board config files to switch this on. The was originally written by NVIDIA and was cleaned up for release by the Chromium authors. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 15 11月, 2010 1 次提交
-
-
由 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>
-
- 12 10月, 2010 1 次提交
-
-
由 Ben Warren 提交于
All are within an #ifdef CONFIG_NET_MULTI block already Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 10 8月, 2010 1 次提交
-
-
由 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>
-
- 12 7月, 2010 1 次提交
-
-
由 Mike Frysinger 提交于
Some commands operate on eth device names (like 'mii'), but those cannot be passed on the command line as one argument. So detect devices like these and warn about them so someone will fix it. Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 21 6月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
Move it inside the #ifdef CONFIG_NET_MULTI to avoid eth.c:64: warning: 'eth_mac_skip' defined but not used messages from a number of old, non-CONFIG_NET_MULTI boards. Signed-off-by: NWolfgang Denk <wd@denx.de> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 20 6月, 2010 1 次提交
-
-
由 Wolfgang Denk 提交于
Move it inside the #ifdef CONFIG_NET_MULTI to avoid eth.c:64: warning: 'eth_mac_skip' defined but not used messages from anumber of old, non-CONFIG_NET_MULTI boards. Signed-off-by: NWolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com>
-
- 04 5月, 2010 2 次提交
-
-
由 Ben Warren 提交于
Add a new function to the eth_device struct for programming a network controller's hardware address. After all network devices have been initialized and the proper MAC address for each has been determined, make a device driver call to program the address into the device. Only device instances with valid unicast addresses will be programmed. Signed-off-by: NBen Warren <biggerbadderben@gmail.com> Acked-by: NDetlev Zundel <dzu@denx.de> Tested-by: NPrafulla Wadaskar <prafulla@marvell.com> Tested-by: NHeiko Schocher <hs@denx.de> Tested-by: NThomas Chou <thomas@wytron.com.tw>
-
由 Detlev Zundel 提交于
Signed-off-by: NDetlev Zundel <dzu@denx.de> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 14 12月, 2009 1 次提交
-
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 08 8月, 2009 2 次提交
-
-
由 Mike Frysinger 提交于
In the previous enetaddr refactoring, the assumption with commit 56b555a6 was that the eth layer would handle the env -> device enetaddr syncing. This was not the case as eth_initialize() is called only once and the sync occurs there. So make sure the eth_init() function does the env -> device sync with every network init. Reported-by: NAndrzej Wolski <awolski@poczta.fm> Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Robin Getz 提交于
Minor ./net cleanups - no functional changes - change #ifdef DEBUG printf(); #endif to just debug() - changed __FUNCTION__ to __func__ - got rid of extra whitespace between function and opening brace - removed unnecessary braces on if statements gcc dead code elimination should make this functionally/size equivalent when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3). Signed-off-by: NRobin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 23 7月, 2009 1 次提交
-
-
由 Ben Warren 提交于
Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 15 6月, 2009 2 次提交
-
-
由 Ben Warren 提交于
Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Ben Warren 提交于
Added CONFIG_NET_MULTI to all Davinci boards Removed all calls to Davinci network driver from board code Added cpu_eth_init() to cpu/arm926ejs/cpu.c Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 16 5月, 2009 1 次提交
-
-
由 Heiko Schocher 提交于
Fix some issues introduced from commit: 2f70c49e suggested by Mike Frysinger. - added some comment for the env_id variable in common_cmd_nvedit.c - moved some variables in fn scope instead of file scope - NetInitLoop now static void Signed-off-by: NHeiko Schocher <hs@denx.de> Acked-by: NBen Warren <biggerbadderben@gmail.com>
-
- 28 4月, 2009 1 次提交
-
-
由 Peter Tyser 提交于
__attribute__ follows gcc's documented syntax and is generally more common than __attribute. This change is only asthetic and should not affect functionality. Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
- 21 3月, 2009 1 次提交
-
-
由 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>
-
- 23 2月, 2009 1 次提交
-
-
由 Heiko Schocher 提交于
NetLoop polls every cycle with getenv some environment variables. This is horribly slow, especially when the environment is big. This patch reads only the environment variables in NetLoop, when they were changed. Also moved the init part of the NetLoop function in a seperate function. Signed-off-by: NHeiko Schocher <hs@denx.de> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 17 2月, 2009 1 次提交
-
-
由 Andy Fleming 提交于
This allows code to iterate through the ethernet devices Signed-off-by: NAndy Fleming <afleming@freescale.com>
-
- 10 11月, 2008 8 次提交
-
-
由 Ben Warren 提交于
Removed initialization of the driver from net/eth.c Signed-off-by: NBen Warren <biggerbadderben@gmail.com> Acked-by: NStefan Roese <sr@denx.de>
-
由 Ben Warren 提交于
All in-tree IBM/AMCC PPC4xx boards using the EMAC get this new CONFIG Signed-off-by: NBen Warren <biggerbadderben@gmail.com> Acked-by: NStefan Roese <sr@denx.de>
-
由 Ben Warren 提交于
Removed initialization of the driver from net/eth.c Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Ben Warren 提交于
Removed initialization of the driver from net/eth.c Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Ben Warren 提交于
Removed initialization of the driver from net/eth.c Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Ben Warren 提交于
Affected boards: Several MPC8xx boards Several MPC8260/MPC8272 boards Several MPC85xx boards Removed initialization of the driver from net/eth.c Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Shinya Kuribayashi 提交于
This patch will move au1x00_eth_initialize from net/eth.c to cpu_eth_init as a part of ongoing eth_initialize cleanup work. The function ret value is also fixed as it should be negative on fail. Signed-off-by: NShinya Kuribayashi <skuribay@ruby.dti.ne.jp> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Ben Warren 提交于
Also, removed the driver initialization from net/eth.c Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-