Sascha Hauer
22b878d251
net: Pass eth_device to net_receive
...
So that barebox has the information which interface a packet
came from.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 08:15:21 +02:00
Alexander Shiyan
6a256321b8
Use new device_platform_driver() macro for drivers
...
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-02-13 09:23:28 +01:00
Jean-Christophe PLAGNIOL-VILLARD
3c5327e660
switch all platform_bus device/driver registering to platform_driver/device_register
...
now register_driver and register_device are for bus only usage.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-10-04 15:19:12 +02:00
Sascha Hauer
d1e65d2a7b
Merge branch 'for-next/remove-fsf-address'
...
Conflicts:
drivers/net/miidev.c
include/miidev.h
2012-10-03 21:12:48 +02:00
Jean-Christophe PLAGNIOL-VILLARD
660809446f
net/tap: use xzalloc to allocate data
...
this will ensure the data are set to 0 (list as example)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-09-20 08:50:59 +02:00
Sascha Hauer
77322aa896
Treewide: remove address of the Free Software Foundation
...
The FSF address has changed in the past. Instead of updating it
each time the address changes, just drop it completely treewide.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-09-17 10:57:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD
8b3bf5971a
tap: fix missing parent setting on eth_device
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-09-12 17:26:26 +02:00
Sascha Hauer
e609cbe1e5
net drivers: remove unused type_data
...
Many net drivers set dev->type_data without ever using it, so
just remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-25 15:16:26 +01:00
Krzysztof Halasa
c5baa0edc4
Fix error handling with malloc, memalign etc. Introduce xmemalign().
...
The idea is to panic() when there is no memory available for normal
operation. Exception: code which can consume arbitrary amount of RAM
(example: files allocated in ramfs) must report error instead of panic().
This patch also fixes code which didn't check for NULL from malloc() etc.
Usage: malloc(), memalign() return NULL when out of RAM.
xmalloc(), xmemalign() always return non-NULL or panic().
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 10:21:22 +01:00
Sascha Hauer
c70689d727
network drivers: call net_receive directly instead of NetReceive
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:25 +02:00
Sascha Hauer
a3ffa97f40
rename U-Boot-v2 project to barebox
...
This has been done with the following script:
find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \
-e 's/u2boot/barebox/g' \
-e 's/U2Boot/barebox/g' \
-e 's/U-boot V2/barebox/g' \
-e 's/u-boot v2/barebox/g' \
-e 's/U-Boot V2/barebox/g' \
-e 's/U-Boot-v2/barebox/g' \
-e 's/U_BOOT/BAREBOX/g' \
-e 's/UBOOT/BAREBOX/g' \
-e 's/uboot/barebox/g' \
-e 's/u-boot/barebox/g' \
-e 's/u_boot/barebox/g' \
-e 's/U-Boot/barebox/g' \
-e 's/U-boot/barebox/g' \
-e 's/U-BOOT/barebox/g'
find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \
xargs -0 -r rename 's/u[-_]?boot/barebox/'
It needs some manual fixup following in the next patch
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:18:30 +01:00
Jean-Christophe PLAGNIOL-VILLARD
b4521685bf
[SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:29 +02:00
Sascha Hauer
aaf77314d8
sandbox tap driver: initialize device name
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-12 14:15:23 +02:00
Sascha Hauer
2f8df2a003
add a device_d to ethernet devices
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer
6e921fcb3c
Get rid of DEVICE_TYPE_ETHER usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:45 +02:00
sascha
1b272d80f1
change functions containing 'mac' or 'enet' in its name to 'ethaddr'.
...
change the parameter name for ethernet devices to 'ethaddr' aswell.
2007-10-18 11:17:16 +02:00
Sascha Hauer
75a10b942c
svn_rev_706
...
add file headers
2007-07-05 18:02:19 +02:00
Sascha Hauer
a107b04b30
svn_rev_698
...
add dummy init function
2007-07-05 18:02:18 +02:00
Sascha Hauer
4f0d6f9b82
svn_rev_564
...
remove debug output
2007-07-05 18:02:05 +02:00
Sascha Hauer
a45e1af152
svn_rev_426
2007-07-05 18:01:52 +02:00
Sascha Hauer
4320cc59b5
svn_rev_376
...
remove unnecessary include
2007-07-05 18:01:48 +02:00
Sascha Hauer
1db57b0bfc
svn_rev_309
...
add tap driver for arch=linux
2007-07-05 18:01:42 +02:00