summaryrefslogtreecommitdiff
path: root/drivers/net/e1000.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-19 09:33:39 -0600
committerJoe Hershberger <joe.hershberger@ni.com>2015-08-21 16:32:55 -0500
commit5c5e707a551458d3602d684ead28a97f18a4644f (patch)
tree860564d2c20cb6925ab4eeb2af3185e6a27c7125 /drivers/net/e1000.h
parentc752cd2a30517c3a8c0742d807ce5053b747baa8 (diff)
downloadu-boot-5c5e707a551458d3602d684ead28a97f18a4644f.tar.gz
u-boot-5c5e707a551458d3602d684ead28a97f18a4644f.tar.bz2
u-boot-5c5e707a551458d3602d684ead28a97f18a4644f.zip
net: e1000: Prepare for driver model conversion
Since struct eth_device does not exist with CONFIG_DM_ETH defined, avoid using it in the driver unless necessary. Most of the time it is better to pass the private driver pointer anyway. Also refactor the code so that code that the driver model implementation will share are available in functions that can be called. Add stubs where necessary. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Apalis T30 2GB on Apalis Evaluation Board
Diffstat (limited to 'drivers/net/e1000.h')
-rw-r--r--drivers/net/e1000.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/e1000.h b/drivers/net/e1000.h
index 989f01df7a..da04cabd91 100644
--- a/drivers/net/e1000.h
+++ b/drivers/net/e1000.h
@@ -1071,6 +1071,7 @@ typedef enum {
/* Structure containing variables used by the shared code (e1000_hw.c) */
struct e1000_hw {
+ const char *name;
struct list_head list_node;
struct eth_device *nic;
#ifdef CONFIG_E1000_SPI