def ppm_test2(): pciexbase = bits.pci_read(0, 5, 0, 0x84, 4) & 0xfc000000 bits.pcie_set_base(pciexbase) print 'pciexbase = 0x%x' % bits.pcie_get_base() for bus in (0x3f, 0x7f, 0xbf, 0xff): print 'bus 0x%x Interrupt Configuration Reg = 0x%x' % ( bus, bits.pcie_read(bus, 11, 0, 0x48, 4))
def ppm_test1(): pciexbase = bits.pci_read(0, 5, 0, 0x84, 4) & 0xfc000000 bits.pcie_set_base(pciexbase) print 'pciexbase = 0x%x' % bits.pcie_get_base() for bus in (0x3f, 0x7f, 0xbf, 0xff): print 'bus 0x%x devhide_0 = 0x%x' % ( bus, bits.pcie_read(bus, 11, 3, 0xb0, 4))
def ppm_test2(): pciexbase = bits.pci_read(0, 5, 0, 0x84, 4) & 0xfc000000 bits.pcie_set_base(pciexbase) print 'pciexbase = 0x%x' % bits.pcie_get_base() for bus in (0x3f, 0x7f, 0xbf, 0xff): print 'bus 0x%x Interrupt Configuration Reg = 0x%x' % (bus, bits.pcie_read(bus, 11, 0, 0x48, 4))
def ppm_test1(): pciexbase = bits.pci_read(0, 5, 0, 0x84, 4) & 0xfc000000 bits.pcie_set_base(pciexbase) print 'pciexbase = 0x%x' % bits.pcie_get_base() for bus in (0x3f, 0x7f, 0xbf, 0xff): print 'bus 0x%x devhide_0 = 0x%x' % (bus, bits.pcie_read(bus, 11, 3, 0xb0, 4))