https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289923

            Bug ID: 289923
           Summary: pciconf(8) - add -C option for 'class' filtering
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

Hi,

just an idea - as '-c' is already taken for 'capabilities' it would be handy to
have '-C' option to filter the devices only to needed class/subclass.

For example now to display 'network' related devices this 'quirk' is needed:

# pciconf -l -v | grep -B 3 -E 'class.*network'
em0@pci0:0:31:6:        class=0x020000 rev=0x21 hdr=0x00 vendor=0x8086
device=0x15d8 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection (4) I219-V'
    class      = network
--
iwlwifi0@pci0:3:0:0:    class=0x028000 rev=0x29 hdr=0x00 vendor=0x8086
device=0x2526 subvendor=0x8086 subdevice=0x0014
    vendor     = 'Intel Corporation'
    device     = 'Wi-Fi 5(802.11ac) Wireless-AC 9x6x [Thunder Peak]'
    class      = network

It would be a lot better with '-C' and would look something like that:

# pciconf -l -c network
em0@pci0:0:31:6:        class=0x020000 rev=0x21 hdr=0x00 vendor=0x8086
device=0x15d8 iwlwifi0@pci0:3:0:0:    class=0x028000 rev=0x29 hdr=0x00
vendor=0x8086 device=0x2526 

# pciconf -l -v -c network
em0@pci0:0:31:6:        class=0x020000 rev=0x21 hdr=0x00 vendor=0x8086
device=0x15d8 subvendor=0x17aa subdevice=0x225d
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection (4) I219-V'
    class      = network
iwlwifi0@pci0:3:0:0:    class=0x028000 rev=0x29 hdr=0x00 vendor=0x8086
device=0x2526 subvendor=0x8086 subdevice=0x0014
    vendor     = 'Intel Corporation'
    device     = 'Wi-Fi 5(802.11ac) Wireless-AC 9x6x [Thunder Peak]'
    class      = network

Regards,
vermaden

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to