Created PciDevice class.
This commit is contained in:
parent
548527c302
commit
3e92aab2e7
10
src/pci_passthrough_assist/pci_device.py
Normal file
10
src/pci_passthrough_assist/pci_device.py
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
from pci_passthrough_assist.pci import driver_of_pci_device
|
||||||
|
|
||||||
|
|
||||||
|
class PciDevice:
|
||||||
|
|
||||||
|
def __init__(self, device_id: str):
|
||||||
|
self.device_id = device_id
|
||||||
|
|
||||||
|
def driver_name(self) -> str:
|
||||||
|
return driver_of_pci_device(self.device_id)
|
||||||
Loading…
Reference in a new issue