コード例 #1
0
ファイル: portColossus.py プロジェクト: rmurthy716/stcl1
 def __init__(self, bar, port):
     """
     find the PCI id corresponding to Colossus
     """
     for key, ids in Colossus.DEVICE_IDs.items():
         try:
             Pci.__init__(self, ids, bar, port)
             break
         except:
             continue
     self.port = port
コード例 #2
0
ファイル: portProteus.py プロジェクト: rmurthy716/stcl1
 def __init__(self, bar, port):
     Pci.__init__(self, '174a:0a0f', bar, port)