示例#1
0
文件: einj.py 项目: xk/bits
def get_action(action):
    einj = acpi.parse_einj()
    if einj is None:
        raise RuntimeError("No ACPI EINJ table found")
    for entry in einj.entries:
        if entry.injection_action == action:
            return entry
示例#2
0
文件: einj.py 项目: sykeben/BITS-PyOS
def get_action(action):
    einj = acpi.parse_einj()
    if einj is None:
        raise RuntimeError("No ACPI EINJ table found")
    for entry in einj.entries:
        if entry.injection_action == action:
            return entry
示例#3
0
文件: einj.py 项目: xk/bits
def display_einj():
    with ttypager.page():
        einj = acpi.parse_einj()
        if einj is None:
            raise RuntimeError("No ACPI EINJ table found")
        print(einj)
示例#4
0
文件: einj.py 项目: sykeben/BITS-PyOS
def display_einj():
    with ttypager.page():
        einj = acpi.parse_einj()
        if einj is None:
            raise RuntimeError("No ACPI EINJ table found")
        print(einj)