diff options
author | Christian Riesch <christian.riesch@omicron.at> | 2012-07-13 01:26:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-17 02:26:23 -0400 |
commit | 16626b0cc3d5afe250850f96759b241f8a403b52 (patch) | |
tree | 97cb3cc00d2cebc7d59d6a56d253538d08c8fb02 /drivers/net/usb/asix.h | |
parent | 607740bc1605395c96b09416cdcc5e77c8976eed (diff) |
asix: Add a new driver for the AX88172A
The Asix AX88172A is a USB 2.0 Ethernet interface that supports both an
internal PHY as well as an external PHY (connected via MII).
This patch adds a driver for the AX88172A and provides support for
both modes and the phylib.
Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/asix.h')
-rw-r--r-- | drivers/net/usb/asix.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/usb/asix.h b/drivers/net/usb/asix.h index 790af241f197..77d9e4c1e235 100644 --- a/drivers/net/usb/asix.h +++ b/drivers/net/usb/asix.h | |||
@@ -74,6 +74,10 @@ | |||
74 | #define AX_CMD_SW_PHY_STATUS 0x21 | 74 | #define AX_CMD_SW_PHY_STATUS 0x21 |
75 | #define AX_CMD_SW_PHY_SELECT 0x22 | 75 | #define AX_CMD_SW_PHY_SELECT 0x22 |
76 | 76 | ||
77 | #define AX_PHY_SELECT_MASK (BIT(3) | BIT(2)) | ||
78 | #define AX_PHY_SELECT_INTERNAL 0 | ||
79 | #define AX_PHY_SELECT_EXTERNAL BIT(2) | ||
80 | |||
77 | #define AX_MONITOR_MODE 0x01 | 81 | #define AX_MONITOR_MODE 0x01 |
78 | #define AX_MONITOR_LINK 0x02 | 82 | #define AX_MONITOR_LINK 0x02 |
79 | #define AX_MONITOR_MAGIC 0x04 | 83 | #define AX_MONITOR_MAGIC 0x04 |
@@ -181,6 +185,7 @@ struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb, | |||
181 | int asix_set_sw_mii(struct usbnet *dev); | 185 | int asix_set_sw_mii(struct usbnet *dev); |
182 | int asix_set_hw_mii(struct usbnet *dev); | 186 | int asix_set_hw_mii(struct usbnet *dev); |
183 | 187 | ||
188 | int asix_read_phy_addr(struct usbnet *dev, int internal); | ||
184 | int asix_get_phy_addr(struct usbnet *dev); | 189 | int asix_get_phy_addr(struct usbnet *dev); |
185 | 190 | ||
186 | int asix_sw_reset(struct usbnet *dev, u8 flags); | 191 | int asix_sw_reset(struct usbnet *dev, u8 flags); |