Commit graph

17 commits

Author SHA1 Message Date
Filip Strajnar 8ba146d31e Check if iommu_group devices path exists, before listing it. 2024-10-27 10:18:40 +01:00
Filip Strajnar 0a346daaa7 Correctly assert existance of device. 2024-10-27 10:15:04 +01:00
Filip Strajnar 7e21cf58ea Driver name is now responsibility of PciDevice class instead of a separate function. 2024-10-27 10:14:34 +01:00
Filip Strajnar 8485c36218 Assert that PCI device with specified ID exists. 2024-10-27 10:06:09 +01:00
Filip Strajnar eb1bf1f273 Check if driver bind path exists before binding. 2024-10-27 09:56:52 +01:00
Filip Strajnar 29b007c2af Only unbind if device is bound to a driver. 2024-10-26 22:42:48 +02:00
Filip Strajnar 6c8f248e3e Added set_driver_override method. 2024-10-26 21:37:10 +02:00
Filip Strajnar 5a71e7611f Updated gitignore. 2024-10-26 20:44:36 +02:00
Filip Strajnar 605b40a8f7 Added methods vendor_code and device_code. 2024-10-26 20:40:20 +02:00
Filip Strajnar 6cc3a29828 Created unbind_driver and bind_to_driver. 2024-10-26 19:54:30 +02:00
Filip Strajnar 71b9ee9c58 Added devices_in_iommu_group method. 2024-10-26 19:40:49 +02:00
Filip Strajnar a29e8ba0ee Added method that checks if device is VGA. 2024-10-26 19:13:59 +02:00
Filip Strajnar 3e92aab2e7 Created PciDevice class. 2024-10-26 19:02:33 +02:00
Filip Strajnar 548527c302 Added a function that gets name of PCI device's driver. 2024-10-26 18:43:56 +02:00
Filip Strajnar 111caa2a5e Added convenience functions for PCI device and driver IDs. 2024-10-26 18:33:45 +02:00
Filip Strajnar b98b76d4e4 Ensure script is ran as root. 2024-10-26 18:25:37 +02:00
Filip Strajnar 5f39ae7138 Initial project structure. 2024-10-26 17:39:02 +02:00