From fe9e6f03593c896343602b474dbb2c85531a00a7 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 30 May 2021 02:24:43 +0000 Subject: [PATCH] decode multimedia class --- usr.sbin/pcidump/pcidump.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c index bc98460cda6..b0082a30183 100644 --- a/usr.sbin/pcidump/pcidump.c +++ b/usr.sbin/pcidump/pcidump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcidump.c,v 1.63 2021/03/05 20:06:39 jan Exp $ */ +/* $OpenBSD: pcidump.c,v 1.64 2021/05/30 02:24:43 jsg Exp $ */ /* * Copyright (c) 2006, 2007 David Gwynne @@ -1180,6 +1180,14 @@ static const struct pci_subclass pci_subclass_display[] = { { PCI_SUBCLASS_DISPLAY_MISC, "Miscellaneous" }, }; +static const struct pci_subclass pci_subclass_multimedia[] = { + { PCI_SUBCLASS_MULTIMEDIA_VIDEO, "Video" }, + { PCI_SUBCLASS_MULTIMEDIA_AUDIO, "Audio" }, + { PCI_SUBCLASS_MULTIMEDIA_TELEPHONY, "Telephony" }, + { PCI_SUBCLASS_MULTIMEDIA_HDAUDIO, "HD Audio" }, + { PCI_SUBCLASS_MULTIMEDIA_MISC, "Miscellaneous" }, +}; + static const struct pci_subclass pci_subclass_memory[] = { { PCI_SUBCLASS_MEMORY_RAM, "RAM" }, { PCI_SUBCLASS_MEMORY_FLASH, "Flash" }, @@ -1315,6 +1323,8 @@ static const struct pci_class pci_classes[] = { pci_subclass_network), CLASS(PCI_CLASS_DISPLAY, "Display", pci_subclass_display), + CLASS(PCI_CLASS_MULTIMEDIA, "Multimedia", + pci_subclass_multimedia), CLASS(PCI_CLASS_MEMORY, "Memory", pci_subclass_memory), CLASS(PCI_CLASS_BRIDGE, "Bridge", -- 2.20.1