]> git.ipfire.org Git - thirdparty/pciutils.git/commit
setpci: Check if standard register on device exist
authorPali Rohár <pali@kernel.org>
Thu, 16 Jun 2022 14:14:56 +0000 (16:14 +0200)
committerPali Rohár <pali@kernel.org>
Sun, 30 Oct 2022 12:48:05 +0000 (13:48 +0100)
commit94a53fc6ec2ee74ff36e4a13ec8081d6697f630f
tree6a08b046bd11aa457c5fa5819315b8e849dccb81
parent13b4913199b513b9cdce1ac05c7237e9cb31b8e2
setpci: Check if standard register on device exist

Some standard registers are available only on device with header type 0,
some only on header type 1, some other only on header type 2 and some on
header type 0 and 1. Add definitions which registers are available on which
header type and add check to access only available registers.
setpci.c