Part of lp.hardwaredb.scripts.hwdbsubmissions View In Hierarchy
| Method | __init__ | HALDevice constructor. |
| Method | device_id | See BaseDevice. |
| Method | root_device_ids | The vendor and product IDs of the root device. |
| Method | is_pci | True, if this is a PCI device, else False. |
| Method | pci_class_info | Parse the udev property PCI_SUBSYS_ID. |
| Method | pci_class | See BaseDevice. |
| Method | pci_subclass | See BaseDevice. |
| Method | pci_ids | The PCI vendor and product IDs. |
| Method | is_usb | True, if this is a USB device, else False. |
| Method | usb_ids | The vendor ID, product ID, product version for USB devices. |
| Method | usb_vendor_id | See BaseDevice. |
| Method | usb_product_id | See BaseDevice. |
| Method | is_scsi_device | True, if this is a SCSI device, else False. |
| Method | scsi_vendor | The SCSI vendor name of the device or None for Non-SCSI devices. |
| Method | scsi_model | The SCSI model name of the device or None for Non-SCSI devices. |
| Method | raw_bus | See BaseDevice. |
| Method | is_root_device | See BaseDevice. |
| Method | getVendorOrProduct | Return the vendor or product of this device. |
| Method | vendor | See BaseDevice. |
| Method | product | See BaseDevice. |
| Method | getVendorOrProductID | Return the vendor or product ID of this device. |
| Method | vendor_id | See BaseDevice. |
| Method | product_id | See BaseDevice. |
| Method | driver_name | See BaseDevice. |
| Method | scsi_controller | See BaseDevice. |
| Method | id | Undocumented |
Inherited from BaseDevice:
| Method | addChild | Add a child device and set the child's parent. |
| Method | vendor_id_for_db | The vendor ID in the representation needed for the HWDB tables. |
| Method | product_id_for_db | The product ID in the representation needed for the HWDB tables. |
| Method | translateScsiBus | Return the real bus of a device where raw_bus=='scsi'. |
| Method | translatePciBus | Undocumented |
| Method | real_bus | Return the bus this device connects to on the host side. |
| Method | is_real_device | True, if the HAL device correspends to a real device. |
| Method | getRealChildren | Return the list of real child devices of this devices. |
| Method | has_reliable_data | Can this device be stored in the HWDB? |
| Method | getScsiVendorAndModelName | Separate vendor and model name of SCSI decvices. |
| Method | getDriver | Return the HWDriver instance associated with this device. |
| Method | ensureVendorIDVendorNameExists | Ensure that a useful HWVendorID record for self.vendor_id exists. |
| Method | createDBData | Create HWDB records for this HAL device and its children. |
| Method | createDBDriverData | Create HWDB records for drivers of this device and its children. |
| Parameters | udevdata | The udev data for this device |
| sysfs_data | sysfs data for this device. | |
| parser | The parser processing a submission. (type: SubmissionParser) |
| Returns | (PCI class, PCI sub-class, version) for a PCI device or (None, None, None) for other devices. | |
| Returns | A dictionary containing the vendor and product IDs. The IDs are set to None for Non-PCI devices. | |
| Returns | A dictionary containing the vendor and product IDs and the product version for USB devices. The IDs are set to None for Non-USB devices. | |
Return the vendor or product of this device. :return: The vendor or product data for this device. :param type_: 'vendor' or 'product'
Return the vendor or product ID of this device. :return: The vendor or product ID for this device. :param type_: 'vendor' or 'product'