]> mj.ucw.cz Git - pciutils.git/commit
libpci: Implement virtual config space for provides without access to config space
authorPali Rohár <pali@kernel.org>
Sun, 2 Jan 2022 12:33:12 +0000 (13:33 +0100)
committerMartin Mareš <mj@ucw.cz>
Fri, 15 Apr 2022 21:47:37 +0000 (23:47 +0200)
commit08609192656497bc1473a19acccb7779f477d11a
tree0816637549a3531f947918407257d70e1650f4a4
parent72cabfbb12ad48bd4cdd5ecbe72f882197e2dac6
libpci: Implement virtual config space for provides without access to config space

Add a new pci_dev member no_config_access which signals that there is no
access to config space for particular device. Reading operation in this
case should return data from emulated virtual config space. For provides
there is a new helper function pci_generic_read() which emulates config
spaces based on struct pci_dev members.
lib/Makefile
lib/emulated.c [new file with mode: 0644]
lib/internal.h
lib/pci.h