diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-02-02 05:58:01 -0800 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-02-05 12:47:23 +0800 |
commit | 81dab9af9230b24b395674afcbf96f43fec28ad2 (patch) | |
tree | e189105475b6e20388ab82be7181f66d5aedd2fa /drivers/net/e1000.h | |
parent | 6758a6ccc120dbdc0d1c05d38a5e00fcfdc59fd7 (diff) | |
download | u-boot-81dab9af9230b24b395674afcbf96f43fec28ad2.tar.gz |
net: e1000: Convert to use DM PCI API
Update this driver to use proper DM PCI APIs.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/net/e1000.h')
-rw-r--r-- | drivers/net/e1000.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/e1000.h b/drivers/net/e1000.h index e46edcd4e1..fcb7df0d83 100644 --- a/drivers/net/e1000.h +++ b/drivers/net/e1000.h @@ -1084,7 +1084,11 @@ struct e1000_hw { #endif unsigned int cardnum; +#ifdef CONFIG_DM_ETH + struct udevice *pdev; +#else pci_dev_t pdev; +#endif uint8_t *hw_addr; e1000_mac_type mac_type; e1000_phy_type phy_type; |