|
@@ -600,8 +600,8 @@ static void __iomem *msix_map_region(struct pci_dev *dev, unsigned nr_entries)
|
|
|
u32 table_offset;
|
|
|
u8 bir;
|
|
|
|
|
|
- pci_read_config_dword(dev,
|
|
|
- msix_table_offset_reg(dev->msix_cap), &table_offset);
|
|
|
+ pci_read_config_dword(dev, dev->msix_cap + PCI_MSIX_TABLE,
|
|
|
+ &table_offset);
|
|
|
bir = (u8)(table_offset & PCI_MSIX_FLAGS_BIRMASK);
|
|
|
table_offset &= ~PCI_MSIX_FLAGS_BIRMASK;
|
|
|
phys_addr = pci_resource_start(dev, bir) + table_offset;
|