MythTV  master
Classes | Functions | Variables
hardwareprofile.devicelist Namespace Reference

Classes

class  Device
 
class  PCIDevice
 
class  USBDevice
 

Functions

def cat (file)
 
def get_class (class_id)
 
def device_factory (cls, id)
 
def get_device_list ()
 

Variables

dictionary DEVICE_CLASS_LIST
 
list BUS_LIST = [ 'pci', 'usb' ]
 
string PCI_PATH = '/sys/bus/pci/devices/'
 
list DATA_LIST
 
 pci = DeviceMap('pci')
 
 usb = DeviceMap('usb')
 

Function Documentation

◆ cat()

def hardwareprofile.devicelist.cat (   file)

◆ get_class()

def hardwareprofile.devicelist.get_class (   class_id)

Definition at line 101 of file devicelist.py.

◆ device_factory()

def hardwareprofile.devicelist.device_factory (   cls,
  id 
)

Definition at line 114 of file devicelist.py.

Referenced by hardwareprofile.devicelist.get_device_list().

◆ get_device_list()

def hardwareprofile.devicelist.get_device_list ( )

Definition at line 168 of file devicelist.py.

Variable Documentation

◆ DEVICE_CLASS_LIST

dictionary hardwareprofile.devicelist.DEVICE_CLASS_LIST

Definition at line 27 of file devicelist.py.

◆ BUS_LIST

list hardwareprofile.devicelist.BUS_LIST = [ 'pci', 'usb' ]

Definition at line 88 of file devicelist.py.

◆ PCI_PATH

string hardwareprofile.devicelist.PCI_PATH = '/sys/bus/pci/devices/'

Definition at line 89 of file devicelist.py.

◆ DATA_LIST

list hardwareprofile.devicelist.DATA_LIST
Initial value:
1 = [ 'vendor',
2  'device',
3  'subsystem_vendor',
4  'subsystem_device']

Definition at line 90 of file devicelist.py.

◆ pci

hardwareprofile.devicelist.pci = DeviceMap('pci')

◆ usb

hardwareprofile.devicelist.usb = DeviceMap('usb')

Definition at line 110 of file devicelist.py.