Created PciDevice class.

This commit is contained in:
Filip Strajnar 2024-10-26 19:02:33 +02:00
parent 548527c302
commit 3e92aab2e7

View 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)