|
@@ -2589,6 +2589,16 @@ static const struct ethtool_ops jme_ethtool_ops = {
|
|
static int
|
|
static int
|
|
jme_pci_dma64(struct pci_dev *pdev)
|
|
jme_pci_dma64(struct pci_dev *pdev)
|
|
{
|
|
{
|
|
|
|
+ if (pdev->device == PCI_DEVICE_ID_JMICRON_JMC250 &&
|
|
|
|
+ !pci_set_dma_mask(pdev, DMA_64BIT_MASK))
|
|
|
|
+ if (!pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK))
|
|
|
|
+ return 1;
|
|
|
|
+
|
|
|
|
+ if (pdev->device == PCI_DEVICE_ID_JMICRON_JMC250 &&
|
|
|
|
+ !pci_set_dma_mask(pdev, DMA_40BIT_MASK))
|
|
|
|
+ if (!pci_set_consistent_dma_mask(pdev, DMA_40BIT_MASK))
|
|
|
|
+ return 1;
|
|
|
|
+
|
|
if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK))
|
|
if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK))
|
|
if (!pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))
|
|
if (!pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))
|
|
return 0;
|
|
return 0;
|