u-boot-brain/drivers/net
Simon Glass 709ea543b9 stdio: Pass device pointer to stdio methods
At present stdio device functions do not get any clue as to which stdio
device is being acted on. Some implementations go to great lengths to work
around this, such as defining a whole separate set of functions for each
possible device.

For driver model we need to associate a stdio_dev with a device. It doesn't
seem possible to continue with this work-around approach.

Instead, add a stdio_dev pointer to each of the stdio member functions.

Note: The serial drivers have the same problem, but it is not strictly
necessary to fix that to get driver model running. Also, if we convert
serial over to driver model the problem will go away.

Code size increases by 244 bytes for Thumb2 and 428 for PowerPC.

22: stdio: Pass device pointer to stdio methods
       arm: (for 2/2 boards)  all +244.0  bss -4.0  text +248.0
   powerpc: (for 1/1 boards)  all +428.0  text +428.0

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
2014-07-23 14:07:23 +01:00
..
fm powerpc/85xx: add T4080 SoC support 2014-05-13 08:26:54 -07:00
fsl_mc armv8/fsl-lsch3: Add support to load and start MC Firmware 2014-07-03 08:40:58 +02:00
phy phy: fix create_phy_by_mask for when its given an actual search mask 2014-06-05 14:44:56 -04:00
4xx_enet.c SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
8390.h drivers/net : move net drivers to drivers/net 2007-11-25 18:35:17 +01:00
altera_tse.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
altera_tse.h miiphy: convert to linux/mii.h 2011-01-09 18:06:50 +01:00
armada100_fec.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
armada100_fec.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
at91_emac.c net: remove unused CONFIG_AT91_LEGACY 2013-11-13 22:13:32 +01:00
ax88180.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
ax88180.h AX88180: use standard I/O accessors 2010-07-12 00:14:29 -07:00
ax88796.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ax88796.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
bfin_mac.c blackfin: Add <asm/clock.h> to numerous drivers 2014-02-20 12:00:27 -05:00
bfin_mac.h net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
calxedaxgmac.c Merge branch 'u-boot/master' into u-boot-arm/master 2013-07-25 17:57:46 +02:00
cpsw.c drivers: net: cpsw: init phy with gigabit features 2014-03-12 16:22:12 -04:00
cs8900.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cs8900.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
davinci_emac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
davinci_emac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
dc2114x.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
designware.c net/designware: Make DMA burst length configurable and reduce by default 2014-05-25 17:23:58 +02:00
designware.h net/designware: Make DMA burst length configurable and reduce by default 2014-05-25 17:23:58 +02:00
dm9000x.c net: rename and refactor eth_rand_ethaddr() function 2014-05-12 15:19:46 -04:00
dm9000x.h dm9000 remove dead external phy support, gpio fix 2008-08-26 23:08:19 -07:00
dnet.c drivers/net/dnet.c: Fix compile warning 2012-05-22 10:18:15 -05:00
dnet.h dnet: driver for Dave DNET ethernet controller 2009-02-10 00:16:27 +01:00
e1000_spi.c Consolidate bool type 2013-04-01 16:33:52 -04:00
e1000.c e1000: remove redundant assignment 2014-04-18 16:14:10 -04:00
e1000.h drivers/net/e1000: Introduce CONFIG_E1000_NO_NVM 2013-11-22 17:03:19 -06:00
eepro100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
enc28j60.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
enc28j60.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ep93xx_eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ep93xx_eth.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ethoc.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
fec_mxc.c NET: fec_mxc: fix MDIO clock prescaler calculation 2014-02-11 11:33:45 +01:00
fec_mxc.h net: fec_mxc: Add support for mx6 solo-lite 2013-09-20 17:55:36 +02:00
fsl_mcdmafec.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
fsl_mdio.c net: fsl_mdio: Fix warnings for __iomem pointers 2013-11-22 17:03:15 -06:00
ftgmac100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftgmac100.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac100.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac110.c net: rename and refactor eth_rand_ethaddr() function 2014-05-12 15:19:46 -04:00
ftmac110.h net: ftmac110: Update tx/rx descriptor format 2013-08-19 12:34:21 -05:00
greth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
greth.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
keystone_net.c keystone2: net: add keystone ethernet driver 2014-04-17 17:24:39 -04:00
ks8695eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ks8851_mll.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ks8851_mll.h net: ks8851_mll: add ethernet support 2013-06-24 19:11:14 -05:00
lan91c96.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
lan91c96.h arm: remove lubbock board support 2014-04-18 10:42:30 -04:00
macb.c net: macb: enable dcache in macb 2014-06-14 18:07:01 +02:00
macb.h net: macb: get DMA bus width from design config register 2013-11-04 20:32:31 +01:00
Makefile armv8/fsl-lsch3: Add support to load and start MC Firmware 2014-07-03 08:40:58 +02:00
mcffec.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
mcfmii.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
mpc5xxx_fec.c ppc: Move mpc5xxx clocks to arch_global_data 2013-02-04 09:05:43 -05:00
mpc5xxx_fec.h Move MPC5xxx_FEC driver to drivers/net 2008-08-29 13:58:07 -06:00
mpc512x_fec.c ppc: Move mpc512x clocks to arch_global_data 2013-02-04 09:05:43 -05:00
mpc512x_fec.h MPC512x: remove include/mpc512x.h 2009-06-12 20:47:16 +02:00
mvgbe.c NET: mvgbe: avoid unused variable warning when used without phylib support 2013-11-22 16:50:34 -06:00
mvgbe.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
natsemi.c drivers/net/natsemi.c: Fix compile warning 2012-05-22 13:41:47 -05:00
ne2000_base.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
ne2000_base.h Consolidate bool type 2013-04-01 16:33:52 -04:00
ne2000.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
ne2000.h NE2000: Fix regresssion introduced by e710185aae on non AX88796 2008-04-28 22:26:36 -07:00
netconsole.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
ns8382x.c drivers/net/ns8382x.c: Fix compile warning 2012-05-22 13:41:47 -05:00
pcnet.c pcnet: force ordering of descriptor accesses 2014-04-18 10:42:30 -04:00
plb2800_eth.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
rtl8139.c net: Fix mcast function pointer prototype 2013-11-22 16:57:13 -06:00
rtl8169.c net: rtl8169: Add support for RTL8168d/8111d 2013-11-22 17:03:21 -06:00
sh_eth.c net: sh-eth: Fix coding style 2014-06-10 17:05:03 +09:00
sh_eth.h net: sh-eth: Fix typo from rESR_RTLF to EESR_RTLF 2014-06-10 17:05:03 +09:00
smc911x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc911x.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc91111.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc91111.h SMC91111: Fix compilation warnings 2014-02-21 11:33:18 -05:00
sunxi_wemac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
tsec.c net: tsec: Fix mac addr setup portability, cleanup 2013-11-22 17:03:17 -06:00
tsi108_eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
uli526x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
vsc7385.c drivers/net/: sparse fixes 2012-11-04 11:00:36 -07:00
xilinx_axi_emac.c net: axi_emac: Check if phy was correctly detected 2014-02-04 16:42:45 +01:00
xilinx_emaclite.c net: emaclite: Fix OF initialization 2014-03-04 09:27:32 -05:00
xilinx_ll_temac_fifo.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_fifo.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_mdio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_mdio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_sdma.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_sdma.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
zynq_gem.c net: zynq: Fix sparse warnings in gem 2014-05-06 13:41:55 +02:00