From: jan Date: Fri, 5 Mar 2021 12:57:20 +0000 (+0000) Subject: add missing PCI classes X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=911d903bc3cd4cad52492a521e898cc37b8c3f22;p=openbsd add missing PCI classes OK dlg@ --- diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c index 0e54108be48..97c9ad1f2c3 100644 --- a/usr.sbin/pcidump/pcidump.c +++ b/usr.sbin/pcidump/pcidump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcidump.c,v 1.61 2021/01/17 11:54:15 dlg Exp $ */ +/* $OpenBSD: pcidump.c,v 1.62 2021/03/05 12:57:20 jan Exp $ */ /* * Copyright (c) 2006, 2007 David Gwynne @@ -1296,6 +1296,9 @@ static const struct pci_subclass pci_subclass_dasp[] = { { PCI_SUBCLASS_DASP_MISC, "Miscellaneous" }, }; +static const struct pci_subclass pci_subclass_accelerator[] = {0}; +static const struct pci_subclass pci_subclass_instrumentation[] = {0}; + #define CLASS(_c, _n, _s) { \ .class = _c, \ .name = _n, \ @@ -1338,6 +1341,10 @@ static const struct pci_class pci_classes[] = { pci_subclass_crypto), CLASS(PCI_CLASS_DASP, "DASP", pci_subclass_dasp), + CLASS(PCI_CLASS_ACCELERATOR, "Accelerator", + pci_subclass_accelerator), + CLASS(PCI_CLASS_INSTRUMENTATION, "Instrumentation", + pci_subclass_instrumentation), }; static const struct pci_class *