[Toybox] [PATCH] lspci: add -x.
enh
enh at google.com
Thu Apr 6 11:16:58 PDT 2023
On Thu, Apr 6, 2023 at 11:06 AM Rob Landley <rob at landley.net> wrote:
> On 4/6/23 12:42, enh wrote:
> > lgtm, thanks!
> >
> > /tmp/toybox$ ./toybox lspci | sort
> > 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev
> 02)
> > 00:01.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 03)
> > 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
> > 00:03.0 Non-VGA unclassified device: Red Hat, Inc. Virtio SCSI (rev 00)
> > 00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device (rev 00)
> > 00:05.0 Unclassified device: Red Hat, Inc. Virtio RNG (rev 00)
> > /tmp/toybox$ lspci
> > 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev
> 02)
> > 00:01.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 03)
> > 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
> > 00:03.0 Non-VGA unclassified device: Red Hat, Inc. Virtio SCSI
> > 00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device
> > 00:05.0 Unclassified device [00ff]: Red Hat, Inc. Virtio RNG
>
> Not printing revision when it's zero is easy enough, but does your lspci -m
> print -r info when it's zero?
>
no. (but everything gets a[n apparently useless, based on your earlier
mail] `-p00` :-) )
i'm running `lspci version 3.9.0` btw.
> (It would be so nice if there was some sort of spec for this...)
>
> Dunno what the [00ff] in the Unclassified device is about. The string
> "Unclassified" isn't in lsusb.c so it's getting that out pci.ids... yup.
> Which
> means their code is ALSO special casing the zero there. (I mean I _can_ do
> that...)
>
on a different machine i also see
```
63:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc.
[AMD] Starship/Matisse Reserved SPP
```
but i've no idea why either of these would be useful, so wait until someone
actually asks?
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20230406/658ada66/attachment.htm>
More information about the Toybox
mailing list