- 29 3月, 2012 1 次提交
-
-
由 Eric Nelson 提交于
This will prevent the need for architectures whose DMA alignment is greater than 32 to have bounce buffers. Signed-off-by: NEric Nelson <eric.nelson@boundarydevices.com>
-
- 19 3月, 2012 1 次提交
-
-
由 Mike Frysinger 提交于
A few subsystems are using the same define "NAMESIZE". This has been working so far because they define it to the same number. However, I want to change the size of eth_device's NAMESIZE, so rather than tweak the define names, simply drop references to it. Almost no one does, and the handful that do can easily be changed to a sizeof(). Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 03 3月, 2012 1 次提交
-
-
由 Vincent Palatin 提交于
Fix the crash when running several times usb_init() with a USB ethernet device plugged. Signed-off-by: NVincent Palatin <vpalatin@chromium.org> Tested-by: NWolfgang Grandegger <wg@denx.de>
-
- 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>
-
- 07 12月, 2011 1 次提交
-
-
由 Matthias Weisser 提交于
When building u-boot as 64 bit application (e.g. sandbox) ulong might be 64 bits in size. This breaks network code as IPaddr_t is 64 bytes in size then and an IPv4 address is 32 bits in size. This patch makes sure that IPaddr_t is always 32 bits in size. Also some warnings introduced by this patch are fixed. Signed-off-by: NMatthias Weisser <weisserm@arcor.de> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 28 10月, 2011 1 次提交
-
-
由 Simon Glass 提交于
The rarp code includes another instance of the auto_load logic, so call what is now net_auto_load() instead. This also fixes an incorrect call to TftpStart() which was never seen since apparently no boards enable rarp. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 27 10月, 2011 3 次提交
-
-
由 Simon Glass 提交于
TftpStart should support starting either a get or a put. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This is a better name for this protocol. Also remove the typedef to keep checkpatch happy, and move zeroing of NetBootFileXferSize a little earlier since TFTPPUT will need to change this. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
ICMP packets can tell you when there is no server at the other end. It is useful for tftp to figure this out, so that a quick error can be displayed, rather than pointlessly retrying. This adds an ICMP packet handler to the net interface. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 06 10月, 2011 1 次提交
-
-
由 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>
-
- 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>
-
- 20 5月, 2011 1 次提交
-
-
由 Luca Ceresoli 提交于
Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
- 13 5月, 2011 1 次提交
-
-
由 Luca Ceresoli 提交于
This is needed for the upcoming TFTP server implementation. This also simplifies PingHandler() and fixes rxhand_f documentation. Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
- 29 11月, 2010 3 次提交
-
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 21 9月, 2010 1 次提交
-
-
由 Remy Bohmer 提交于
Derived from Linux kernel 2.6.27 Signed-off-by: NThomas Smits <ts.smits@gmail.com> Signed-off-by: NRemy Bohmer <linux@bohmer.net>
-
- 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>
-
- 04 5月, 2010 1 次提交
-
-
由 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>
-
- 18 1月, 2010 1 次提交
-
-
由 Dirk Behme 提交于
There are boards out there that do not have network support in U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This makes it desirable to be able to port network configuration (like the IP address) to the Linux kernel. We should not make the passing of the IP configuration to Linux dependent on U-Boot features / settings. For this, make getenv_IPaddr() global. This fixes build error u-boot/lib_xxx/board.c:360: undefined reference to `getenv_IPaddr' on various architectures. Signed-off-by: NDirk Behme <dirk.behme@googlemail.com> Acked-by: NBen Warren <biggerbadderben@gmail.com>
-
- 05 10月, 2009 1 次提交
-
-
由 Mike Frysinger 提交于
The random_port() is meant to be used by other net code, but without a prototype, we get fun warnings like: dns.c: In function 'DnsSend': dns.c:89: warning: implicit declaration of function 'random_port' Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 08 8月, 2009 1 次提交
-
-
由 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>
-
- 23 7月, 2009 2 次提交
-
-
由 Robin Getz 提交于
On 04 Oct 2008 Pieter posted a dns implementation for U-Boot. http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg10216.html > > DNS can be enabled by setting CFG_CMD_DNS. After performing a query, > the serverip environment var is updated. > > Probably there are some cosmetic issues with the patch. Unfortunatly I > do not have the time to correct these. So if anybody else likes DNS > support in U-Boot and has the time, feel free to patch it in the main tree. Here it is again - slightly modified & smaller: - update to 2009-06 (Pieter's patch was for U-Boot 1.2.0) - README.dns is added - syntax is changed (now takes a third option, the env var to store the result in) - add a random port() function in net.c - sort Makefile in ./net/Makefile - dns just returns unless a env var is given - run through checkpatch, and clean up style issues - remove packet from stack - cleaned up some comments - failure returns much faster (if server responds, don't wait for timeout) - use built in functions (memcpy) rather than byte copy. Signed-off-by: NRobin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: NPieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
由 Mike Frysinger 提交于
The net code is mostly consistent in using 'Packet' rather than 'Pkt', so rename the minor detractor to follow suite. Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 21 3月, 2009 2 次提交
-
-
由 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>
-
由 Mike Frysinger 提交于
Now that our printf functions support the %pI4 modifier like the kernel, let's drop the inflexible print_IPaddr() function and covert over to the %pI4 modifier. Signed-off-by: NMike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-
- 17 2月, 2009 1 次提交
-
-
由 Andy Fleming 提交于
Signed-off-by: NAndy Fleming <afleming@freescale.com>
-
- 29 1月, 2009 1 次提交
-
-
由 Mike Frysinger 提交于
Import the is_valid_ether_addr() function from the Linux kernel. Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 05 12月, 2008 1 次提交
-
-
由 Peter Tyser 提交于
These defines were pulled from the "Add simple IP/UDP fragmentation support" patch from Frank Haverkamp <haver@vnet.ibm.com>. Signed-off-by: NPeter Tyser <ptyser@xes-inc.com> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 19 10月, 2008 1 次提交
-
-
Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- 21 5月, 2008 1 次提交
-
-
由 Wolfgang Denk 提交于
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 01 5月, 2008 1 次提交
-
-
由 Anatolij Gustschin 提交于
MPC8610HPCD board adds -O2 gcc option to PLATFORM_CPPFLAGS causing overriding default -Os option. New gcc (ver. 4.2.2) produces warnings while compiling net/net.c file with -O2 option. The patch is an attempt to fix this. Signed-off-by: NAnatolij Gustschin <agust@denx.de>
-
- 04 1月, 2008 1 次提交
-
-
由 Rafal Jaworowski 提交于
The purpose of this routine is receiving a single network frame, outside of U-Boot's NetLoop(). Exporting it to standalone programs that run on top of U-Boot will let them utilise networking facilities. For sending a raw frame the already existing eth_send() can be used. The direct consumer of this routine is the newly introduced API layer for external applications (enabled with CONFIG_API). Signed-off-by: NRafal Jaworowski <raj@semihalf.com> Signed-off-by: NPiotr Kruszynski <ppk@semihalf.com> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 14 8月, 2007 2 次提交
-
-
由 David Updegraff 提交于
Implemented IETF RFC2090, Multicast TFTP. Initial implementation on Realtek RTL8139 and Freescale TSEC. Signed-off-by: NDavid Updegraff <dave@cray.com> Signed-off-by: NBen Warren <bwarren@qstreams.com>
-
由 Mike Rapoport 提交于
Signed-off-by: NMike Rapoport <mike@compulab.co.il> Signed-off-by: NBen Warren <bwarren@qstreams.com>
-
- 10 7月, 2007 2 次提交
-
-
由 Jon Loeliger 提交于
All of the choices for CONFIG_BOOTP_ are now documented in the README file. You must now individually select exactly the set that you want using a series of #define CONFIG_BOOTP_<x> statements in the board port config files now. Signed-off-by: NJon Loeliger <jdl@freescale.com>
-
由 Jon Loeliger 提交于
Mostly removed from comments here. Signed-off-by: NJon Loeliger <jdl@freescale.com>
-
- 04 7月, 2007 1 次提交
-
-
由 Jon Loeliger 提交于
This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: NJon Loeliger <jdl@freescale.com>
-
- 29 10月, 2005 1 次提交
-
-
由 Marian Balakowicz 提交于
-
- 13 10月, 2005 1 次提交
-
-
由 Wolfgang Denk 提交于
-