libhd 5.0
|
#include <stdio.h>
#include <inttypes.h>
#include <termios.h>
#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | hd_status_t |
Hardware status. More... | |
struct | hd_id_t |
Holds ID + name pairs. More... | |
struct | s_str_list_t |
String list type. More... | |
struct | hd_bitmap_t |
Bitmap data type. More... | |
struct | memory_range_t |
for memory areas More... | |
struct | smp_info_t |
smp info according to Intel smp spec (ia32) More... | |
struct | vbe_mode_info_s |
VESA BIOS mode information item. More... | |
struct | vbe_info_t |
VESA BIOS extensions information Also includes a VESA mode list. More... | |
struct | cpq_ctlorder_t |
Compaq Controller Order EV (CQHORD) definition. More... | |
struct | bios32_info_t |
struct | smbios_any_t |
common part of all smbios_* types More... | |
struct | smbios_biosinfo_t |
BIOS related information. More... | |
struct | smbios_sysinfo_t |
overall system related information More... | |
struct | smbios_boardinfo_t |
motherboard related information More... | |
struct | smbios_chassis_t |
chassis information More... | |
struct | smbios_processor_t |
processor information More... | |
struct | smbios_cache_t |
cache information More... | |
struct | smbios_connect_t |
port connector information More... | |
struct | smbios_slot_t |
system slot information More... | |
struct | smbios_onboard_t |
on board devices information More... | |
struct | smbios_oem_t |
OEM information. More... | |
struct | smbios_config_t |
system config options More... | |
struct | smbios_lang_t |
language information More... | |
struct | smbios_group_t |
group associations More... | |
struct | smbios_memarray_t |
physical memory array (consists of several memory devices) More... | |
struct | smbios_memdevice_t |
memory device More... | |
struct | smbios_memerror_t |
32-bit memory error information More... | |
struct | smbios_memarraymap_t |
memory array mapped address More... | |
struct | smbios_memdevicemap_t |
memory device mapped address More... | |
struct | smbios_mouse_t |
pointing device (aka 'mouse') information More... | |
struct | smbios_secure_t |
hardware security More... | |
struct | smbios_power_t |
system power controls More... | |
struct | smbios_mem64error_t |
64-bit memory error information More... | |
union | u_hd_smbios_t |
SMBIOS list item. 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 | s_pci_t |
structure holding the (raw) PCI data More... | |
struct | usb_s |
raw USB data More... | |
struct | isapnp_res_t |
ISA-PnP resource. More... | |
struct | isapnp_card_t |
ISA-PnP card information (raw) More... | |
struct | isapnp_t |
ISA-PnP collected card information struct. More... | |
struct | isapnp_dev_t |
ISA-PnP device information struct. More... | |
struct | scsi_s |
raw SCSI data More... | |
struct | devtree_s |
PROM tree on PPC. More... | |
struct | pmac_mb_def |
PowerMac model matching. More... | |
struct | ccw_s |
Device/CU model numbers for S/390. More... | |
struct | joystick_s |
Joystick details. More... | |
struct | cdrom_info_s |
special CDROM entry More... | |
struct | floppy_info_t |
Floppy information note: obsolete, will be removed. More... | |
struct | bios_info_t |
bios data (ix86) More... | |
struct | prom_info_t |
prom data (ppc, sparc) More... | |
struct | sys_info_t |
general system data More... | |
struct | monitor_info_t |
monitor (DDC) data More... | |
struct | cpu_info_t |
special cpu entry More... | |
struct | edd_info_t |
enhanced disk data (cf. 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 | res_any_t |
struct | res_mem_t |
struct | res_phys_mem_t |
struct | res_io_t |
struct | res_irq_t |
struct | res_dma_t |
struct | res_size_t |
struct | res_baud_t |
struct | res_cache_t |
struct | res_disk_geo_t |
struct | res_monitor_t |
struct | res_init_strings_t |
struct | res_pppd_option_t |
struct | res_framebuffer_t |
struct | res_hwaddr_t |
struct | res_link_t |
struct | res_wlan_t |
wlan capabilities More... | |
struct | res_fc_t |
union | u_hd_res_t |
libhd resource union More... | |
struct | misc_io_t |
struct | misc_dma_t |
struct | misc_irq_t |
struct | misc_t |
struct | s_serial_t |
Serial device resource and hardware information. More... | |
struct | s_ser_device_t |
Serial device configuration information. More... | |
struct | isdn_parm_s |
ISDN configuration parameter Notes on isdn_parm_t: More... | |
struct | driver_info_any_t |
unspecific info More... | |
struct | driver_info_display_t |
display (monitor) info More... | |
struct | driver_info_module_t |
module info More... | |
struct | driver_info_mouse_t |
mouse protocol info More... | |
struct | driver_info_x11_t |
X11 server info. More... | |
struct | driver_info_isdn_t |
isdn info More... | |
struct | driver_info_dsl_t |
dsl info More... | |
struct | driver_info_kbd_t |
keyboard info More... | |
union | driver_info_u |
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_s |
struct | hd_detail_sys_t |
struct | hd_detail_scsi_t |
struct | hd_detail_devtree_t |
struct | hd_detail_ccw_t |
struct | hd_detail_joystick_t |
union | hd_detail_t |
struct | hd_manual_s |
Manually configured hardware information. More... | |
struct | s_hd_t |
Individual hardware item. More... | |
struct | s_hd_t::is_s |
struct | s_hd_t::tag_s |
struct | hd_data_t |
Holds all data accumulated during hardware probing. More... | |
struct | hd_data_t::flag_struct |
Special flags. More... | |
struct | cdb_isdn_vendor |
vendor info More... | |
struct | cdb_isdn_card |
struct | cdb_isdn_vario |
Macros | |
#define | HD_VERSION 0 /* will be set during install */ |
Interface version. | |
#define | HD_MINOR_VERSION 0 /* will be set during install */ |
#define | HD_FULL_VERSION (HD_VERSION * 1000 + HD_MINOR_VERSION) |
#define | HD_DEB_SHOW_LOG (1 << 0) |
#define | HD_DEB_PROGRESS (1 << 1) |
#define | HD_DEB_CREATION (1 << 2) |
#define | HD_DEB_DRIVER_INFO (1 << 3) |
#define | HD_DEB_PCI (1 << 4) |
#define | HD_DEB_ISAPNP (1 << 5) |
#define | HD_DEB_CDROM (1 << 6) |
#define | HD_DEB_NET (1 << 7) |
#define | HD_DEB_FLOPPY (1 << 8) |
#define | HD_DEB_MISC (1 << 9) |
#define | HD_DEB_SERIAL (1 << 10) |
#define | HD_DEB_MONITOR (1 << 11) |
#define | HD_DEB_CPU (1 << 12) |
#define | HD_DEB_BIOS (1 << 13) |
#define | HD_DEB_MOUSE (1 << 14) |
#define | HD_DEB_IDE (1 << 15) |
#define | HD_DEB_SCSI (1 << 16) |
#define | HD_DEB_USB (1 << 17) |
#define | HD_DEB_ADB (1 << 18) |
#define | HD_DEB_MODEM (1 << 19) |
#define | HD_DEB_PARALLEL (1 << 20) |
#define | HD_DEB_ISA (1 << 21) |
#define | HD_DEB_BOOT (1 << 22) |
#define | HD_DEB_HDDB (1 << 23) |
#define | HARDWARE_DIR "/var/lib/hardware" |
libhd's directory | |
#define | TAG_PCI 1 |
PCI ids. | |
#define | TAG_EISA 2 |
EISA ids (monitors, ISA-PnP, modems, mice etc). | |
#define | TAG_USB 3 |
USB ids. | |
#define | TAG_SPECIAL 4 |
Internally used ids. | |
#define | TAG_PCMCIA 5 |
PCMCIA ids. | |
#define | TAG_SDIO 6 |
SDIO ids. | |
#define | ID_VALUE(id) ((id) & 0xffff) |
Get the real id value. | |
#define | ID_TAG(id) (((id) >> 16) & 0xf) |
Get the tag value. | |
#define | MAKE_ID(tag, id_val) ((tag << 16) | (id_val)) |
Combine tag and id value. | |
#define | CDBISDN_VERSION 0x0101 |
#define | PCI_ANY_ID 0xffff |
#define | CDBISDN_P_NONE 0x0 |
#define | CDBISDN_P_IRQ 0x1 |
#define | CDBISDN_P_MEM 0x2 |
#define | CDBISDN_P_IO 0x3 |
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 enum base_classes | hd_base_classes_t |
base class values (superset of PCI classes) | |
typedef enum sc_monitor | hd_sc_monitor_t |
subclass values of bc_monitor | |
typedef enum sc_storage | hd_sc_storage_t |
subclass values of bc_storage | |
typedef enum sc_display | hd_sc_display_t |
subclass values of bc_display | |
typedef enum sc_framebuffer | hd_sc_framebuffer_t |
subclass values of bc_framebuffer | |
typedef enum sc_bridge | hd_sc_bridge_t |
subclass values of bc_bridge | |
typedef enum sc_comm | hd_sc_comm_t |
subclass values of bc_comm | |
typedef enum sc_system | hd_sc_system_t |
subclass values of bc_system | |
typedef enum sc_input | hd_sc_input_t |
subclass values of bc_input | |
typedef enum sc_serial | hd_sc_serial_t |
subclass values of bc_serial | |
typedef enum sc_internal | hd_sc_internal_t |
internal sub class values (bc_internal) | |
typedef enum sc_mouse | hd_sc_mouse_t |
subclass values of bc_mouse | |
typedef enum sc_std | hd_sc_std_t |
subclass values of bc_storage_device | |
typedef enum sc_net_if | hd_sc_net_if_t |
subclass values of bc_network_interface | |
typedef enum sc_multimedia | hd_sc_multimedia_t |
subclass values of bc_multimedia | |
typedef enum sc_keyboard | hd_sc_keyboard_t |
subclass values of bc_keyboard | |
typedef enum sc_hub | hd_sc_hub_t |
subclass values of bc_hub | |
typedef enum sc_camera | hd_sc_camera_t |
subclass values of bc_camera | |
typedef enum sc_modem | hd_sc_modem_t |
subclass values of bc_modem | |
typedef enum sc_dsl | hd_sc_dsl_t |
subclass values of bc_dsl | |
typedef enum pif_usb_e | hd_pif_usb_t |
prog_if's of sc_ser_usb | |
typedef enum pif_cdrom | hd_pif_cdrom_t |
CD-ROM prog_if values. | |
typedef enum pif_s390disk | hd_pif_s390disk_t |
S/390 disk prog_if values. | |
typedef enum bus_types | hd_bus_types_t |
bus type values similar to PCI bridge subclasses | |
typedef struct s_str_list_t | str_list_t |
String list type. | |
typedef struct vbe_mode_info_s | vbe_mode_info_t |
VESA BIOS mode information item. | |
typedef union u_hd_smbios_t | hd_smbios_t |
SMBIOS list item. | |
typedef struct s_udevinfo_t | hd_udevinfo_t |
udev database info | |
typedef struct s_sysfsdrv_t | hd_sysfsdrv_t |
sysfs driver info | |
typedef struct s_pci_t | pci_t |
structure holding the (raw) PCI data | |
typedef enum pci_flags | hd_pci_flags_t |
pci related flags cf. | |
typedef struct usb_s | usb_t |
raw USB data | |
typedef enum isapnp_flags | hd_isapnp_flags_t |
ISA-PnP related flags cf. | |
typedef struct scsi_s | scsi_t |
raw SCSI data | |
typedef struct devtree_s | devtree_t |
PROM tree on PPC. | |
typedef struct ccw_s | ccw_t |
Device/CU model numbers for S/390. | |
typedef struct joystick_s | joystick_t |
Joystick details. | |
typedef struct cdrom_info_s | cdrom_info_t |
special CDROM entry | |
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 struct hddb_list_s | hddb_list_t |
Hardware DB list item. | |
typedef enum modinfo_type_e | modinfo_type_t |
module information type | |
typedef struct hal_prop_s | hal_prop_t |
HAL device properties. | |
typedef struct 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 union u_hd_res_t | hd_res_t |
libhd resource union | |
typedef struct s_serial_t | serial_t |
Serial device resource and hardware information. | |
typedef struct s_ser_device_t | ser_device_t |
Serial device configuration information. | |
typedef struct isdn_parm_s | isdn_parm_t |
ISDN configuration parameter Notes on isdn_parm_t: | |
typedef enum driver_info_type | hd_driver_info_t |
device driver info types | |
typedef union driver_info_u | driver_info_t |
typedef struct hd_manual_s | hd_manual_t |
Manually configured hardware information. | |
typedef struct s_hd_t | hd_t |
Individual hardware item. | |