Lines 550-556
Link Here
|
550 |
|
550 |
|
551 |
u32 val1 = 0x76543210; |
551 |
u32 val1 = 0x76543210; |
552 |
u32 val2 = 0xFEDCBA98; |
552 |
u32 val2 = 0xFEDCBA98; |
553 |
|
|
|
554 |
/* Domain 0 check - all values should be DOA_DEBUG */ |
553 |
/* Domain 0 check - all values should be DOA_DEBUG */ |
555 |
for (address = IPW_REG_DOA_DEBUG_AREA_START; |
554 |
for (address = IPW_REG_DOA_DEBUG_AREA_START; |
556 |
address < IPW_REG_DOA_DEBUG_AREA_END; |
555 |
address < IPW_REG_DOA_DEBUG_AREA_END; |
Lines 6475-6481
Link Here
|
6475 |
pci_write_config_dword(pdev, 0x40, val & 0xffff00ff); |
6474 |
pci_write_config_dword(pdev, 0x40, val & 0xffff00ff); |
6476 |
|
6475 |
|
6477 |
pci_set_power_state(pdev, 0); |
6476 |
pci_set_power_state(pdev, 0); |
6478 |
pci_restore_state(pdev, NULL); |
6477 |
|
|
|
6478 |
{ |
6479 |
int i; |
6480 |
for (i = 0; i < 6; i ++) |
6481 |
pci_write_config_dword(pdev, |
6482 |
PCI_BASE_ADDRESS_0 + (i * 4), |
6483 |
pdev->resource[i].start); |
6484 |
pci_write_config_byte(pdev, PCI_INTERRUPT_LINE, pdev->irq); |
6485 |
} |
6479 |
|
6486 |
|
6480 |
if (!ipw2100_hw_is_adapter_in_system(dev)) { |
6487 |
if (!ipw2100_hw_is_adapter_in_system(dev)) { |
6481 |
err = -ENODEV; |
6488 |
err = -ENODEV; |
Lines 6666-6672
Link Here
|
6666 |
/* Remove the PRESENT state of the device */ |
6673 |
/* Remove the PRESENT state of the device */ |
6667 |
netif_device_detach(dev); |
6674 |
netif_device_detach(dev); |
6668 |
|
6675 |
|
6669 |
pci_save_state(pdev, priv->pm_state); |
6676 |
pci_save_state(pdev); |
6670 |
pci_disable_device(pdev); // needed? |
6677 |
pci_disable_device(pdev); // needed? |
6671 |
pci_set_power_state(pdev, state); |
6678 |
pci_set_power_state(pdev, state); |
6672 |
|
6679 |
|
Lines 6686-6692
Link Here
|
6686 |
dev->name); |
6693 |
dev->name); |
6687 |
|
6694 |
|
6688 |
pci_set_power_state(pdev, 0); |
6695 |
pci_set_power_state(pdev, 0); |
6689 |
pci_restore_state(pdev, priv->pm_state); |
6696 |
pci_restore_state(pdev); |
6690 |
|
6697 |
|
6691 |
/* |
6698 |
/* |
6692 |
* Suspend/Resume resets the PCI configuration space, so we have to |
6699 |
* Suspend/Resume resets the PCI configuration space, so we have to |