fatal error: pci_iov_if.h: No such file or directory

ap2020

New Member


Messages: 4

Hi,
I am compiling a driver for sr-iov and need the following header to be included.
Code:
#include <dev/pci/pci_iov.h>
to call pci_iov_attach_name(9) and set the /dev/iov entry.
However, compilation throws a fatal error in the header.
Code:
/usr/src/sys/dev/pci/pci_iov.h:33:10: fatal error: pci_iov_if.h: No such file or directory.
I did not find the missing header file in the /usr/src/sys/dev/pci/ folder. The freebsd/freebsd-src/tree/main/sys/dev/pci folder also does not have the header.
Commenting out pci_iov_if.h in pci_iov.h resolves the compiler error but that may not be the solution.
How can I resolve this error? Does pci_iov_if.h need to be generated?
Version: FreeBSD 13.0-RELEASE

Thanks.
 
OP
A

ap2020

New Member


Messages: 4

Hi,
I am compiling a driver for sr-iov and need the following header to be included.
Code:
#include <dev/pci/pci_iov.h>
to call pci_iov_attach_name(9) and set the /dev/iov entry.
However, compilation throws a fatal error in the header.
Code:
/usr/src/sys/dev/pci/pci_iov.h:33:10: fatal error: pci_iov_if.h: No such file or directory.
I did not find the missing header file in the /usr/src/sys/dev/pci/ folder. The freebsd/freebsd-src/tree/main/sys/dev/pci folder also does not have the header.
Commenting out pci_iov_if.h in pci_iov.h resolves the compiler error but that may not be the solution.
How can I resolve this error? Does pci_iov_if.h need to be generated?
Version: FreeBSD 13.0-RELEASE

Thanks.
This is resolved.
 
Top