aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/msi.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-07-12 10:48:34 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-07-12 10:48:34 +0100
commit7d343d0e53c881bb6b78db2bf29d584eee467bbf (patch)
tree5400d8e40f1400508c3e809aa5efba14663edf31 /xen/arch/x86/msi.c
parentb298f3d27fecd3c896b69529b5603e5879f55749 (diff)
downloadxen-7d343d0e53c881bb6b78db2bf29d584eee467bbf.tar.gz
xen-7d343d0e53c881bb6b78db2bf29d584eee467bbf.tar.bz2
xen-7d343d0e53c881bb6b78db2bf29d584eee467bbf.zip
Consolidate MSI-X related definitions
Eliminate redundant ones, fix names (where so far inappropriately referring to capability structure fields the don't really relate to), use symbolic names instead of raw numbers, and remove an unusable one. No functional change intended. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/msi.c')
-rw-r--r--xen/arch/x86/msi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/msi.c b/xen/arch/x86/msi.c
index ec7e5c9c06..5ff709471a 100644
--- a/xen/arch/x86/msi.c
+++ b/xen/arch/x86/msi.c
@@ -560,8 +560,8 @@ static int msix_capability_init(struct pci_dev *dev,
/* Request & Map MSI-X table region */
table_offset = pci_conf_read32(bus, slot, func, msix_table_offset_reg(pos));
- bir = (u8)(table_offset & PCI_MSIX_FLAGS_BIRMASK);
- table_offset &= ~PCI_MSIX_FLAGS_BIRMASK;
+ bir = (u8)(table_offset & PCI_MSIX_BIRMASK);
+ table_offset &= ~PCI_MSIX_BIRMASK;
entry_offset = msi->entry_nr * PCI_MSIX_ENTRY_SIZE;
table_paddr = msi->table_base + table_offset;