|
Modules |
| | Debug flags |
| | hd_data_t debug flags
|
| | ID macros |
| | Macros to handle device and vendor ids.
|
| | Device class enums |
| | Device base classes and bus types.
|
| | General data types |
| | General types used all over the library.
|
| | Device information structs |
| | Standard device structs, compared to Hardware information.
|
| | SMBIOS structures |
| | Structures holding decoded SMBIOS information.
|
| | Hardware information |
| | Some hardware doesn't fit into the hd_t scheme or there is info we gathered during the scan process but that no-one really cares about.
|
| | Resource structures |
| | definitions for the various resource types
|
| | Misc resource data |
| | data gathered by the misc module; basically resources from /proc
|
| | Driver information |
| | Driver information structures and union.
|
| | Manual hardware configuration |
| | Handle manually configured hardware (in /var/lib/hardware/).
|
| | ISDN interface |
| | - Author:
- (C) 2003 kkeil@suse.de Handle ISDN devices
|
Data Structures |
| struct | hd_status_t |
| | Hardware status. More...
|
| struct | s_udevinfo_t |
| | udev database info More...
|
| struct | s_sysfsdrv_t |
| | sysfs driver info More...
|
| struct | hd_dev_num_t |
| | device number; type is either 0 or 'b' or 'c'. More...
|
| struct | hddb_data_t |
| | Hardware DB (v1) data. More...
|
| struct | hddb_list_s |
| | Hardware DB list item. More...
|
| struct | hddb2_data_t |
| | Hardware DB (v2) data. More...
|
| struct | modinfo_t |
| | module.alias information More...
|
| struct | hal_prop_s |
| | HAL device properties. More...
|
| struct | hal_device_s |
| | HAL device. More...
|
| struct | s_serial_t |
| | Serial device resource and hardware information. More...
|
| struct | s_ser_device_t |
| | Serial device configuration information. More...
|
| struct | hd_detail_pci_t |
| struct | hd_detail_usb_t |
| struct | hd_detail_isapnp_t |
| struct | hd_detail_cdrom_t |
| struct | hd_detail_floppy_t |
| struct | hd_detail_bios_t |
| struct | hd_detail_cpu_t |
| struct | hd_detail_prom_t |
| struct | hd_detail_monitor_t |
| struct | hd_detail_sys_t |
| struct | hd_detail_scsi_t |
| struct | hd_detail_devtree_t |
| struct | hd_detail_ccw_t |
| union | hd_detail_t |
| struct | hd_manual_s |
| | Manually configured hardware information. More...
|
| struct | s_hd_t |
| | Individual hardware item. More...
|
| struct | hd_data_t |
| | Holds all data accumulated during hardware probing. More...
|
| int | hd_manual_write_entry (hd_data_t *hd_data, hd_manual_t *entry) |
| hd_manual_t * | hd_free_manual (hd_manual_t *manual) |
| hd_t * | hd_read_config (hd_data_t *hd_data, const char *id) |
| int | hd_write_config (hd_data_t *hd_data, hd_t *hd) |
| char * | hd_hw_item_name (hd_hw_item_t item) |
| hd_hw_item_t | hd_hw_item_type (char *name) |
| char * | hd_status_value_name (hd_status_value_t status) |
Defines |
| #define | HD_VERSION 13 |
| | Interface version.
|
| #define | HARDWARE_DIR "/var/lib/hardware" |
| | libhd's directory
|
Typedefs |
| typedef enum probe_feature | hd_probe_feature_t |
| | flags to control the probing.
|
| typedef enum hw_item | hd_hw_item_t |
| | list types for hd_list()
|
| typedef s_udevinfo_t | hd_udevinfo_t |
| | udev database info
|
| typedef s_sysfsdrv_t | hd_sysfsdrv_t |
| | sysfs driver info
|
| typedef enum cpu_arch | hd_cpu_arch_t |
| | CPU architecture.
|
| typedef enum boot_arch | hd_boot_arch_t |
| typedef uint32_t | hddb_entry_mask_t |
| | Hardware DB item entry mask.
|
| typedef hddb_list_s | hddb_list_t |
| | Hardware DB list item.
|
| typedef enum modinfo_type_e | modinfo_type_t |
| | module information type
|
| typedef hal_prop_s | hal_prop_t |
| | HAL device properties.
|
| typedef hal_device_s | hal_device_t |
| | HAL device.
|
| typedef enum resource_types | hd_resource_types_t |
| | resource types: see Resource structures
|
| typedef enum size_units | hd_size_units_t |
| | size units (cf.
|
| typedef enum access_flags | hd_access_flags_t |
| | access types for I/O and memory resources
|
| typedef enum yes_no_flag | hd_yes_no_flag_t |
| typedef enum geo_types | hd_geo_types_t |
| typedef s_serial_t | serial_t |
| | Serial device resource and hardware information.
|
| typedef s_ser_device_t | ser_device_t |
| | Serial device configuration information.
|
| typedef s_hd_t | hd_t |
| | Individual hardware item.
|
Enumerations |
| enum | probe_feature {
pr_memory = 1,
pr_pci,
pr_isapnp,
pr_net,
pr_floppy,
pr_misc,
pr_misc_serial,
pr_misc_par,
pr_misc_floppy,
pr_serial,
pr_cpu,
pr_bios,
pr_monitor,
pr_mouse,
pr_scsi,
pr_usb,
pr_usb_mods,
pr_adb,
pr_modem,
pr_modem_usb,
pr_parallel,
pr_parallel_lp,
pr_parallel_zip,
pr_isa,
pr_isa_isdn,
pr_isdn,
pr_kbd,
pr_prom,
pr_sbus,
pr_int,
pr_braille,
pr_braille_alva,
pr_braille_fhp,
pr_braille_ht,
pr_ignx11,
pr_sys,
pr_bios_vbe,
pr_isapnp_old,
pr_isapnp_new,
pr_isapnp_mod,
pr_braille_baum,
pr_manual,
pr_fb,
pr_veth,
pr_pppoe,
pr_scan,
pr_pcmcia,
pr_fork,
pr_parallel_imm,
pr_s390,
pr_cpuemu,
pr_sysfs,
pr_s390disks,
pr_udev,
pr_block,
pr_block_cdrom,
pr_block_part,
pr_edd,
pr_edd_mod,
pr_bios_ddc,
pr_bios_fb,
pr_bios_mode,
pr_input,
pr_block_mods,
pr_bios_vesa,
pr_cpuemu_debug,
pr_scsi_noserial,
pr_wlan,
pr_bios_crc,
pr_hal,
pr_bios_vram,
pr_bios_acpi,
pr_bios_ddc_ports_1,
pr_bios_ddc_ports_2,
pr_bios_ddc_ports_3,
pr_bios_ddc_ports_4,
pr_modules_pata,
pr_max,
pr_lxrc,
pr_default,
pr_all
} |
| | flags to control the probing. More...
|
| enum | hw_item {
hw_none = 0,
hw_sys,
hw_cpu,
hw_keyboard,
hw_braille,
hw_mouse,
hw_joystick,
hw_printer,
hw_scanner,
hw_chipcard,
hw_monitor,
hw_tv,
hw_display,
hw_framebuffer,
hw_camera,
hw_sound,
hw_storage_ctrl,
hw_network_ctrl,
hw_isdn,
hw_modem,
hw_network,
hw_disk,
hw_partition,
hw_cdrom,
hw_floppy,
hw_manual,
hw_usb_ctrl,
hw_usb,
hw_bios,
hw_pci,
hw_isapnp,
hw_bridge,
hw_hub,
hw_scsi,
hw_ide,
hw_memory,
hw_dvb,
hw_pcmcia,
hw_pcmcia_ctrl,
hw_ieee1394,
hw_ieee1394_ctrl,
hw_hotplug,
hw_hotplug_ctrl,
hw_zip,
hw_pppoe,
hw_wlan,
hw_redasd,
hw_dsl,
hw_block,
hw_tape,
hw_vbe,
hw_bluetooth,
hw_unknown,
hw_all
} |
| | list types for hd_list() More...
|
| enum | hd_status_value_t { status_no = 1,
status_yes,
status_unknown,
status_new
} |
| | hardware config status values More...
|
| enum | hd_hotplug_t {
hp_none,
hp_pcmcia,
hp_cardbus,
hp_pci,
hp_usb,
hp_ieee1394
} |
| | Various types of hotplug devices. More...
|
| enum | cpu_arch {
arch_unknown = 0,
arch_intel,
arch_alpha,
arch_sparc,
arch_sparc64,
arch_ppc,
arch_ppc64,
arch_68k,
arch_ia64,
arch_s390,
arch_s390x,
arch_arm,
arch_mips,
arch_x86_64
} |
| | CPU architecture. More...
|
| enum | boot_arch {
boot_unknown = 0,
boot_lilo,
boot_milo,
boot_aboot,
boot_silo,
boot_ppc,
boot_elilo,
boot_s390,
boot_mips,
boot_grub
} |
| enum | modinfo_type_e { mi_none = 0,
mi_pci,
mi_other
} |
| | module information type More...
|
| enum | hal_prop_type_t {
p_invalid,
p_string,
p_int32,
p_uint64,
p_double,
p_bool,
p_list
} |
| | HAL device property types. More...
|
| enum | resource_types {
res_any,
res_phys_mem,
res_mem,
res_io,
res_irq,
res_dma,
res_monitor,
res_size,
res_disk_geo,
res_cache,
res_baud,
res_init_strings,
res_pppd_option,
res_framebuffer,
res_hwaddr,
res_link,
res_wlan
} |
| | resource types: see Resource structures More...
|
| enum | size_units {
size_unit_cm,
size_unit_cinch,
size_unit_byte,
size_unit_sectors,
size_unit_kbyte,
size_unit_mbyte,
size_unit_gbyte,
size_unit_mm
} |
| | size units (cf. More...
|
| enum | access_flags { acc_unknown,
acc_ro,
acc_wo,
acc_rw
} |
| | access types for I/O and memory resources More...
|
| enum | yes_no_flag { flag_unknown,
flag_no,
flag_yes
} |
| enum | geo_types { geo_physical = 0,
geo_logical,
geo_bios_edd,
geo_bios_legacy
} |
Functions |
| void | hd_scan (hd_data_t *hd_data) |
| | the actual hardware scan
|
| hd_data_t * | hd_free_hd_data (hd_data_t *hd_data) |
| | Free all data.
|
| hd_t * | hd_free_hd_list (hd_t *hd) |
| | Free hardware items returned by e.g. hd_list().
|
| void | hd_set_probe_feature (hd_data_t *hd_data, enum probe_feature feature) |
| void | hd_clear_probe_feature (hd_data_t *hd_data, enum probe_feature feature) |
| int | hd_probe_feature (hd_data_t *hd_data, enum probe_feature feature) |
| void | hd_set_probe_feature_hw (hd_data_t *hd_data, hd_hw_item_t item) |
| enum probe_feature | hd_probe_feature_by_name (char *name) |
| char * | hd_probe_feature_by_value (enum probe_feature feature) |
| int | hd_module_is_active (hd_data_t *hd_data, char *mod) |
| hd_t * | hd_base_class_list (hd_data_t *hd_data, unsigned base_class) |
| hd_t * | hd_sub_class_list (hd_data_t *hd_data, unsigned base_class, unsigned sub_class) |
| hd_t * | hd_bus_list (hd_data_t *hd_data, unsigned bus) |
| const char * | hd_busid_to_hwcfg (int busid) |
| hd_t * | hd_list (hd_data_t *hd_data, hd_hw_item_t item, int rescan, hd_t *hd_old) |
| hd_t * | hd_list_with_status (hd_data_t *hd_data, hd_hw_item_t item, hd_status_t status) |
| hd_t * | hd_list2 (hd_data_t *hd_data, hd_hw_item_t *items, int rescan) |
| hd_t * | hd_list_with_status2 (hd_data_t *hd_data, hd_hw_item_t *items, hd_status_t status) |
| void | hd_add_driver_data (hd_data_t *hd_data, hd_t *hd) |
| int | hd_has_pcmcia (hd_data_t *hd_data) |
| int | hd_usb_support (hd_data_t *hd_data) |
| int | hd_smp_support (hd_data_t *hd_data) |
| int | hd_mac_color (hd_data_t *hd_data) |
| int | hd_color (hd_data_t *hd_data) |
| int | hd_is_uml (hd_data_t *hd_data) |
| unsigned | hd_display_adapter (hd_data_t *hd_data) |
| unsigned | hd_boot_disk (hd_data_t *hd_data, int *matches) |
| enum cpu_arch | hd_cpu_arch (hd_data_t *hd_data) |
| enum boot_arch | hd_boot_arch (hd_data_t *hd_data) |
| hd_t * | hd_get_device_by_idx (hd_data_t *hd_data, unsigned idx) |
| void | hd_set_hw_class (hd_t *hd, hd_hw_item_t hw_class) |
| int | hd_is_hw_class (hd_t *hd, hd_hw_item_t hw_class) |
| int | hd_is_sgi_altix (hd_data_t *hd_data) |
| char * | hd_version (void) |
| hal_prop_t * | hd_free_hal_properties (hal_prop_t *prop) |
| hal_prop_t * | hd_read_properties (const char *udi) |
| int | hd_write_properties (const char *udi, hal_prop_t *prop) |
| int | hd_change_status (const char *id, hd_status_t status, const char *config_string) |
| int | hd_change_config_status (hd_data_t *hd_data, const char *id, hd_status_t status, const char *config_string) |
| int | hd_read_mmap (hd_data_t *hd_data, char *name, unsigned char *buf, off_t start, unsigned size) |
| str_list_t * | hddb_get_packages (hd_data_t *hd_data) |
| void | hddb_add_info (hd_data_t *hd_data, hd_t *hd) |
| void | hddb_dump_raw (hddb2_data_t *hddb, FILE *f) |
| void | hddb_dump (hddb2_data_t *hddb, FILE *f) |
| void | hd_dump_entry (hd_data_t *hd_data, hd_t *hd, FILE *f) |
| cdrom_info_t * | hd_read_cdrom_info (hd_data_t *hd_data, hd_t *hd) |