]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Really check if PCI is offline
authorslavash <slavash@FreeBSD.org>
Wed, 5 Dec 2018 13:17:45 +0000 (13:17 +0000)
committerslavash <slavash@FreeBSD.org>
Wed, 5 Dec 2018 13:17:45 +0000 (13:17 +0000)
commit5a511ab0cd2f64e6ab03b194b8b34f17dc44e61b
tree8ee5090f447be62e25831fa098dafcd15950cdd6
parentb2f6cad4de352970a0c625bd3505f453513dbf31
linuxkpi: Really check if PCI is offline

Currently we always return false if for PCI offline query.
Try to read PCI config, if the return value if 0xffff probably the
PCI is offline.

Approved by:    hselasky (mentor)
MFC after:      1 week
Sponsored by:   Mellanox Technologies
sys/compat/linuxkpi/common/include/linux/pci.h