コード例 #1
0
ファイル: latego.py プロジェクト: wushka00/60secs
def local_direct2core(val):
    c = 0
    for b in busses:
        if pci.probe(b, 14, 0):
            pci.changebit(b, 14, 0, 0x84, 1, val)
            c += 1
    if c == 0:
        print("no local devices found")
コード例 #2
0
ファイル: latego.py プロジェクト: Atlantic777/pmu-tools
def local_direct2core(val):
    c = 0
    for b in busses:
        if pci.probe(b, 14, 0):        
            pci.changebit(b, 14, 0, 0x84, 1, val)
            c += 1
    if c == 0:
        print "no local devices found"
コード例 #3
0
ファイル: latego.py プロジェクト: wushka00/60secs
def remote_direct2core(val):
    c = 0
    for b in busses:
        if pci.probe(b, 8, 0):
            pci.changebit(b, 8, 0, 0x80, 1, val)
            pci.changebit(b, 9, 0, 0x80, 1, val)
            c += 1
    if c == 0:
        print("no remote devices found")
コード例 #4
0
ファイル: latego.py プロジェクト: Atlantic777/pmu-tools
def remote_direct2core(val):
    c = 0
    for b in busses:
        if pci.probe(b, 8, 0):
            pci.changebit(b, 8, 0, 0x80, 1, val)
            pci.changebit(b, 9, 0, 0x80, 1, val)
            c += 1
    if c == 0:
        print "no remote devices found"