Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add two new PCI classes:
details: https://anonhg.NetBSD.org/src/rev/12f4638e5387
branches: trunk
changeset: 352074:12f4638e5387
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Mar 14 08:20:11 2017 +0000
description:
Add two new PCI classes:
- processing accelerators
- non-essential instrumentation
diffstat:
sys/dev/pci/pci_subr.c | 8 ++++++--
sys/dev/pci/pcireg.h | 4 +++-
2 files changed, 9 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 094ef2b5beb3 -r 12f4638e5387 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Tue Mar 14 08:11:09 2017 +0000
+++ b/sys/dev/pci/pci_subr.c Tue Mar 14 08:20:11 2017 +0000
@@ -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 @@
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,
diff -r 094ef2b5beb3 -r 12f4638e5387 sys/dev/pci/pcireg.h
--- a/sys/dev/pci/pcireg.h Tue Mar 14 08:11:09 2017 +0000
+++ b/sys/dev/pci/pcireg.h Tue Mar 14 08:20:11 2017 +0000
@@ -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 @@
#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 */
Home |
Main Index |
Thread Index |
Old Index