smsc95xx.c (c8f44affb7244f2ac3e703cab13d55ede27621bb) smsc95xx.c (d632eb1bf22e11def74e4e53cc47d790fbdba105)
1 /***************************************************************************
2 *
3 * Copyright (C) 2007-2008 SMSC
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.

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

511 if (intdata & INT_ENP_PHY_INT_)
512 usbnet_defer_kevent(dev, EVENT_LINK_RESET);
513 else
514 netdev_warn(dev->net, "unexpected interrupt, intdata=0x%08X\n",
515 intdata);
516}
517
518/* Enable or disable Tx & Rx checksum offload engines */
1 /***************************************************************************
2 *
3 * Copyright (C) 2007-2008 SMSC
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.

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

511 if (intdata & INT_ENP_PHY_INT_)
512 usbnet_defer_kevent(dev, EVENT_LINK_RESET);
513 else
514 netdev_warn(dev->net, "unexpected interrupt, intdata=0x%08X\n",
515 intdata);
516}
517
518/* Enable or disable Tx & Rx checksum offload engines */
519static int smsc95xx_set_features(struct net_device *netdev,
520 netdev_features_t features)
519static int smsc95xx_set_features(struct net_device *netdev, u32 features)
521{
522 struct usbnet *dev = netdev_priv(netdev);
523 u32 read_buf;
524 int ret;
525
526 ret = smsc95xx_read_reg(dev, COE_CR, &read_buf);
527 if (ret < 0) {
528 netdev_warn(dev->net, "Failed to read COE_CR: %d\n", ret);

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

1293 .name = "smsc95xx",
1294 .id_table = products,
1295 .probe = usbnet_probe,
1296 .suspend = usbnet_suspend,
1297 .resume = usbnet_resume,
1298 .disconnect = usbnet_disconnect,
1299};
1300
520{
521 struct usbnet *dev = netdev_priv(netdev);
522 u32 read_buf;
523 int ret;
524
525 ret = smsc95xx_read_reg(dev, COE_CR, &read_buf);
526 if (ret < 0) {
527 netdev_warn(dev->net, "Failed to read COE_CR: %d\n", ret);

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

1292 .name = "smsc95xx",
1293 .id_table = products,
1294 .probe = usbnet_probe,
1295 .suspend = usbnet_suspend,
1296 .resume = usbnet_resume,
1297 .disconnect = usbnet_disconnect,
1298};
1299
1301static int __init smsc95xx_init(void)
1302{
1303 return usb_register(&smsc95xx_driver);
1304}
1305module_init(smsc95xx_init);
1300module_usb_driver(smsc95xx_driver);
1306
1301
1307static void __exit smsc95xx_exit(void)
1308{
1309 usb_deregister(&smsc95xx_driver);
1310}
1311module_exit(smsc95xx_exit);
1312
1313MODULE_AUTHOR("Nancy Lin");
1314MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>");
1315MODULE_DESCRIPTION("SMSC95XX USB 2.0 Ethernet Devices");
1316MODULE_LICENSE("GPL");
1302MODULE_AUTHOR("Nancy Lin");
1303MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>");
1304MODULE_DESCRIPTION("SMSC95XX USB 2.0 Ethernet Devices");
1305MODULE_LICENSE("GPL");