Commit 7af60616 authored by Russell King's avatar Russell King

[ARM] Net: add macro to access driver specific netdev data.

Signed-off-by: default avatarRussell King <rmk@arm.linux.org.uk>
parent 38a45f47
This diff is collapsed.
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#define NET_DEBUG 0 #define NET_DEBUG 0
#endif #endif
#define priv(dev) ((struct ether1_priv *)netdev_priv(dev))
/* Page register */ /* Page register */
#define REG_PAGE (dev->base_addr + 0x00) #define REG_PAGE (dev->base_addr + 0x00)
......
This diff is collapsed.
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#define NET_DEBUG 0 #define NET_DEBUG 0
#endif #endif
#define priv(dev) ((struct dev_priv *)netdev_priv(dev))
/* Command register definitions & bits */ /* Command register definitions & bits */
#define REG_COMMAND (dev->base_addr + 0x00) #define REG_COMMAND (dev->base_addr + 0x00)
#define CMD_ENINTDMA 0x0001 #define CMD_ENINTDMA 0x0001
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment