mirror of https://github.com/ipxe/ipxe.git
[intelxl] Configure DMA mask as 64-bit
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/181/head
parent
9e280aecb7
commit
24ef743778
|
@ -1718,7 +1718,6 @@ static int intelxl_probe ( struct pci_device *pci ) {
|
|||
pci_set_drvdata ( pci, netdev );
|
||||
netdev->dev = &pci->dev;
|
||||
memset ( intelxl, 0, sizeof ( *intelxl ) );
|
||||
intelxl->dma = &pci->dma;
|
||||
intelxl->intr = INTELXL_PFINT_DYN_CTL0;
|
||||
intelxl_init_admin ( &intelxl->command, INTELXL_ADMIN_CMD,
|
||||
&intelxl_admin_offsets );
|
||||
|
@ -1741,6 +1740,10 @@ static int intelxl_probe ( struct pci_device *pci ) {
|
|||
goto err_ioremap;
|
||||
}
|
||||
|
||||
/* Configure DMA */
|
||||
intelxl->dma = &pci->dma;
|
||||
dma_set_mask_64bit ( intelxl->dma );
|
||||
|
||||
/* Reset the NIC */
|
||||
if ( ( rc = intelxl_reset ( intelxl ) ) != 0 )
|
||||
goto err_reset;
|
||||
|
|
|
@ -598,7 +598,6 @@ static int intelxlvf_probe ( struct pci_device *pci ) {
|
|||
pci_set_drvdata ( pci, netdev );
|
||||
netdev->dev = &pci->dev;
|
||||
memset ( intelxl, 0, sizeof ( *intelxl ) );
|
||||
intelxl->dma = &pci->dma;
|
||||
intelxl->intr = INTELXLVF_VFINT_DYN_CTL0;
|
||||
intelxl_init_admin ( &intelxl->command, INTELXLVF_ADMIN,
|
||||
&intelxlvf_admin_command_offsets );
|
||||
|
@ -621,6 +620,10 @@ static int intelxlvf_probe ( struct pci_device *pci ) {
|
|||
goto err_ioremap;
|
||||
}
|
||||
|
||||
/* Configure DMA */
|
||||
intelxl->dma = &pci->dma;
|
||||
dma_set_mask_64bit ( intelxl->dma );
|
||||
|
||||
/* Locate PCI Express capability */
|
||||
intelxl->exp = pci_find_capability ( pci, PCI_CAP_ID_EXP );
|
||||
if ( ! intelxl->exp ) {
|
||||
|
|
Loading…
Reference in New Issue