Defines | |
#define | PCI_IDS_MAX_LINE_LEN 512 |
Maximum length of lines in pci.ids. | |
Functions | |
void | pci_ids_line_iter_init () |
Initialize the pci.ids line iterator to the beginning of the file. | |
char * | pci_ids_line_iter_get_line (unsigned int *line_len) |
Get the next line from pci.ids. | |
dbus_bool_t | pci_ids_line_iter_has_more () |
See if there are more lines to process in pci.ids. | |
void | pci_ids_find (int vendor_id, int product_id, int subsys_vendor_id, int subsys_product_id, char **vendor_name, char **product_name, char **subsys_vendor_name, char **subsys_product_name) |
Find the names for a PCI device. | |
dbus_bool_t | pci_ids_load (const char *path) |
Load the PCI database used for mapping vendor, product, subsys_vendor and subsys_product numbers into names. | |
dbus_bool_t | pci_ids_free () |
Free resources used by to store the PCI database. | |
char * | pci_compute_udi (HalDevice *d, int append_num) |
This function will compute the device uid based on other properties of the device. | |
void | pci_add_caps_from_class (HalDevice *d, int dev_class, int dev_sub_class, int dev_proto) |
Set capabilities from PCI class. | |
void | visit_device_pci_got_parent (HalDevice *parent, void *data1, void *data2) |
Callback when the parent is found or if there is no parent.. | |
void | visit_device_pci (const char *path, struct sysfs_device *device) |
Visitor function for PCI device. | |
void | linux_pci_init () |
Init function for PCI handling. | |
void | linux_pci_detection_done () |
This function is called when all device detection on startup is done in order to perform optional batch processing on devices. | |
void | linux_pci_shutdown () |
Shutdown function for PCI handling. | |
Variables | |
char * | pci_ids = NULL |
Pointer to where the pci.ids file is loaded. | |
unsigned int | pci_ids_len |
Length of data store at at pci_ids. | |
unsigned int | pci_ids_iter_pos |
Iterator position into pci_ids. |
|
Set capabilities from PCI class. This is a function from hell, maybe some searchable data-structure would be better...
Definition at line 372 of file linux_pci.c. References ds_add_capability(), ds_property_set_string(), and HalDevice. Referenced by visit_device_pci(). |
|
This function will compute the device uid based on other properties of the device. Specifically, the following properties are required:
Other properties may also be used. Requirements for uid:
Definition at line 345 of file linux_pci.c. References ds_property_get_int(), and HalDevice. Referenced by visit_device_pci_got_parent(). |
|
Find the names for a PCI device. The pointers returned are only valid until the next invocation of this function.
Definition at line 125 of file linux_pci.c. References pci_ids_line_iter_get_line(), pci_ids_line_iter_has_more(), pci_ids_line_iter_init(), and PCI_IDS_MAX_LINE_LEN. Referenced by visit_device_pci(). |
|
Free resources used by to store the PCI database.
Definition at line 315 of file linux_pci.c. References pci_ids. Referenced by linux_pci_shutdown(). |
|
Get the next line from pci.ids.
Definition at line 78 of file linux_pci.c. References pci_ids, pci_ids_iter_pos, pci_ids_len, and PCI_IDS_MAX_LINE_LEN. Referenced by pci_ids_find(). |
|
See if there are more lines to process in pci.ids.
Definition at line 104 of file linux_pci.c. References pci_ids_iter_pos, and pci_ids_len. Referenced by pci_ids_find(). |
|
Load the PCI database used for mapping vendor, product, subsys_vendor and subsys_product numbers into names.
Definition at line 278 of file linux_pci.c. References DIE, pci_ids, and pci_ids_len. Referenced by linux_pci_init(). |
|
Visitor function for PCI device. This function parses the attributes present and creates a new HAL device based on this information.
Definition at line 651 of file linux_pci.c. References drivers_lookup(), ds_device_async_find_by_key_value_string(), ds_device_new(), ds_property_set_int(), ds_property_set_string(), get_parent_sysfs_path(), HAL_LINUX_HOTPLUG_TIMEOUT, HalDevice, is_probing, parse_hex(), pci_add_caps_from_class(), pci_ids_find(), and visit_device_pci_got_parent(). Referenced by visit_device(). |
|
Callback when the parent is found or if there is no parent.. This is where we get added to the GDL..
Definition at line 788 of file linux_pci.c. References ds_device_find(), ds_gdl_add(), ds_property_set_string(), HalDevice, pci_compute_udi(), rename_and_merge(), and HalDevice_s::udi. Referenced by visit_device_pci(). |