libhd
5.0
|
Hardware scan console output functions. More...
Macros | |
#define | dump_line(x0, x1...) fprintf(f, "%*s" x0, ind, "", x1) |
#define | dump_line_str(x0...) fprintf(f, "%*s%s", ind, "", x0) |
#define | dump_line0(x0...) fprintf(f, x0) |
Functions | |
static void | dump_normal (hd_data_t *, hd_t *, FILE *) |
static void | dump_cpu (hd_data_t *, hd_t *, FILE *) |
static void | dump_bios (hd_data_t *, hd_t *, FILE *) |
static void | dump_prom (hd_data_t *, hd_t *, FILE *) |
static void | dump_sys (hd_data_t *, hd_t *, FILE *) |
static char * | dump_hid (hd_data_t *hd_data, hd_id_t *hid, int format, char *buf, int buf_size) |
static char * | dump_hid2 (hd_data_t *hd_data, hd_id_t *hid1, hd_id_t *hid2, char *buf, int buf_size) |
static char * | print_dev_num (hd_dev_num_t *d) |
void | hd_dump_entry (hd_data_t *hd_data, hd_t *h, FILE *f) |
Variables | |
static int | ind = 0 |
Hardware scan console output functions.
This module provides a function that prints a hardware entry. This is useful for debugging or to provide the user with some fancy info.
#define dump_line | ( | x0, | |
x1... | |||
) | fprintf(f, "%*s" x0, ind, "", x1) |
Referenced by dump_bios(), dump_cpu(), dump_normal(), dump_prom(), dump_sys(), and hd_dump_entry().
#define dump_line0 | ( | x0... | ) | fprintf(f, x0) |
Referenced by dump_cpu(), dump_normal(), and hd_dump_entry().
#define dump_line_str | ( | x0... | ) | fprintf(f, "%*s%s", ind, "", x0) |
Referenced by dump_bios(), dump_normal(), and hd_dump_entry().
References bios_info_t::apm_bios_flags, bios_info_t::apm_enabled, bios_info_t::apm_subver, bios_info_t::apm_supported, bios_info_t::apm_ver, hd_detail_t::bios, bios_info_t::bios32, bios_info_t::caps_lock, smp_info_t::cpus, smp_info_t::cpus_en, vbe_info_t::current_mode, hd_detail_bios_t::data, s_hd_t::detail, dump_line, dump_line_str, bios32_info_t::entry, free_mem(), hd_data, hd_detail_bios, bios_info_t::is_pnp_bios, isa_id2str(), bios_info_t::lba_support, bios_info_t::led, bios_info_t::low_mem_size, bios_info_t::num_lock, smp_info_t::oem_id, smp_info_t::ok, vbe_info_t::ok, bios32_info_t::ok, bios_info_t::ok, bios_info_t::par_port0, bios_info_t::par_port1, bios_info_t::par_port2, bios_info_t::pnp_id, smp_info_t::prod_id, smp_info_t::rev, bios_info_t::scroll_lock, bios_info_t::ser_port0, bios_info_t::ser_port1, bios_info_t::ser_port2, bios_info_t::ser_port3, smbios_dump(), bios_info_t::smbios_ver, bios_info_t::smp, hd_detail_t::type, bios_info_t::vbe, bios_info_t::vbe_ver, and bios_info_t::vbe_video_mem.
Referenced by hd_dump_entry().
References arch_68k, arch_aarch64, arch_alpha, arch_arm, arch_ia64, arch_intel, arch_mips, arch_ppc, arch_ppc64, arch_riscv, arch_s390, arch_s390x, arch_sparc, arch_sparc64, arch_x86_64, cpu_info_t::architecture, cpu_info_t::bogo, cpu_info_t::cache, cpu_info_t::clock, hd_detail_t::cpu, hd_detail_cpu_t::data, s_hd_t::detail, dump_line, dump_line0, cpu_info_t::family, cpu_info_t::features, hd_detail_cpu, cpu_info_t::model, cpu_info_t::model_name, s_str_list_t::next, cpu_info_t::platform, cpu_info_t::stepping, s_str_list_t::str, hd_detail_t::type, cpu_info_t::units, and cpu_info_t::vend_name.
Referenced by hd_dump_entry().
References eisa_vendor_str(), hid_tag_name2(), hd_id_t::id, ID_TAG, ID_VALUE, hd_id_t::name, and TAG_EISA.
Referenced by dump_normal().
|
static |
References eisa_vendor_str(), hid_tag_name2(), hd_id_t::id, ID_TAG, ID_VALUE, hd_id_t::name, and TAG_EISA.
Referenced by dump_normal().
References acc_ro, acc_rw, res_mem_t::access, res_io_t::access, driver_info_module_t::active, res_hwaddr_t::addr, driver_info_x11_t::all, isdn_parm_s::alt_value, isdn_parm_s::alt_values, u_hd_res_t::any, driver_info_u::any, res_wlan_t::auth_modes, joystick_s::axes, driver_info_display_t::bandwidth, res_mem_t::base, res_io_t::base, res_irq_t::base, res_dma_t::base, s_hd_t::base_class, u_hd_res_t::baud, bc_internal, s_hd_t::is_s::bd, s_hd_t::is_s::bdr, s_hd_t::is_s::bdre, res_wlan_t::bitrates, res_baud_t::bits, s_hd_t::broken, joystick_s::buttons, driver_info_mouse_t::buttons, res_framebuffer_t::bytes_p_line, driver_info_x11_t::c15, driver_info_x11_t::c16, driver_info_x11_t::c24, driver_info_x11_t::c32, driver_info_x11_t::c8, u_hd_res_t::cache, s_hd_t::is_s::cdr, s_hd_t::is_s::cdrw, res_wlan_t::channels, monitor_info_t::clock, res_framebuffer_t::colorbits, driver_info_x11_t::colors, s_hd_t::compat_device, s_hd_t::compat_vendor, driver_info_module_t::conf, isdn_parm_s::conflict, res_fc_t::controller_id, res_disk_geo_t::cyls, driver_info_x11_t::dacspeed, hd_detail_monitor_s::data, hd_detail_joystick_t::data, hd_data_t::debug, isdn_parm_s::def_value, s_hd_t::detail, s_hd_t::device, hd_data_t::flag_struct::dformat, di_any, di_display, di_dsl, di_isdn, di_kbd, di_module, di_mouse, di_x11, u_hd_res_t::disk_geo, driver_info_u::display, u_hd_res_t::dma, s_hd_t::driver_info, s_hd_t::driver_module, s_hd_t::driver_modules, s_hd_t::drivers, driver_info_u::dsl, dump_hid(), dump_hid2(), dump_line, dump_line0, dump_line_str, dump_sys(), s_hd_t::is_s::dvd, s_hd_t::is_s::dvdpr, s_hd_t::is_s::dvdprdl, s_hd_t::is_s::dvdprw, s_hd_t::is_s::dvdprwdl, s_hd_t::is_s::dvdr, s_hd_t::is_s::dvdram, s_hd_t::is_s::dvdrdl, s_hd_t::is_s::dvdrw, res_mem_t::enabled, res_io_t::enabled, res_irq_t::enabled, res_dma_t::enabled, res_wlan_t::enc_modes, driver_info_x11_t::extensions, u_hd_res_t::fc, s_hd_t::is_s::fcoe, s_hd_t::is_s::fcoe_offload, res_fc_t::fcp_lun, res_fc_t::fcp_lun_ok, flag_no, flag_yes, isdn_parm_s::flags, hd_data_t::flags, float2str(), u_hd_res_t::framebuffer, free_mem(), res_wlan_t::frequencies, res_disk_geo_t::geotype, driver_info_mouse_t::gpm, res_baud_t::handshake, s_hd_t::is_s::hd, hd_data, HD_DEB_DRIVER_INFO, hd_detail_joystick, hd_detail_monitor, hd_join(), driver_info_any_t::hddb0, driver_info_any_t::hddb1, monitor_info_t::hdisp, s_hd_t::is_s::hdr, s_hd_t::is_s::hdrw, res_disk_geo_t::heads, monitor_info_t::height, res_monitor_t::height, res_framebuffer_t::height, driver_info_display_t::height, monitor_info_t::hflag, s_hd_t::hotplug, s_hd_t::hotplug_slot, s_hd_t::is_s::hotpluggable, hp_cardbus, hp_ieee1394, hp_none, hp_pci, hp_pcmcia, hp_usb, monitor_info_t::hsyncend, monitor_info_t::hsyncstart, monitor_info_t::htotal, u_hd_res_t::hwaddr, driver_info_isdn_t::i4l_name, driver_info_isdn_t::i4l_subtype, driver_info_isdn_t::i4l_type, hd_id_t::id, ind, res_init_strings_t::init1, res_init_strings_t::init2, u_hd_res_t::init_strings, res_monitor_t::interlaced, u_hd_res_t::io, u_hd_res_t::irq, s_hd_t::is, s_hd_t::is_s::iscsi_offload, driver_info_u::isdn, hd_detail_t::joystick, driver_info_u::kbd, driver_info_kbd_t::keymap, s_hd_t::label, u_hd_res_t::link, monitor_info_t::manu_week, monitor_info_t::manu_year, driver_info_display_t::max_hsync, driver_info_display_t::max_vsync, u_hd_res_t::mem, driver_info_display_t::min_hsync, driver_info_display_t::min_vsync, s_hd_t::is_s::mo, driver_info_module_t::mod_args, s_hd_t::modalias, res_framebuffer_t::mode, driver_info_dsl_t::mode, s_hd_t::model, driver_info_module_t::modprobe, driver_info_u::module, u_hd_res_t::monitor, hd_detail_t::monitor, driver_info_u::mouse, s_hd_t::is_s::mrw, s_hd_t::is_s::mrww, hd_id_t::name, isdn_parm_s::name, driver_info_dsl_t::name, driver_info_module_t::names, s_str_list_t::next, u_hd_res_t::next, isdn_parm_s::next, driver_info_u::next, hd_detail_monitor_s::next, res_pppd_option_t::option, driver_info_x11_t::options, driver_info_isdn_t::params, res_baud_t::parity, u_hd_res_t::phys_mem, res_fc_t::port_id, res_fc_t::port_id_ok, u_hd_res_t::pppd_option, s_hd_t::is_s::pppoe, res_mem_t::prefetch, print_dev_num(), res_mem_t::range, res_phys_mem_t::range, res_io_t::range, driver_info_x11_t::raw, s_hd_t::requires, s_hd_t::res, res_baud, res_cache, res_disk_geo, res_dma, res_fc, res_framebuffer, res_hwaddr, res_init_strings, res_io, res_irq, res_link, res_mem, res_monitor, res_phwaddr, res_phys_mem, res_pppd_option, res_size, res_wlan, s_hd_t::revision, s_hd_t::rom_id, sc_int_sys, driver_info_x11_t::script, res_disk_geo_t::sectors, s_hd_t::serial, driver_info_x11_t::server, res_cache_t::size, res_disk_geo_t::size, u_hd_res_t::size, size_unit_cinch, size_unit_cm, size_unit_kbyte, size_unit_mm, size_unit_sectors, s_hd_t::tag_s::skip_braille, s_hd_t::tag_s::skip_modem, s_hd_t::tag_s::skip_mouse, res_baud_t::speed, res_link_t::state, res_baud_t::stopbits, s_hd_t::is_s::storage_only, s_str_list_t::str, s_hd_t::sub_class, s_hd_t::sub_device, s_hd_t::sub_vendor, s_hd_t::tag, res_irq_t::triggered, hd_dev_num_t::type, res_any_t::type, isdn_parm_s::type, driver_info_any_t::type, hd_detail_t::type, u64, res_size_t::unit, s_hd_t::unix_dev_name, s_hd_t::unix_dev_name2, s_hd_t::unix_dev_names, s_hd_t::unix_dev_num, s_hd_t::unix_dev_num2, s_hd_t::usb_guid, res_size_t::val1, res_size_t::val2, isdn_parm_s::valid, isdn_parm_s::value, monitor_info_t::vdisp, s_hd_t::vendor, monitor_info_t::vflag, res_monitor_t::vfreq, monitor_info_t::vsyncend, monitor_info_t::vsyncstart, monitor_info_t::vtotal, driver_info_mouse_t::wheels, monitor_info_t::width, res_monitor_t::width, res_framebuffer_t::width, driver_info_display_t::width, u_hd_res_t::wlan, s_hd_t::is_s::wlan, res_fc_t::wwpn, res_fc_t::wwpn_ok, driver_info_u::x11, driver_info_x11_t::x3d, driver_info_mouse_t::xf86, driver_info_x11_t::xf86_ver, driver_info_kbd_t::XkbLayout, driver_info_kbd_t::XkbModel, driver_info_kbd_t::XkbRules, and s_hd_t::is_s::zip.
Referenced by hd_dump_entry().
References prom_info_t::color, hd_detail_prom_t::data, s_hd_t::detail, dump_line, prom_info_t::has_color, hd_detail_prom, hd_detail_t::prom, and hd_detail_t::type.
Referenced by hd_dump_entry().
References hd_detail_sys_t::data, s_hd_t::detail, dump_line, sys_info_t::formfactor, sys_info_t::generation, hd_detail_sys, sys_info_t::lang, hd_detail_t::sys, sys_info_t::system_type, and hd_detail_t::type.
Referenced by dump_normal().
References hd_status_t::active, s_hd_t::is_s::agp, cdrom_info_s::application, s_hd_t::attached_to, hd_status_t::available, s_hd_t::base_class, bc_internal, bc_storage_device, cdrom_info_s::bootable, s_hd_t::bus, cdrom_info_s::catalog, hd_detail_t::ccw, cdrom_info_s::cdrom, hd_detail_t::cdrom, s_hd_t::child_ids, s_hd_t::config_string, hd_status_t::configured, s_hd_t::count, cdrom_info_s::creation_date, ccw_s::cu_model, hd_detail_cdrom_t::data, hd_detail_ccw_t::data, hd_data_t::debug, s_hd_t::detail, ccw_s::dev_model, hd_data_t::flag_struct::dformat, dump_bios(), dump_cpu(), dump_line, dump_line0, dump_line_str, dump_normal(), dump_prom(), cdrom_info_s::el_torito, s_hd_t::extra_info, hd_data_t::flags, free_mem(), s_hd_t::func, cdrom_info_s::geo, s_hd_t::hal_prop, hd_data, HD_DEB_CREATION, hd_detail_ccw, hd_detail_cdrom, hd_get_device_by_idx(), hd_hal_print_prop(), hd_hw_item_name(), hd_is_hw_class(), hd_join(), hd_status_value_name(), hw_all, s_hd_t::hw_class, hw_unknown, hd_id_t::id, cdrom_info_s::id_string, s_hd_t::idx, ind, hd_status_t::invalid, s_hd_t::is, s_hd_t::is_s::isapnp, cdrom_info_s::iso9660, cdrom_info_s::label, ccw_s::lcss, s_hd_t::line, cdrom_info_s::load_address, cdrom_info_s::load_count, s_hd_t::is_s::manual, cdrom_info_s::media_type, mod_name_by_idx(), s_hd_t::module, hd_id_t::name, hd_status_t::needed, new_str(), s_str_list_t::next, hal_prop_s::next, s_hd_t::next, s_hd_t::is_s::notready, cdrom_info_s::ok, s_hd_t::old_unique_id, s_hd_t::parent_id, s_hd_t::parent_udi, s_hd_t::persistent_prop, cdrom_info_s::platform, cdrom_info_s::preparer, s_hd_t::prog_if, cdrom_info_s::publisher, sc_int_bios, sc_int_cpu, sc_int_prom, sc_sdev_cdrom, s_hd_t::slot, s_hd_t::is_s::softraiddisk, cdrom_info_s::speed, cdrom_info_s::start, s_hd_t::status, s_str_list_t::str, str_printf(), s_hd_t::sub_class, s_hd_t::sysfs_bus_id, s_hd_t::sysfs_device_link, s_hd_t::sysfs_id, hd_detail_ccw_t::type, hd_detail_t::type, s_hd_t::udi, s_hd_t::unique_id, and cdrom_info_s::volume.
|
static |
References hd_dev_num_t::major, hd_dev_num_t::minor, hd_dev_num_t::range, str_printf(), and hd_dev_num_t::type.
Referenced by dump_normal().
|
static |
Referenced by dump_normal(), and hd_dump_entry().