Esempio n. 1
0
from cli import *
import vga_common

vga_name = "voodoo3"
vga_common.new_vga_commands(vga_name, info=0)

#
# -------------------- info --------------------
#

def info_cmd(obj, verbose):
    SIM_set_attribute(obj, "info", verbose)

new_command("info", info_cmd,
            [arg(int_t, "verbose", "?", 0)], 
            alias = "",
            type  = "%s commands" % vga_name,
            short = "show voodoo3 info",
	    namespace = vga_name,
            doc = """
Show some information about the voodoo3 card.""", filename="/mp/simics-3.0/src/devices/voodoo3/commands.py", linenumber="14")

#
# -------------------- status --------------------
#

def status_cmd(obj, verbose):
    SIM_set_attribute(obj, "status", verbose)

new_command("status", status_cmd,
            [arg(int_t, "verbose", "?", 0)], 
from cli import *
import vga_common

vga_name = "voodoo3"
vga_common.new_vga_commands(vga_name, info=0)

#
# -------------------- info --------------------
#


def info_cmd(obj, verbose):
    SIM_set_attribute(obj, "info", verbose)


new_command("info",
            info_cmd, [arg(int_t, "verbose", "?", 0)],
            alias="",
            type="%s commands" % vga_name,
            short="show voodoo3 info",
            namespace=vga_name,
            doc="""
Show some information about the voodoo3 card.""",
            filename="/mp/simics-3.0/src/devices/voodoo3/commands.py",
            linenumber="14")

#
# -------------------- status --------------------
#

Esempio n. 3
0
from cli import *
import vga_common

vga_name = "vga_pci"
vga_common.new_vga_commands(vga_name)