<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 6, 2023 at 11:06 AM Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 4/6/23 12:42, enh wrote:<br>
> lgtm, thanks!<br>
> <br>
> /tmp/toybox$ ./toybox lspci | sort<br>
> 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)<br>
> 00:01.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 03)<br>
> 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)<br>
> 00:03.0 Non-VGA unclassified device: Red Hat, Inc. Virtio SCSI (rev 00)<br>
> 00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device (rev 00)<br>
> 00:05.0 Unclassified device: Red Hat, Inc. Virtio RNG (rev 00)<br>
> /tmp/toybox$ lspci<br>
> 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)<br>
> 00:01.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 03)<br>
> 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)<br>
> 00:03.0 Non-VGA unclassified device: Red Hat, Inc. Virtio SCSI<br>
> 00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device<br>
> 00:05.0 Unclassified device [00ff]: Red Hat, Inc. Virtio RNG<br>
<br>
Not printing revision when it's zero is easy enough, but does your lspci -m<br>
print -r info when it's zero?<br></blockquote><div><br></div><div>no. (but everything gets a[n apparently useless, based on your earlier mail] `-p00` :-) )</div><div><br></div><div>i'm running `lspci version 3.9.0` btw.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
(It would be so nice if there was some sort of spec for this...)<br>
<br>
Dunno what the [00ff] in the Unclassified device is about. The string<br>
"Unclassified" isn't in lsusb.c so it's getting that out pci.ids... yup. Which<br>
means their code is ALSO special casing the zero there. (I mean I _can_ do that...)<br></blockquote><div><br></div><div>on a different machine i also see</div><div>```</div><div>63:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP<br></div><div>```</div><div>but i've no idea why either of these would be useful, so wait until someone actually asks?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Rob<br>
</blockquote></div></div>