def read_pci_reg( self, bus, device, function, address, size ): if (1 == size): return ( edk2.readpci( bus, device, function, address, size ) & 0xFF ) elif (2 == size): return ( edk2.readpci( bus, device, function, address, size ) & 0xFFFF ) else: return edk2.readpci( bus, device, function, address, size )
def read_pci_reg(self, bus, device, function, address, size): if (1 == size): return (edk2.readpci(bus, device, function, address, size) & 0xFF) elif (2 == size): return (edk2.readpci(bus, device, function, address, size) & 0xFFFF) else: return edk2.readpci(bus, device, function, address, size)