hwdata.PCI

Module hwdata :: Class PCI |
[hide private]
[frames] | no frames]

# Class PCI

source code

Interace to pci.ids from hwdata package

Instance Methods | [hide private]
__init__(self, filename=None) Load pci.ids from file to internal data structure. | source code
get_vendor(self, vendor) Return description of vendor. | source code
get_device(self, vendor, device) Return description of device. | source code

Class Variables | [hide private]
| filename = ``'``/usr/share/hwdata/pci.ids``'``
| devices = `None`

Method Details | [hide private]

### __init__(self, filename=None) (Constructor) | source code
Load pci.ids from file to internal data structure. parameter 'filename' can specify location of this file

### get_vendor(self, vendor) | source code
Return description of vendor. Parameter is two byte code in hexa. If vendor is unknown None is returned.

### get_device(self, vendor, device) | source code
Return description of device. Parameters are two byte code variables in hexa. If device is unknown None is returned.