Ceri Davies wrote: >> Interfaces Imported: >> >> ------------------------------------------------------------------ >> | OS Type | Interface | Purpose | >> ------------------------------------------------------------------ >> | FreeBSD | /dev/pci | Scan file /dev/pci to read PCI | >> | | PCIOCREAD | device data | >> ------------------------------------------------------------------ >> > > FWIW, I think you'll need to use PCIOGETCONF as well. > > Ceri > Both interfaces are OK for this project to get the PCI device information that the product required. The PCIOGETCONF interface is even more easy to implement. The reason the project team selected the PCIOCREAD interface is that, the PCIOGETCONF interface was broken between recent major releases as described in the FreeBSD release document. To use one binary to cover all recent FreeBSD releases, the project team selected the PCIOCREAD interface.
Frank.
