pci_get_vpd_readonly(device_t dev, const char *kw, const char **vptr);
The pci_get_vpd_readonly() function is used to fetch the value of a sin- gle VPD read-only keyword for the device dev. The keyword to fetch is identified by the two character string kw. If the device supports VPD and provides a read-only value for the requested keyword, then *vptr is set to point at a read-only, null-terminated copy of the value, and pci_get_vpd_readonly() returns zero. If the device does not support VPD or does not provide the requested keyword, then pci_get_vpd_readonly() returns an error. |
|
|