105-iegbe_new_dma_masks.patch 782 B

1234567891011121314151617181920
  1. --- a/Embedded/src/GbE/iegbe_main.c
  2. +++ b/Embedded/src/GbE/iegbe_main.c
  3. @@ -775,13 +775,13 @@ static int __devinit iegbe_probe(struct
  4. if (err)
  5. return err;
  6. - if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK) &&
  7. - !pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK)) {
  8. + if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) &&
  9. + !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) {
  10. pci_using_dac = 1;
  11. } else {
  12. - err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
  13. + err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
  14. if (err) {
  15. - err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
  16. + err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
  17. if (err) {
  18. E1000_ERR("No usable DMA configuration, "
  19. "aborting\n");