aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/lspci.c
AgeCommit message (Collapse)Author
2014-05-20lspci text output: add -i, allow -n when disabledIsaac Dunham
-i is how standard lspci handles changing the PCI ID database. lspci -n should be a no-op when text is disabled.
2014-05-18Cleanup pass on lspciRob Landley
2013-08-07This is the preliminary version of lspci text output support (the locationIsaac Dunham
of pci.ids is hard-coded to /usr/share/misc/pci.ids, as found on Debian/Ubuntu). +88 lines in two files, including reformatting, comments, whitespace, and build configuration as well as new code. The changes: -Add library code to look up descriptions. -Add a counter for -n (for the sake of -nn) -Add the file stream "db" to GLOBALS and open it conditionally -Add name fields to bufs -Look up text if enabled and -n is passed never or twice -Print text if lookup succeeded
2013-07-27Fix lspci -eFelix Janda
2013-07-26lspci: use toybuf instead of dynamic memory allocationFelix Janda
2013-07-26I've written an lspci implementation.Isaac Dunham
Currently it supports -emkn; -e is an extension ("class" is a 24-bit number, but lspci only shows 16 bits; one person on the Puppy forums mentioned that they need those last 8 bits). -n is a no-op for compatability with standard lspci.