Lines 2853-2868
Link Here
|
2853 |
static int |
2853 |
static int |
2854 |
jme_pci_dma64(struct pci_dev *pdev) |
2854 |
jme_pci_dma64(struct pci_dev *pdev) |
2855 |
{ |
2855 |
{ |
2856 |
if (pdev->device == PCI_DEVICE_ID_JMICRON_JMC250 && |
|
|
2857 |
!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) |
2858 |
if (!pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) |
2859 |
return 1; |
2860 |
|
2861 |
if (pdev->device == PCI_DEVICE_ID_JMICRON_JMC250 && |
2862 |
!pci_set_dma_mask(pdev, DMA_BIT_MASK(40))) |
2863 |
if (!pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(40))) |
2864 |
return 1; |
2865 |
|
2866 |
if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) |
2856 |
if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) |
2867 |
if (!pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) |
2857 |
if (!pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) |
2868 |
return 0; |
2858 |
return 0; |