示例#1
0
 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 )
示例#2
0
 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)