devices/e100-2.6.26-ethercat.c
changeset 1274 d5ddf04c76fc
parent 1251 3c3f8cb76748
child 1276 c4fafee8043a
equal deleted inserted replaced
1273:a73fdcfa8274 1274:d5ddf04c76fc
  3013 static pci_ers_result_t e100_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state)
  3013 static pci_ers_result_t e100_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state)
  3014 {
  3014 {
  3015 	struct net_device *netdev = pci_get_drvdata(pdev);
  3015 	struct net_device *netdev = pci_get_drvdata(pdev);
  3016 	struct nic *nic = netdev_priv(netdev);
  3016 	struct nic *nic = netdev_priv(netdev);
  3017 
  3017 
  3018     /* Similar to calling e100_down(), but avoids adapter I/O. */
  3018 	/* Similar to calling e100_down(), but avoids adapter I/O. */
  3019 	netdev->stop(netdev);
  3019 	netdev->stop(netdev);
  3020 
  3020 
  3021 	if (!nic->ecdev) {
  3021 	if (!nic->ecdev) {
  3022 		/* Detach; put netif into a state similar to hotplug unplug. */
  3022 		/* Detach; put netif into a state similar to hotplug unplug. */
  3023 		napi_enable(&nic->napi);
  3023 		napi_enable(&nic->napi);