PSARC 2008/591 PCI Device Detection on FreeBSD
Frank Che
Frank.Che at Sun.COM
Fri Sep 19 01:18:38 PDT 2008
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.
More information about the opensolaris-arc
mailing list