summaryrefslogtreecommitdiffstats
path: root/net/eth.c
Commit message (Collapse)AuthorAgeFilesLines
* add a device_d to ethernet devicesSascha Hauer2009-07-211-3/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Get rid of DEVICE_TYPE_ETHER usageSascha Hauer2009-07-211-1/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add eth_unregister functionSascha Hauer2009-04-071-0/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eth.c: Fix return valuesSascha Hauer2009-04-061-6/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* allow changing of network deviceSascha Hauer2009-04-061-1/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove unused variablefredo2008-12-181-2/+0
| | | | | Signed-off-by: Frederic RODO <fred.rodo@gmail.com>
* Ethernet: write MAC address to hardware when it's changedSascha Hauer2008-09-301-7/+5
| | | | | | | | | | Instead of writing the MAC address into the hardware on device open time write it to the hardware when the user changes the parameter. This way a user can change the MAC address in the hardware without actually using the device. This helps Linux Network drivers which expect a valid MAC address on startup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eth: check for valid parameters for ethaddr, ipaddr, ...Sascha Hauer2008-08-201-0/+32
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove unnessecary includeSascha Hauer2008-03-141-1/+0
|
* using a consistent ipaddr parameter all over the placeJuergen Beisert2007-11-081-1/+1
| | | | Signed-off-by: Juergen Beisert <jbe@octopus.labnet.pengutronix.de>
* change functions containing 'mac' or 'enet' in its name to 'ethaddr'.sascha2007-10-181-8/+8
| | | | change the parameter name for ethernet devices to 'ethaddr' aswell.
* remove debug printfSascha Hauer2007-07-111-2/+0
|
* svn_rev_580Sascha Hauer2007-07-051-2/+4
|
* svn_rev_519Sascha Hauer2007-07-051-0/+5
| | | | set enet addr
* svn_rev_469Sascha Hauer2007-07-051-5/+5
| | | | | - make some more char * const - dev_add_parameter -> dev_add_param
* svn_rev_394Sascha Hauer2007-07-051-40/+13
| | | | do not use global parameter set for all ethernet devices, this was broken
* svn_rev_370Sascha Hauer2007-07-051-0/+1
| | | | fixups for last commit
* svn_rev_369Sascha Hauer2007-07-051-1/+0
| | | | include asm-generic in errno.h instead of all other files
* svn_rev_323Sascha Hauer2007-07-051-2/+2
| | | | priv -> type_data, remove volatile
* svn_rev_260Sascha Hauer2007-07-051-1/+23
| | | | add set function for enetaddr
* svn_rev_227Sascha Hauer2007-07-051-52/+9
| | | | fix parameter handling
* svn_rev_196Sascha Hauer2007-07-051-51/+45
| | | | WIP
* svn_rev_121Sascha Hauer2007-07-051-1/+40
| | | | implement device parameters
* svn_rev_120Sascha Hauer2007-07-051-40/+22
| | | | implement initcalls
* svn_rev_108Sascha Hauer2007-07-051-389/+4
| | | | removed ifdefs, moved ping to own file, fix timeout handler
* svn_rev_095Sascha Hauer2007-07-051-52/+94
| | | | | | | | | | | | | | | | | | | | | | Currently U-Boot uses globally defined eth_* functions. This is horribly unflexible. This patch replaces the global functions with pointers from structs. We could also use CONFIG_NET_MULTI, but this has other implications, though we should merge this some day. Also, U-Boot has no unique way to handle MAC addresses. Each and every board and network driver uses it's own mechanism to set the MAC address. There are several problems which I've for too often. For example everything goes well if we boot from network, but when we boot from flash U-Boot forgets to set the MAC address and the linux network driver has none. This patch adds [gs]et_mac_address to the eth_device struct and handles it as follows: - First try to get a valid MAC address from the EEPROM and set 'ethaddr' accordingly. - If no valid MAC address is found in the EEPROM (or no EEPROM is connected), we set the devices MAC address from 'ethaddr' This is done in eth_initialize which is called on startup for every board.
* Merge with http://opensource.freescale.com/pub/scm/u-boot-83xx.gitWolfgang Denk2006-11-301-0/+7
|\
| * mpc83xx: add QE ethernet supportDave Liu2006-11-031-0/+7
| | | | | | | | this patch adds support for the QUICC Engine based UCC gigabit ethernet device.
* | [PATCH] Add support for Prodrive P3M750 & P3M7448 (P3Mx) boardsStefan Roese2006-11-291-5/+2
|/ | | | | | | | | This patch adds support for the Prodrive P3M750 (PPC750 & MV64460) and the P3M7448 (MPC7448 & MV64460) PMC modules. Both modules are quite similar and share the same board directory "prodrive/p3mx" and the same config file "p3mx.h". Signed-off-by: Stefan Roese <sr@denx.de>
* Merge branch 'master' of http://www.denx.de/git/u-bootJon Loeliger2006-06-071-0/+4
|\
| * * Update Intel IXP4xx supportWolfgang Denk2006-05-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | - Add IXP4xx NPE ethernet MAC support - Add support for Intel IXDPG425 board - Add support for Prodrive PDNB3 board - Add IRQ support Patch by Stefan Roese, 23 May 2006 [This patch does not include cpu/ixp/npe/IxNpeMicrocode.c which still sufferes from licensing issues. Blame Intel.]
* | Initial support for MPC8641 HPCN board.Jon Loeliger2006-04-261-0/+16
|/
* Merge with /home/sr/git/u-bootWolfgang Denk2005-12-011-3/+3
|\
| * Add support for TQM8541/8555 boards, TQM85xx support reworked:Stefan Roese2005-11-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Support for TQM8541/8555 boards added. - Complete rework of TQM8540/8560 support. - Common TQM85xx code now supports all current TQM85xx platforms (TQM8540/8541/8555/8560). - DDR SDRAM size detection added. - CAS latency default values can be overwritten by setting "serial#" to e.g. "ABC0001 casl=25" -> CAS latency 2.5 will be used. If problems are detected with this non default CAS latency, the defualt values will be used instead. - FLASH size detection added. - Moved FCC ethernet driver initialization behind TSEC driver init -> TSEC is first device. Patch by Stefan Roese, 30 Nov 2005
* | Fix miiphy global data initialization (problem on 4xx boards when noMarian Balakowicz2005-11-301-0/+9
|/ | | | | | | ethaddr is assigned). Initialization moved from miiphy_register() to eth_initialize(). Based on initial patch for 4xx platform by Matthias Fuchs.
* Add support for multiple PHYs.Marian Balakowicz2005-10-281-0/+44
|
* Cleanup for GCC-4.xWolfgang Denk2005-10-131-1/+1
|
* Add support for AP1000 board.Wolfgang Denk2005-10-091-1/+1
| | | | Patch by James MacAulay, 07 Oct 2005
* Fix typo in eth.cWolfgang Denk2005-09-251-3/+3
| | | | Patch by Ara Avanesyan, 24 Feb 2005
* Merged 405gp_enet.c and 440gx_enet.c to generic 4xx_enet.cStefan Roese2005-08-161-6/+1
| | | | | now handling all 4xx cpu's. Patch by Stefan Roese, 16 Aug 2005
* * Patch by Eran LibertyEran Liberty2005-07-281-0/+8
| | | | Add support for the Freescale MPC8349ADS board.
* * Patch by Jon Loeliger, 2005-05-05Jon Loeliger2005-07-251-4/+11
| | | | | | | | Implemented support for MPC8548CDS board. Added DDR II support based on SPD values for MPC85xx boards. This roll-up patch also includes bugfies for the previously published patches: DDRII CPO, pre eTSEC, 8548 LBIU, Andy's TSEC, eTSEC 3&4 I/O
* Add PCI support for Sorcery board.wdenk2005-05-161-1/+1
| | | | Code cleanup (especially Sorcery / Alaska / Yukon serial driver).
* CPCI750 board support addedstroese2004-12-161-0/+3
|
* Patch by TsiChung Liew, 23 Sep 2004:wdenk2004-10-281-0/+4
| | | | | - add support for MPC8220 CPU - Add support for Alaska and Yukon boards
* Patch by Jon Loeliger, 17 June 2004:wdenk2004-07-091-3/+9
| | | | | | | | Completion of the 8540ADS/8560ADS updates: Fix some PCI and Rapid I/O memory maps, Initialize both TSEC 1 and 2, Initialize SDRAM Update MAINTAINER for 85xx boards and README.mpc85xxads
* Change init sequence for multiple network interfaces: initializewdenk2004-05-081-26/+26
| | | | on-chip interfaces before external cards.
* * Patch by Sangmoon Kim, 12 Apr 2004:wdenk2004-04-181-0/+4
| | | | | | | | | | Update max RAM size for debris board * Patch by Travis Sawyer, 08 Apr 2004: Add TLB entry for second DIMM slot on ocotea * Patch by Masami Komiya, 08 Apr 2004: add RTL8169 network driver
* Patches by Pantelis Antoniou, 30 Mar 2004:wdenk2004-04-151-0/+50
| | | | add networking support for VLANs (802.1q), and CDP (Cisco Discovery Protocol)
* * Patch by Masami Komiy, 22 Feb 2004:wdenk2004-02-241-1/+1
| | | | | | Add support for NFS for file download * Minor code cleanup