diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-05-27 11:37:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-06-17 08:28:16 +0200 |
commit | 994f95c073caf4df62d1271aef4112ce8aaa8add (patch) | |
tree | c0167dbdedb5c3ebc68f374c3f3df7d0b0b8bfdb /include | |
parent | c21a7fb9f15ee1fb213e22c0e7a9d0f53b274cb2 (diff) | |
download | barebox-994f95c073caf4df62d1271aef4112ce8aaa8add.tar.gz barebox-994f95c073caf4df62d1271aef4112ce8aaa8add.tar.xz |
net: remove need for eth_halt/eth_open
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 7353c8f501..de78293840 100644 --- a/include/net.h +++ b/include/net.h @@ -57,6 +57,7 @@ struct device_d; struct eth_device { int iobase; int state; + int active; int (*init) (struct eth_device*); |