def get_info(obj): return (sim_commands.get_pci_info(obj) + [(None, [("Secondary Bus", obj.secondary_bus)]), ("Bridge information", [ ("Primary Bus Number", "0x%x" % read_config(obj, 0x18, 1)), ("Secondary Bus Number", "0x%x" % read_config(obj, 0x19, 1)), ("Subordinate Bus Number", "0x%x" % read_config(obj, 0x1a, 1)) ]), ("Memory setup", [("IO Base", "0x%x" % ((read_config(obj, 0x30, 2) << 16) | (read_config(obj, 0x1c, 1) << 8))), ("IO Limit", "0x%x" % ((read_config(obj, 0x32, 2) << 16) | (read_config(obj, 0x1d, 1) << 8)))]), (None, [("Memory Base", "0x%x" % (read_config(obj, 0x20, 2) << 16)), ("Memory Limit", "0x%x" % (read_config(obj, 0x22, 2) << 16))]), (None, [("Prefetchable Base", "0x%x" % ((read_config(obj, 0x28, 4) << 32) | (read_config(obj, 0x24, 2) << 16))), ("Prefetchable Limit", "0x%x" % ((read_config(obj, 0x2c, 4) << 32) | (read_config(obj, 0x26, 2) << 16)))])])
def get_info(obj): return ([ (None, [ ("Loop ID", obj.loop_id), ("Node Name", obj.node_name), ("Port Name", obj.port_name), ] ), ("Attached disks", obj.fc_disks)] + sim_commands.get_pci_info(obj))
def get_info(obj): if string.find(obj.classname, "sbus") < 0: pci_info = sim_commands.get_pci_info(obj) else: pci_info = [] return ([(None, [("Rx base addr", "0x%08x" % obj.rx_desc_base), ("Rx ring size", rx_sizes[obj.rx_ring_size_idx]), ("Tx base addr", "0x%08x" % obj.tx_desc_base), ("Tx ring size", obj.tx_ring_size)])] + nic_common.get_nic_info(obj) + pci_info)
def get_info(obj): if string.find(obj.classname, "sbus") < 0: pci_info = sim_commands.get_pci_info(obj) else: pci_info = [] return ( [ ( None, [ ("Rx base addr", "0x%08x" % obj.rx_desc_base), ("Rx ring size", rx_sizes[obj.rx_ring_size_idx]), ("Tx base addr", "0x%08x" % obj.tx_desc_base), ("Tx ring size", obj.tx_ring_size), ], ) ] + nic_common.get_nic_info(obj) + pci_info )
def get_info(obj): return (sim_commands.get_pci_info(obj) + [(None, [ ("Secondary Bus", obj.secondary_bus)]), ("Bridge information", [ ("Primary Bus Number", "0x%x" % read_config(obj, 0x18, 1)), ("Secondary Bus Number", "0x%x" % read_config(obj, 0x19, 1)), ("Subordinate Bus Number", "0x%x" % read_config(obj, 0x1a, 1))]), ("Memory setup", [ ("IO Base", "0x%x" % ((read_config(obj, 0x30, 2) << 16) | (read_config(obj, 0x1c, 1) << 8))), ("IO Limit", "0x%x" % ((read_config(obj, 0x32, 2) << 16) | (read_config(obj, 0x1d, 1) << 8)))]), (None, [ ("Memory Base", "0x%x" % (read_config(obj, 0x20, 2) << 16)), ("Memory Limit", "0x%x" % (read_config(obj, 0x22, 2) << 16))]), (None, [ ("Prefetchable Base", "0x%x" % ((read_config(obj, 0x28, 4) << 32) | (read_config(obj, 0x24, 2) << 16))), ("Prefetchable Limit", "0x%x" % ((read_config(obj, 0x2c, 4) << 32) | (read_config(obj, 0x26, 2) << 16)))])])
def get_info(obj): return ([(None, [("System Console", obj.sc)])] + sim_commands.get_pci_info(obj))
def get_info(obj): return ([] + sim_commands.get_pci_info(obj) + nic_common.get_nic_info(obj))
def get_info(obj): return [(None, [ ("PHY object", obj.phy), ])] + sim_commands.get_pci_info(obj)
def get_info(obj): return [ (None, [ ("PHY object", obj.phy), ] ) ] + sim_commands.get_pci_info(obj)
def get_info(obj): return ([(None, [ ("Loop ID", obj.loop_id), ("Node Name", obj.node_name), ("Port Name", obj.port_name), ]), ("Attached disks", obj.fc_disks)] + sim_commands.get_pci_info(obj))
def get_info(obj): # FIXME: add device specific info return (sim_commands.get_pci_info(obj))
def get_info(obj): # FIXME: add device specific info return (nic_common.get_nic_info(obj) + sim_commands.get_pci_info(obj))
def get_info(obj): return [ (None, [ ("SCSI bus", obj.scsi_bus) ] ) ] + sim_commands.get_pci_info(obj)