summaryrefslogtreecommitdiffstats
path: root/net/eth.c
Commit message (Collapse)AuthorAgeFilesLines
* complete: eth typo fixJean-Christophe PLAGNIOL-VILLARD2012-05-021-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* complete: add eth interface complete supportJean-Christophe PLAGNIOL-VILLARD2012-04-301-0/+21
| | | | | | use it on ethact Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Use DEVICE_ID_DYNAMIC where applicableSascha Hauer2012-04-161-1/+1
| | | | | | | We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids, Use it where applicable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: eth: don't say that MAC comes from EEPROMWolfram Sang2012-04-051-1/+1
| | | | | | | Because it can also come in via other means. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: use container_of instead of dev->type_dataSascha Hauer2012-02-251-3/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fix eth device unregistrationSascha Hauer2012-02-141-1/+4
| | | | | | | | We register a device in eth_register, thus we have to unregister it in eth_unregister. Also, if the device we unregister is the current device, we have to set the current eth_device to NULL so that it isn't used anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: make the ethernet device a child of the hardware deviceSascha Hauer2011-08-151-0/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Add a possibility for boards to give network devices a MAC addressSascha Hauer2011-07-291-1/+58
| | | | | | | | | MAC addresses are sometimes stored at unusual places. This patch makes it possible to give a MAC address to a ethernet device id. This is independent of the device actually being present. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eth: check the result of edev->get_ethaddrSascha Hauer2011-04-121-2/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: use dev_* for printing network related stuffSascha Hauer2011-03-031-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* network: initialize new net device id with -1Sascha Hauer2011-02-181-0/+1
| | | | | | | This autoassigns a id to network devices and makes multiple network devices work again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fix printf compiler warningsSascha Hauer2011-01-071-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* LED: Add LED trigger supportSascha Hauer2010-12-201-1/+7
| | | | | | | This patch allows to associate LEDs with certain triggers, such as heartbeat or network activity. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eth: fix 'warning: No MAC address set' when using EEPROM MACBaruch Siach2010-12-161-1/+3
| | | | | | | | | | When retrieving the MAC address from EEPROM, we must notify the networking core at eth registration time. Otherwise we get the 'No MAC address set' warning on the first network access, and the MAC address is set to a random value instead of the real one. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: rework the mii supportJean-Christophe PLAGNIOL-VILLARD2010-08-271-1/+1
| | | | | | | this rework is done in order to add a phylib and allow to have phy driver support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rework device parametersSascha Hauer2010-06-171-34/+14
| | | | | | | | Change device parameters so that the memory management is in generic code. This also removes the need of storing statically initialized parameters as they are stored in a struct list_head for each device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove need for eth_halt/eth_openSascha Hauer2010-06-171-20/+36
| | | | | | | | | | | We used to eth_open/eth_halt the network devices during NetLoopInit which is called whenever the user enters a network command. Change this behaviour so that the current network device gets opened when making it the current one. With this change it's always possible to send packages and we are able to implement a new network stack in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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
|\