e100: fix spelling errors
Signed-off-by: Andreas Mohr <andi@lisas.de> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b4ea895dd8
commit
0a0863af0d
1 changed files with 7 additions and 7 deletions
|
@ -94,7 +94,7 @@
|
||||||
* enabled. 82557 pads with 7Eh, while the later controllers pad
|
* enabled. 82557 pads with 7Eh, while the later controllers pad
|
||||||
* with 00h.
|
* with 00h.
|
||||||
*
|
*
|
||||||
* IV. Recieve
|
* IV. Receive
|
||||||
*
|
*
|
||||||
* The Receive Frame Area (RFA) comprises a ring of Receive Frame
|
* The Receive Frame Area (RFA) comprises a ring of Receive Frame
|
||||||
* Descriptors (RFD) + data buffer, thus forming the simplified mode
|
* Descriptors (RFD) + data buffer, thus forming the simplified mode
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
* and Rx indication and re-allocation happen in the same context,
|
* and Rx indication and re-allocation happen in the same context,
|
||||||
* therefore no locking is required. A software-generated interrupt
|
* therefore no locking is required. A software-generated interrupt
|
||||||
* is generated from the watchdog to recover from a failed allocation
|
* is generated from the watchdog to recover from a failed allocation
|
||||||
* senario where all Rx resources have been indicated and none re-
|
* scenario where all Rx resources have been indicated and none re-
|
||||||
* placed.
|
* placed.
|
||||||
*
|
*
|
||||||
* V. Miscellaneous
|
* V. Miscellaneous
|
||||||
|
@ -954,7 +954,7 @@ static void e100_get_defaults(struct nic *nic)
|
||||||
/* Quadwords to DMA into FIFO before starting frame transmit */
|
/* Quadwords to DMA into FIFO before starting frame transmit */
|
||||||
nic->tx_threshold = 0xE0;
|
nic->tx_threshold = 0xE0;
|
||||||
|
|
||||||
/* no interrupt for every tx completion, delay = 256us if not 557*/
|
/* no interrupt for every tx completion, delay = 256us if not 557 */
|
||||||
nic->tx_command = cpu_to_le16(cb_tx | cb_tx_sf |
|
nic->tx_command = cpu_to_le16(cb_tx | cb_tx_sf |
|
||||||
((nic->mac >= mac_82558_D101_A4) ? cb_cid : cb_i));
|
((nic->mac >= mac_82558_D101_A4) ? cb_cid : cb_i));
|
||||||
|
|
||||||
|
@ -1497,7 +1497,7 @@ static void e100_update_stats(struct nic *nic)
|
||||||
&s->complete;
|
&s->complete;
|
||||||
|
|
||||||
/* Device's stats reporting may take several microseconds to
|
/* Device's stats reporting may take several microseconds to
|
||||||
* complete, so where always waiting for results of the
|
* complete, so we're always waiting for results of the
|
||||||
* previous command. */
|
* previous command. */
|
||||||
|
|
||||||
if(*complete == cpu_to_le32(cuc_dump_reset_complete)) {
|
if(*complete == cpu_to_le32(cuc_dump_reset_complete)) {
|
||||||
|
@ -2858,17 +2858,17 @@ static void e100_shutdown(struct pci_dev *pdev)
|
||||||
/**
|
/**
|
||||||
* e100_io_error_detected - called when PCI error is detected.
|
* e100_io_error_detected - called when PCI error is detected.
|
||||||
* @pdev: Pointer to PCI device
|
* @pdev: Pointer to PCI device
|
||||||
* @state: The current pci conneection state
|
* @state: The current pci connection state
|
||||||
*/
|
*/
|
||||||
static pci_ers_result_t e100_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state)
|
static pci_ers_result_t e100_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state)
|
||||||
{
|
{
|
||||||
struct net_device *netdev = pci_get_drvdata(pdev);
|
struct net_device *netdev = pci_get_drvdata(pdev);
|
||||||
struct nic *nic = netdev_priv(netdev);
|
struct nic *nic = netdev_priv(netdev);
|
||||||
|
|
||||||
/* Similar to calling e100_down(), but avoids adpater I/O. */
|
/* Similar to calling e100_down(), but avoids adapter I/O. */
|
||||||
netdev->stop(netdev);
|
netdev->stop(netdev);
|
||||||
|
|
||||||
/* Detach; put netif into state similar to hotplug unplug. */
|
/* Detach; put netif into a state similar to hotplug unplug. */
|
||||||
napi_enable(&nic->napi);
|
napi_enable(&nic->napi);
|
||||||
netif_device_detach(netdev);
|
netif_device_detach(netdev);
|
||||||
pci_disable_device(pdev);
|
pci_disable_device(pdev);
|
||||||
|
|
Loading…
Reference in a new issue