ia64/xen-unstable

changeset 17590:9d2a45d4b6c6

msix: Further fixes to Python arithmetic.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed May 07 09:17:52 2008 +0100 (2008-05-07)
parents 730c253afc30
children fb58da516749
files tools/python/xen/util/pci.py
line diff
     1.1 --- a/tools/python/xen/util/pci.py	Wed May 07 09:15:49 2008 +0100
     1.2 +++ b/tools/python/xen/util/pci.py	Wed May 07 09:17:52 2008 +0100
     1.3 @@ -30,7 +30,7 @@ PCI_STATUS_CAP_MASK = 0x10
     1.4  PCI_STATUS_OFFSET = 0x6
     1.5  PCI_CAP_OFFSET = 0x34
     1.6  MSIX_BIR_MASK = 0x7
     1.7 -MSIX_SIZE_MASK = 0x3ff
     1.8 +MSIX_SIZE_MASK = 0x7ff
     1.9  
    1.10  #Calculate PAGE_SHIFT: number of bits to shift an address to get the page number
    1.11  PAGE_SIZE = resource.getpagesize()
    1.12 @@ -122,7 +122,7 @@ class PciDevice:
    1.13                          message_cont_hi = ord(conf_file.read(1))
    1.14                          self.msix=1
    1.15                          self.msix_entries = (message_cont_lo + \
    1.16 -                                             message_cont_hi << 8) \
    1.17 +                                             (message_cont_hi << 8)) \
    1.18                                               & MSIX_SIZE_MASK
    1.19                          t_off=conf_file.read(4)
    1.20                          p_off=conf_file.read(4)