aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic_ethtool.c
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-02-24 19:39:03 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-24 19:39:03 -0500
commitdbf64b10fa5b339d8b6e949f97c0d00750b08ca8 (patch)
treef3fe30e3d5f52d5a600ef10100e2de1670b54f86 /drivers/net/netxen/netxen_nic_ethtool.c
parent4da129421f898147235a3e6b40234d789df208b7 (diff)
netxen: cleanup unused code
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_ethtool.c')
-rw-r--r--drivers/net/netxen/netxen_nic_ethtool.c75
1 files changed, 0 insertions, 75 deletions
diff --git a/drivers/net/netxen/netxen_nic_ethtool.c b/drivers/net/netxen/netxen_nic_ethtool.c
index 0012b3172f90..87803f1b2fa8 100644
--- a/drivers/net/netxen/netxen_nic_ethtool.c
+++ b/drivers/net/netxen/netxen_nic_ethtool.c
@@ -473,78 +473,6 @@ netxen_nic_get_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom,
473 return 0; 473 return 0;
474} 474}
475 475
476#if 0
477static int
478netxen_nic_set_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom,
479 u8 * bytes)
480{
481 struct netxen_adapter *adapter = netdev_priv(dev);
482 int offset = eeprom->offset;
483 static int flash_start;
484 static int ready_to_flash;
485 int ret;
486
487 if (flash_start == 0) {
488 netxen_halt_pegs(adapter);
489 ret = netxen_flash_unlock(adapter);
490 if (ret < 0) {
491 printk(KERN_ERR "%s: Flash unlock failed.\n",
492 netxen_nic_driver_name);
493 return ret;
494 }
495 printk(KERN_INFO "%s: flash unlocked. \n",
496 netxen_nic_driver_name);
497 ret = netxen_flash_erase_secondary(adapter);
498 if (ret != FLASH_SUCCESS) {
499 printk(KERN_ERR "%s: Flash erase failed.\n",
500 netxen_nic_driver_name);
501 return ret;
502 }
503 printk(KERN_INFO "%s: secondary flash erased successfully.\n",
504 netxen_nic_driver_name);
505 flash_start = 1;
506 return 0;
507 }
508
509 if (offset == NETXEN_BOOTLD_START) {
510 ret = netxen_flash_erase_primary(adapter);
511 if (ret != FLASH_SUCCESS) {
512 printk(KERN_ERR "%s: Flash erase failed.\n",
513 netxen_nic_driver_name);
514 return ret;
515 }
516
517 ret = netxen_rom_se(adapter, NETXEN_USER_START);
518 if (ret != FLASH_SUCCESS)
519 return ret;
520 ret = netxen_rom_se(adapter, NETXEN_FIXED_START);
521 if (ret != FLASH_SUCCESS)
522 return ret;
523
524 printk(KERN_INFO "%s: primary flash erased successfully\n",
525 netxen_nic_driver_name);
526
527 ret = netxen_backup_crbinit(adapter);
528 if (ret != FLASH_SUCCESS) {
529 printk(KERN_ERR "%s: CRBinit backup failed.\n",
530 netxen_nic_driver_name);
531 return ret;
532 }
533 printk(KERN_INFO "%s: CRBinit backup done.\n",
534 netxen_nic_driver_name);
535 ready_to_flash = 1;
536 }
537
538 if (!ready_to_flash) {
539 printk(KERN_ERR "%s: Invalid write sequence, returning...\n",
540 netxen_nic_driver_name);
541 return -EINVAL;
542 }
543
544 return netxen_rom_fast_write_words(adapter, offset, bytes, eeprom->len);
545}
546#endif /* 0 */
547
548static void 476static void
549netxen_nic_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ring) 477netxen_nic_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ring)
550{ 478{
@@ -953,9 +881,6 @@ struct ethtool_ops netxen_nic_ethtool_ops = {
953 .get_link = ethtool_op_get_link, 881 .get_link = ethtool_op_get_link,
954 .get_eeprom_len = netxen_nic_get_eeprom_len, 882 .get_eeprom_len = netxen_nic_get_eeprom_len,
955 .get_eeprom = netxen_nic_get_eeprom, 883 .get_eeprom = netxen_nic_get_eeprom,
956#if 0
957 .set_eeprom = netxen_nic_set_eeprom,
958#endif
959 .get_ringparam = netxen_nic_get_ringparam, 884 .get_ringparam = netxen_nic_get_ringparam,
960 .get_pauseparam = netxen_nic_get_pauseparam, 885 .get_pauseparam = netxen_nic_get_pauseparam,
961 .set_pauseparam = netxen_nic_set_pauseparam, 886 .set_pauseparam = netxen_nic_set_pauseparam,