devices/e100-2.6.37-ethercat.c
branchstable-1.5
changeset 2378 ca345abf0565
parent 2232 6c5ca9444533
child 2421 bc2d4bf9cbe5
child 2589 2b9c78543663
equal deleted inserted replaced
2377:aa0f6f939cb3 2378:ca345abf0565
  2711 static void e100_diag_test(struct net_device *netdev,
  2711 static void e100_diag_test(struct net_device *netdev,
  2712 	struct ethtool_test *test, u64 *data)
  2712 	struct ethtool_test *test, u64 *data)
  2713 {
  2713 {
  2714 	struct ethtool_cmd cmd;
  2714 	struct ethtool_cmd cmd;
  2715 	struct nic *nic = netdev_priv(netdev);
  2715 	struct nic *nic = netdev_priv(netdev);
  2716 	int i, err;
  2716 	int i, err __attribute__ ((unused));
  2717 
  2717 
  2718 	memset(data, 0, E100_TEST_LEN * sizeof(u64));
  2718 	memset(data, 0, E100_TEST_LEN * sizeof(u64));
  2719 	data[0] = !mii_link_ok(&nic->mii);
  2719 	data[0] = !mii_link_ok(&nic->mii);
  2720 	data[1] = e100_eeprom_load(nic);
  2720 	data[1] = e100_eeprom_load(nic);
  2721 	if (test->flags & ETH_TEST_FL_OFFLINE) {
  2721 	if (test->flags & ETH_TEST_FL_OFFLINE) {