libhd
5.0
|
Macros to handle device and vendor ids. More...
Macros | |
#define | TAG_PCI 1 |
PCI ids. More... | |
#define | TAG_EISA 2 |
EISA ids (monitors, ISA-PnP, modems, mice etc). More... | |
#define | TAG_USB 3 |
USB ids. More... | |
#define | TAG_SPECIAL 4 |
Internally used ids. More... | |
#define | TAG_PCMCIA 5 |
PCMCIA ids. More... | |
#define | TAG_SDIO 6 |
SDIO ids. More... | |
#define | ID_VALUE(id) ((id) & 0xffff) |
Get the real id value. More... | |
#define | ID_TAG(id) (((id) >> 16) & 0xf) |
Get the tag value. More... | |
#define | MAKE_ID(tag, id_val) ((tag << 16) | (id_val)) |
Combine tag and id value. More... | |
Macros to handle device and vendor ids.
Example: to check if an id is a pci id and get its value, do something like this:
#define ID_TAG | ( | id | ) | (((id) >> 16) & 0xf) |
Get the tag value.
Referenced by dump_hid(), dump_hid2(), expand_driver_info(), get_dsl_info(), get_isdn_info(), hd_scan_xtra(), hddb_dump_raw(), hddb_dump_skey(), kbd_driver(), and vend_id2str().
#define ID_VALUE | ( | id | ) | ((id) & 0xffff) |
Get the real id value.
Referenced by add_entry(), dump_hid(), dump_hid2(), expand_driver_info(), get_dsl_info(), get_isdn_info(), hd_modinfo_db(), hd_scan_xtra(), hddb_dump_raw(), hddb_dump_skey(), is_pcmcia_ctrl(), kbd_driver(), parse_id(), and vend_id2str().
#define MAKE_ID | ( | tag, | |
id_val | |||
) | ((tag << 16) | (id_val)) |
Combine tag and id value.
Referenced by add_edid_info(), add_input_dev(), add_kma(), add_mv643xx_eth(), add_pci(), add_scsi_sysfs_info(), add_serial_modem(), add_serial_mouse(), add_uml(), add_xen_network(), add_xen_storage(), add_xpnet(), do_alva(), do_baum(), do_fhp(), do_fhp_new(), do_ht(), do_zip(), expand_driver_info(), get_input_devices(), get_serial_devs(), get_usb_devs(), hd_module_list(), hd_pci_complete_data(), hd_read_ibmebus(), hd_read_mmc(), hd_read_of_platform(), hd_read_ps3_system_bus(), hd_read_sdio(), hd_read_uisvirtpci(), hd_read_vio(), hd_read_virtio(), hd_read_visorbus(), hd_read_vm(), hd_read_xen(), hd_scan_braille(), hd_scan_dsl(), hd_scan_fb(), hd_scan_isdn(), hd_scan_kbd(), hd_scan_serial(), hd_scan_xtra(), hddb_add_info(), int_mouse(), kbd_driver(), name2eisa_id(), parse_id(), pcmcia_read_data(), and set_class_entries().
#define TAG_EISA 2 |
EISA ids (monitors, ISA-PnP, modems, mice etc).
Referenced by add_edid_info(), add_serial_modem(), add_serial_mouse(), dump_hid(), dump_hid2(), get_isdn_info(), hd_scan_fb(), hd_scan_isdn(), hddb_dump_raw(), hddb_dump_skey(), name2eisa_id(), parse_id(), and vend_id2str().
#define TAG_PCI 1 |
#define TAG_PCMCIA 5 |
PCMCIA ids.
Referenced by hd_scan_xtra(), parse_id(), pcmcia_read_data(), and vend_id2str().
#define TAG_SDIO 6 |
SDIO ids.
Referenced by hd_read_sdio(), hd_scan_xtra(), and parse_id().
#define TAG_SPECIAL 4 |
Internally used ids.
Referenced by add_input_dev(), add_kma(), add_serial_modem(), add_serial_mouse(), add_uml(), add_xen_network(), add_xen_storage(), add_xpnet(), do_alva(), do_baum(), do_fhp(), do_fhp_new(), do_ht(), do_zip(), expand_driver_info(), get_input_devices(), get_isdn_info(), hd_module_list(), hd_read_ibmebus(), hd_read_mmc(), hd_read_ps3_system_bus(), hd_read_uisvirtpci(), hd_read_vio(), hd_read_virtio(), hd_read_visorbus(), hd_read_vm(), hd_read_xen(), hd_scan_braille(), hd_scan_dsl(), hd_scan_isdn(), hd_scan_kbd(), hd_scan_xtra(), hddb_add_info(), int_mouse(), kbd_driver(), parse_id(), set_class_entries(), and vend_id2str().
#define TAG_USB 3 |
USB ids.
Referenced by get_dsl_info(), get_isdn_info(), get_serial_devs(), get_usb_devs(), hd_scan_xtra(), kbd_driver(), parse_id(), set_class_entries(), and vend_id2str().