#356 closed enhancement (fixed)
PCI info utility
| Reported by: | Jiri Svoboda | Owned by: | Jiri Svoboda |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.9.1 |
| Component: | helenos/unspecified | Version: | mainline |
| Keywords: | Cc: | ||
| Blocker for: | Depends on: | ||
| See also: |
Description
The USB team delivered two very useful utilities lsusb and usbinfo that allow listing all connected USB devices (with or without driver attached) and displaying their standard properties (vendor/device ID, descriptors, strings, configurations, interfaces, endpoints).
It would be nice to be able to do something similar for PCI, in a similar fashion to Linux lspci (e.g. lspci -vvv).
Attachments (2)
Change History (12)
follow-up: 2 comment:1 by , 14 years ago
comment:2 by , 14 years ago
Replying to jermar:
IIRC, there was such an utility in Lenka's DDF branch. It just did not get merged. Would be worth investigating.
Just checked-out last revision of Lenka's branch. It was necessary to remove -Werror in order to compile it (well, it was the easiest way). Few extra kicks were needed to compile the lspci which is not part of the normal build. It works (see screenshot).
The used library is probably taken directly from Linux and both the library and the utility are licensed under GPL. Other problem/feature is that part of the binary are PCI ids of all devices, making the executable almost 1M in size.
Question is whether we want that into mainline?
by , 14 years ago
| Attachment: | lspci_dd_rev81.png added |
|---|
lspci in Lenka's branch (qemu -cdrom image.iso -vga vmware -usb)
comment:3 by , 14 years ago
Actually this is the lspci which once was part of the mainline and I was not referring to it.
I was rather referring to her srv/dd server, although I never saw it running nor I really know what exactly it is capable of doing. It looks like it has some code for scanning the PCI, both for Intel and Sun implementations.
comment:4 by , 14 years ago
Only for completeness, I am attaching another screenshot. Seems that dd was a precursor to DDF, because it also has some PCI device drivers structures. However, only serial driver is implemented (something like cat /dev/com1 would probably work, have no means to test it).
And yes, there is some PCI bus scanning for Intel and Sun.
by , 14 years ago
| Attachment: | srvdd_dd_rev81.png added |
|---|
srv/dd in Lenka's branch (qemu -cdrom image.iso -vga vmware -usb)
comment:5 by , 14 years ago
| Milestone: | 0.5.0 → 0.5.1 |
|---|
comment:6 by , 11 years ago
| Milestone: | 0.5.1 → 0.5.2 |
|---|
comment:7 by , 9 years ago
| Milestone: | 0.6.1 |
|---|
comment:8 by , 7 years ago
| Owner: | set to |
|---|---|
| Status: | new → accepted |
comment:9 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
I added a utility named pci and corresponding backend in pciintel driver, plus IPC protocol in commit 7acd787ef6db58d28e222cd14600149ac8c9ff72. It is basic, but it works.
comment:10 by , 7 years ago
| Milestone: | → 0.9.1 |
|---|

IIRC, there was such an utility in Lenka's DDF branch. It just did not get merged. Would be worth investigating.