Module Name: src Committed By: msaitoh Date: Tue Mar 14 08:20:11 UTC 2017
Modified Files: src/sys/dev/pci: pci_subr.c pcireg.h Log Message: Add two new PCI classes: - processing accelerators - non-essential instrumentation To generate a diff of this commit: cvs rdiff -u -r1.163 -r1.164 src/sys/dev/pci/pci_subr.c cvs rdiff -u -r1.121 -r1.122 src/sys/dev/pci/pcireg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pci_subr.c diff -u src/sys/dev/pci/pci_subr.c:1.163 src/sys/dev/pci/pci_subr.c:1.164 --- src/sys/dev/pci/pci_subr.c:1.163 Tue Mar 14 08:09:31 2017 +++ src/sys/dev/pci/pci_subr.c Tue Mar 14 08:20:11 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_subr.c,v 1.163 2017/03/14 08:09:31 msaitoh Exp $ */ +/* $NetBSD: pci_subr.c,v 1.164 2017/03/14 08:20:11 msaitoh Exp $ */ /* * Copyright (c) 1997 Zubin D. Dittia. All rights reserved. @@ -40,7 +40,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.163 2017/03/14 08:09:31 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.164 2017/03/14 08:20:11 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -560,6 +560,10 @@ static const struct pci_class pci_classe pci_subclass_crypto, }, { "DASP", PCI_CLASS_DASP, pci_subclass_dasp, }, + { "processing accelerators", PCI_CLASS_ACCEL, + NULL, }, + { "non-essential instrumentation", PCI_CLASS_INSTRUMENT, + NULL, }, { "undefined", PCI_CLASS_UNDEFINED, NULL, }, { NULL, 0, Index: src/sys/dev/pci/pcireg.h diff -u src/sys/dev/pci/pcireg.h:1.121 src/sys/dev/pci/pcireg.h:1.122 --- src/sys/dev/pci/pcireg.h:1.121 Mon Feb 27 14:13:56 2017 +++ src/sys/dev/pci/pcireg.h Tue Mar 14 08:20:11 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: pcireg.h,v 1.121 2017/02/27 14:13:56 msaitoh Exp $ */ +/* $NetBSD: pcireg.h,v 1.122 2017/03/14 08:20:11 msaitoh Exp $ */ /* * Copyright (c) 1995, 1996, 1999, 2000 @@ -163,6 +163,8 @@ typedef u_int8_t pci_revision_t; #define PCI_CLASS_SATCOM 0x0f #define PCI_CLASS_CRYPTO 0x10 #define PCI_CLASS_DASP 0x11 +#define PCI_CLASS_ACCEL 0x12 +#define PCI_CLASS_INSTRUMENT 0x13 #define PCI_CLASS_UNDEFINED 0xff /* 0x00 prehistoric subclasses */