diff options
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r-- | drivers/net/wimax/i2400m/fw.c | 12 | ||||
-rw-r--r-- | drivers/net/wimax/i2400m/i2400m.h | 16 | ||||
-rw-r--r-- | drivers/net/wimax/i2400m/netdev.c | 16 | ||||
-rw-r--r-- | drivers/net/wimax/i2400m/sdio.c | 16 | ||||
-rw-r--r-- | drivers/net/wimax/i2400m/usb.c | 16 |
5 files changed, 40 insertions, 36 deletions
diff --git a/drivers/net/wimax/i2400m/fw.c b/drivers/net/wimax/i2400m/fw.c index 1d8271f34c3..ecd0cfaefdc 100644 --- a/drivers/net/wimax/i2400m/fw.c +++ b/drivers/net/wimax/i2400m/fw.c | |||
@@ -140,10 +140,10 @@ | |||
140 | 140 | ||
141 | 141 | ||
142 | static const __le32 i2400m_ACK_BARKER[4] = { | 142 | static const __le32 i2400m_ACK_BARKER[4] = { |
143 | __constant_cpu_to_le32(I2400M_ACK_BARKER), | 143 | cpu_to_le32(I2400M_ACK_BARKER), |
144 | __constant_cpu_to_le32(I2400M_ACK_BARKER), | 144 | cpu_to_le32(I2400M_ACK_BARKER), |
145 | __constant_cpu_to_le32(I2400M_ACK_BARKER), | 145 | cpu_to_le32(I2400M_ACK_BARKER), |
146 | __constant_cpu_to_le32(I2400M_ACK_BARKER) | 146 | cpu_to_le32(I2400M_ACK_BARKER) |
147 | }; | 147 | }; |
148 | 148 | ||
149 | 149 | ||
@@ -771,8 +771,8 @@ static | |||
771 | int i2400m_dnload_init_nonsigned(struct i2400m *i2400m) | 771 | int i2400m_dnload_init_nonsigned(struct i2400m *i2400m) |
772 | { | 772 | { |
773 | #define POKE(a, d) { \ | 773 | #define POKE(a, d) { \ |
774 | .address = __constant_cpu_to_le32(a), \ | 774 | .address = cpu_to_le32(a), \ |
775 | .data = __constant_cpu_to_le32(d) \ | 775 | .data = cpu_to_le32(d) \ |
776 | } | 776 | } |
777 | static const struct { | 777 | static const struct { |
778 | __le32 address; | 778 | __le32 address; |
diff --git a/drivers/net/wimax/i2400m/i2400m.h b/drivers/net/wimax/i2400m/i2400m.h index 3b9d27ea295..f9e55397ee8 100644 --- a/drivers/net/wimax/i2400m/i2400m.h +++ b/drivers/net/wimax/i2400m/i2400m.h | |||
@@ -664,17 +664,17 @@ extern struct i2400m_msg_hdr *i2400m_tx_msg_get(struct i2400m *, size_t *); | |||
664 | extern void i2400m_tx_msg_sent(struct i2400m *); | 664 | extern void i2400m_tx_msg_sent(struct i2400m *); |
665 | 665 | ||
666 | static const __le32 i2400m_NBOOT_BARKER[4] = { | 666 | static const __le32 i2400m_NBOOT_BARKER[4] = { |
667 | __constant_cpu_to_le32(I2400M_NBOOT_BARKER), | 667 | cpu_to_le32(I2400M_NBOOT_BARKER), |
668 | __constant_cpu_to_le32(I2400M_NBOOT_BARKER), | 668 | cpu_to_le32(I2400M_NBOOT_BARKER), |
669 | __constant_cpu_to_le32(I2400M_NBOOT_BARKER), | 669 | cpu_to_le32(I2400M_NBOOT_BARKER), |
670 | __constant_cpu_to_le32(I2400M_NBOOT_BARKER) | 670 | cpu_to_le32(I2400M_NBOOT_BARKER) |
671 | }; | 671 | }; |
672 | 672 | ||
673 | static const __le32 i2400m_SBOOT_BARKER[4] = { | 673 | static const __le32 i2400m_SBOOT_BARKER[4] = { |
674 | __constant_cpu_to_le32(I2400M_SBOOT_BARKER), | 674 | cpu_to_le32(I2400M_SBOOT_BARKER), |
675 | __constant_cpu_to_le32(I2400M_SBOOT_BARKER), | 675 | cpu_to_le32(I2400M_SBOOT_BARKER), |
676 | __constant_cpu_to_le32(I2400M_SBOOT_BARKER), | 676 | cpu_to_le32(I2400M_SBOOT_BARKER), |
677 | __constant_cpu_to_le32(I2400M_SBOOT_BARKER) | 677 | cpu_to_le32(I2400M_SBOOT_BARKER) |
678 | }; | 678 | }; |
679 | 679 | ||
680 | 680 | ||
diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c index 63fe708e8a3..be8be4d0709 100644 --- a/drivers/net/wimax/i2400m/netdev.c +++ b/drivers/net/wimax/i2400m/netdev.c | |||
@@ -419,7 +419,7 @@ void i2400m_rx_fake_eth_header(struct net_device *net_dev, | |||
419 | 419 | ||
420 | memcpy(eth_hdr->h_dest, net_dev->dev_addr, sizeof(eth_hdr->h_dest)); | 420 | memcpy(eth_hdr->h_dest, net_dev->dev_addr, sizeof(eth_hdr->h_dest)); |
421 | memset(eth_hdr->h_source, 0, sizeof(eth_hdr->h_dest)); | 421 | memset(eth_hdr->h_source, 0, sizeof(eth_hdr->h_dest)); |
422 | eth_hdr->h_proto = __constant_cpu_to_be16(ETH_P_IP); | 422 | eth_hdr->h_proto = cpu_to_be16(ETH_P_IP); |
423 | } | 423 | } |
424 | 424 | ||
425 | 425 | ||
@@ -493,6 +493,14 @@ error_skb_realloc: | |||
493 | i2400m, buf, buf_len); | 493 | i2400m, buf, buf_len); |
494 | } | 494 | } |
495 | 495 | ||
496 | static const struct net_device_ops i2400m_netdev_ops = { | ||
497 | .ndo_open = i2400m_open, | ||
498 | .ndo_stop = i2400m_stop, | ||
499 | .ndo_start_xmit = i2400m_hard_start_xmit, | ||
500 | .ndo_tx_timeout = i2400m_tx_timeout, | ||
501 | .ndo_change_mtu = i2400m_change_mtu, | ||
502 | }; | ||
503 | |||
496 | 504 | ||
497 | /** | 505 | /** |
498 | * i2400m_netdev_setup - Setup setup @net_dev's i2400m private data | 506 | * i2400m_netdev_setup - Setup setup @net_dev's i2400m private data |
@@ -513,11 +521,7 @@ void i2400m_netdev_setup(struct net_device *net_dev) | |||
513 | & (~IFF_BROADCAST /* i2400m is P2P */ | 521 | & (~IFF_BROADCAST /* i2400m is P2P */ |
514 | & ~IFF_MULTICAST); | 522 | & ~IFF_MULTICAST); |
515 | net_dev->watchdog_timeo = I2400M_TX_TIMEOUT; | 523 | net_dev->watchdog_timeo = I2400M_TX_TIMEOUT; |
516 | net_dev->open = i2400m_open; | 524 | net_dev->netdev_ops = &i2400m_netdev_ops; |
517 | net_dev->stop = i2400m_stop; | ||
518 | net_dev->hard_start_xmit = i2400m_hard_start_xmit; | ||
519 | net_dev->change_mtu = i2400m_change_mtu; | ||
520 | net_dev->tx_timeout = i2400m_tx_timeout; | ||
521 | d_fnend(3, NULL, "(net_dev %p) = void\n", net_dev); | 525 | d_fnend(3, NULL, "(net_dev %p) = void\n", net_dev); |
522 | } | 526 | } |
523 | EXPORT_SYMBOL_GPL(i2400m_netdev_setup); | 527 | EXPORT_SYMBOL_GPL(i2400m_netdev_setup); |
diff --git a/drivers/net/wimax/i2400m/sdio.c b/drivers/net/wimax/i2400m/sdio.c index 1bfa283bbd8..123a5f8db6a 100644 --- a/drivers/net/wimax/i2400m/sdio.c +++ b/drivers/net/wimax/i2400m/sdio.c | |||
@@ -255,16 +255,16 @@ int i2400ms_bus_reset(struct i2400m *i2400m, enum i2400m_reset_type rt) | |||
255 | container_of(i2400m, struct i2400ms, i2400m); | 255 | container_of(i2400m, struct i2400ms, i2400m); |
256 | struct device *dev = i2400m_dev(i2400m); | 256 | struct device *dev = i2400m_dev(i2400m); |
257 | static const __le32 i2400m_WARM_BOOT_BARKER[4] = { | 257 | static const __le32 i2400m_WARM_BOOT_BARKER[4] = { |
258 | __constant_cpu_to_le32(I2400M_WARM_RESET_BARKER), | 258 | cpu_to_le32(I2400M_WARM_RESET_BARKER), |
259 | __constant_cpu_to_le32(I2400M_WARM_RESET_BARKER), | 259 | cpu_to_le32(I2400M_WARM_RESET_BARKER), |
260 | __constant_cpu_to_le32(I2400M_WARM_RESET_BARKER), | 260 | cpu_to_le32(I2400M_WARM_RESET_BARKER), |
261 | __constant_cpu_to_le32(I2400M_WARM_RESET_BARKER), | 261 | cpu_to_le32(I2400M_WARM_RESET_BARKER), |
262 | }; | 262 | }; |
263 | static const __le32 i2400m_COLD_BOOT_BARKER[4] = { | 263 | static const __le32 i2400m_COLD_BOOT_BARKER[4] = { |
264 | __constant_cpu_to_le32(I2400M_COLD_RESET_BARKER), | 264 | cpu_to_le32(I2400M_COLD_RESET_BARKER), |
265 | __constant_cpu_to_le32(I2400M_COLD_RESET_BARKER), | 265 | cpu_to_le32(I2400M_COLD_RESET_BARKER), |
266 | __constant_cpu_to_le32(I2400M_COLD_RESET_BARKER), | 266 | cpu_to_le32(I2400M_COLD_RESET_BARKER), |
267 | __constant_cpu_to_le32(I2400M_COLD_RESET_BARKER), | 267 | cpu_to_le32(I2400M_COLD_RESET_BARKER), |
268 | }; | 268 | }; |
269 | 269 | ||
270 | if (rt == I2400M_RT_WARM) | 270 | if (rt == I2400M_RT_WARM) |
diff --git a/drivers/net/wimax/i2400m/usb.c b/drivers/net/wimax/i2400m/usb.c index c6d93465c7e..7c28610da6f 100644 --- a/drivers/net/wimax/i2400m/usb.c +++ b/drivers/net/wimax/i2400m/usb.c | |||
@@ -211,16 +211,16 @@ int i2400mu_bus_reset(struct i2400m *i2400m, enum i2400m_reset_type rt) | |||
211 | container_of(i2400m, struct i2400mu, i2400m); | 211 | container_of(i2400m, struct i2400mu, i2400m); |
212 | struct device *dev = i2400m_dev(i2400m); | 212 | struct device *dev = i2400m_dev(i2400m); |
213 | static const __le32 i2400m_WARM_BOOT_BARKER[4] = { | 213 | static const __le32 i2400m_WARM_BOOT_BARKER[4] = { |
214 | __constant_cpu_to_le32(I2400M_WARM_RESET_BARKER), | 214 | cpu_to_le32(I2400M_WARM_RESET_BARKER), |
215 | __constant_cpu_to_le32(I2400M_WARM_RESET_BARKER), | 215 | cpu_to_le32(I2400M_WARM_RESET_BARKER), |
216 | __constant_cpu_to_le32(I2400M_WARM_RESET_BARKER), | 216 | cpu_to_le32(I2400M_WARM_RESET_BARKER), |
217 | __constant_cpu_to_le32(I2400M_WARM_RESET_BARKER), | 217 | cpu_to_le32(I2400M_WARM_RESET_BARKER), |
218 | }; | 218 | }; |
219 | static const __le32 i2400m_COLD_BOOT_BARKER[4] = { | 219 | static const __le32 i2400m_COLD_BOOT_BARKER[4] = { |
220 | __constant_cpu_to_le32(I2400M_COLD_RESET_BARKER), | 220 | cpu_to_le32(I2400M_COLD_RESET_BARKER), |
221 | __constant_cpu_to_le32(I2400M_COLD_RESET_BARKER), | 221 | cpu_to_le32(I2400M_COLD_RESET_BARKER), |
222 | __constant_cpu_to_le32(I2400M_COLD_RESET_BARKER), | 222 | cpu_to_le32(I2400M_COLD_RESET_BARKER), |
223 | __constant_cpu_to_le32(I2400M_COLD_RESET_BARKER), | 223 | cpu_to_le32(I2400M_COLD_RESET_BARKER), |
224 | }; | 224 | }; |
225 | 225 | ||
226 | d_fnstart(3, dev, "(i2400m %p rt %u)\n", i2400m, rt); | 226 | d_fnstart(3, dev, "(i2400m %p rt %u)\n", i2400m, rt); |