Introduction
This python script is published here on 4/2/2016. That just an sample code for demoing the capability of python language to read/write IO port via CorePy.
It is changed to PciScanSample1.py and another two PciScan sample scripts are also published.
The another two samples demo how to read/write IO port by EfiPy2 new X86Processor class in EfiPy2.Lib.X86Processor.
Formal PciScan script
And for EfiPy2, the formal PciScan script is here.
This script can dump PCI device ID and Device ID, its device name and class name will be dumped as well.
The device name and class name data base is got from pci.ids which is also used popular Unix-like lspci in pciutils package.
The new github repository pciid.py is duty on parsing pci.ids to python dictionary in here and here.
This is the result after launch PciScan.py in Qemu.
No comments:
Post a Comment