summaryrefslogtreecommitdiff
path: root/ls-vpd.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve the VPD fix to warn the user that VPD decoding was aborted.Martin Mares2009-07-041-1/+1
|
* Stop early if the VPD is corruptMatthew Wilcox2009-07-041-1/+1
| | | | | | | | | I have several cards which report more-or-less garbage in their VPD. It can take an extraordinarily long time to read all their VPD and none of it is of interest. Instead, if we find an unknown resource type, just stop trying to read any more. Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
* lspci: Print vendor-/system-specific VPD item ids correctlyBen Hutchings2009-06-291-13/+7
| | | | | | | | | | | | Vendor- and system-specific VPD items are matched only by their first character, so we cannot read the item id from the matching structure. There is a similar issue with unknown VPD items, which is handled by creating a matching structure dynamically. We can handle both cases using the static matching structure and the actual item id, so do that. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
* Ignore NUL character at the end of VPD strings.Martin Mares2008-11-221-0/+2
| | | | Broadcom Ethernet controllers have been observed to use NUL-terminated strings.
* Accompany VPD items with human-readable names.Martin Mares2008-11-221-31/+76
|
* Copyright is held by Solarflare, not Ben personallyMartin Mares2008-11-221-1/+3
| | | | (Changed at Ben's request.)
* Decode VPD fully only with -vv or higher.Martin Mares2008-11-211-0/+2
| | | | This brings the behavior in line with the other capabilities.
* Split lspci to multiple source files.Martin Mares2008-11-211-0/+166