kaweth.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) kaweth.c (2674e7ea22ba0e22a2d1603bd51e0b8f6442a267)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/****************************************************************
3 *
4 * kaweth.c - driver for KL5KUSB101 based USB->Ethernet
5 *
6 * (c) 2000 Interlan Communications
7 * (c) 2000 Stephane Alnet
8 * (C) 2001 Brad Hards

--- 1030 unchanged lines hidden (view full) ---

1039 kaweth->rx_buf = usb_alloc_coherent( kaweth->dev,
1040 KAWETH_BUF_SIZE,
1041 GFP_KERNEL,
1042 &kaweth->rxbufferhandle);
1043 if (!kaweth->rx_buf)
1044 goto err_all_but_rxbuf;
1045
1046 memcpy(netdev->broadcast, &bcast_addr, sizeof(bcast_addr));
1// SPDX-License-Identifier: GPL-2.0-or-later
2/****************************************************************
3 *
4 * kaweth.c - driver for KL5KUSB101 based USB->Ethernet
5 *
6 * (c) 2000 Interlan Communications
7 * (c) 2000 Stephane Alnet
8 * (C) 2001 Brad Hards

--- 1030 unchanged lines hidden (view full) ---

1039 kaweth->rx_buf = usb_alloc_coherent( kaweth->dev,
1040 KAWETH_BUF_SIZE,
1041 GFP_KERNEL,
1042 &kaweth->rxbufferhandle);
1043 if (!kaweth->rx_buf)
1044 goto err_all_but_rxbuf;
1045
1046 memcpy(netdev->broadcast, &bcast_addr, sizeof(bcast_addr));
1047 memcpy(netdev->dev_addr, &kaweth->configuration.hw_addr,
1048 sizeof(kaweth->configuration.hw_addr));
1047 eth_hw_addr_set(netdev, (u8 *)&kaweth->configuration.hw_addr);
1049
1050 netdev->netdev_ops = &kaweth_netdev_ops;
1051 netdev->watchdog_timeo = KAWETH_TX_TIMEOUT;
1052 netdev->mtu = le16_to_cpu(kaweth->configuration.segment_size);
1053 netdev->ethtool_ops = &ops;
1054
1055 /* kaweth is zeroed as part of alloc_netdev */
1056 INIT_DELAYED_WORK(&kaweth->lowmem_work, kaweth_resubmit_tl);

--- 60 unchanged lines hidden ---
1048
1049 netdev->netdev_ops = &kaweth_netdev_ops;
1050 netdev->watchdog_timeo = KAWETH_TX_TIMEOUT;
1051 netdev->mtu = le16_to_cpu(kaweth->configuration.segment_size);
1052 netdev->ethtool_ops = &ops;
1053
1054 /* kaweth is zeroed as part of alloc_netdev */
1055 INIT_DELAYED_WORK(&kaweth->lowmem_work, kaweth_resubmit_tl);

--- 60 unchanged lines hidden ---