diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/net/cris | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/net/cris')
-rw-r--r-- | drivers/net/cris/eth_v10.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c index 021d69c5d9b..e66aceb57ce 100644 --- a/drivers/net/cris/eth_v10.c +++ b/drivers/net/cris/eth_v10.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <asm/io.h> /* CRIS_LED_* I/O functions */ | 35 | #include <asm/io.h> /* CRIS_LED_* I/O functions */ |
36 | #include <asm/irq.h> | 36 | #include <asm/irq.h> |
37 | #include <asm/dma.h> | 37 | #include <asm/dma.h> |
38 | #include <asm/system.h> | ||
38 | #include <asm/ethernet.h> | 39 | #include <asm/ethernet.h> |
39 | #include <asm/cache.h> | 40 | #include <asm/cache.h> |
40 | #include <arch/io_interface_mux.h> | 41 | #include <arch/io_interface_mux.h> |
@@ -260,7 +261,7 @@ static const struct net_device_ops e100_netdev_ops = { | |||
260 | .ndo_start_xmit = e100_send_packet, | 261 | .ndo_start_xmit = e100_send_packet, |
261 | .ndo_tx_timeout = e100_tx_timeout, | 262 | .ndo_tx_timeout = e100_tx_timeout, |
262 | .ndo_get_stats = e100_get_stats, | 263 | .ndo_get_stats = e100_get_stats, |
263 | .ndo_set_rx_mode = set_multicast_list, | 264 | .ndo_set_multicast_list = set_multicast_list, |
264 | .ndo_do_ioctl = e100_ioctl, | 265 | .ndo_do_ioctl = e100_ioctl, |
265 | .ndo_set_mac_address = e100_set_mac_address, | 266 | .ndo_set_mac_address = e100_set_mac_address, |
266 | .ndo_validate_addr = eth_validate_addr, | 267 | .ndo_validate_addr = eth_validate_addr, |
@@ -1008,7 +1009,7 @@ e100_send_mdio_bit(unsigned char bit) | |||
1008 | } | 1009 | } |
1009 | 1010 | ||
1010 | static unsigned char | 1011 | static unsigned char |
1011 | e100_receive_mdio_bit(void) | 1012 | e100_receive_mdio_bit() |
1012 | { | 1013 | { |
1013 | unsigned char bit; | 1014 | unsigned char bit; |
1014 | *R_NETWORK_MGM_CTRL = 0; | 1015 | *R_NETWORK_MGM_CTRL = 0; |
@@ -1131,6 +1132,7 @@ static irqreturn_t | |||
1131 | e100rxtx_interrupt(int irq, void *dev_id) | 1132 | e100rxtx_interrupt(int irq, void *dev_id) |
1132 | { | 1133 | { |
1133 | struct net_device *dev = (struct net_device *)dev_id; | 1134 | struct net_device *dev = (struct net_device *)dev_id; |
1135 | struct net_local *np = netdev_priv(dev); | ||
1134 | unsigned long irqbits; | 1136 | unsigned long irqbits; |
1135 | 1137 | ||
1136 | /* | 1138 | /* |
@@ -1712,7 +1714,7 @@ e100_set_network_leds(int active) | |||
1712 | static void | 1714 | static void |
1713 | e100_netpoll(struct net_device* netdev) | 1715 | e100_netpoll(struct net_device* netdev) |
1714 | { | 1716 | { |
1715 | e100rxtx_interrupt(NETWORK_DMA_TX_IRQ_NBR, netdev); | 1717 | e100rxtx_interrupt(NETWORK_DMA_TX_IRQ_NBR, netdev, NULL); |
1716 | } | 1718 | } |
1717 | #endif | 1719 | #endif |
1718 | 1720 | ||