Module Name: src Committed By: msaitoh Date: Mon Jun 9 11:08:05 UTC 2014
Modified Files: src/sys/dev/pci: pci_subr.c pcireg.h Log Message: Add IOMMU and the Root Complex Event Collector. To generate a diff of this commit: cvs rdiff -u -r1.123 -r1.124 src/sys/dev/pci/pci_subr.c cvs rdiff -u -r1.94 -r1.95 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.123 src/sys/dev/pci/pci_subr.c:1.124 --- src/sys/dev/pci/pci_subr.c:1.123 Fri May 30 05:04:21 2014 +++ src/sys/dev/pci/pci_subr.c Mon Jun 9 11:08:05 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_subr.c,v 1.123 2014/05/30 05:04:21 msaitoh Exp $ */ +/* $NetBSD: pci_subr.c,v 1.124 2014/06/09 11:08:05 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.123 2014/05/30 05:04:21 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.124 2014/06/09 11:08:05 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -317,6 +317,8 @@ static const struct pci_class pci_subcla { "RTC", PCI_SUBCLASS_SYSTEM_RTC, pci_interface_rtc,}, { "PCI Hot-Plug", PCI_SUBCLASS_SYSTEM_PCIHOTPLUG, NULL, }, { "SD Host Controller", PCI_SUBCLASS_SYSTEM_SDHC, NULL, }, + { "IOMMU", PCI_SUBCLASS_SYSTEM_IOMMU, NULL, }, + { "Root Complex Event Collector", PCI_SUBCLASS_SYSTEM_RCEC, NULL, }, { "miscellaneous", PCI_SUBCLASS_SYSTEM_MISC, NULL, }, { NULL, 0, NULL, }, }; Index: src/sys/dev/pci/pcireg.h diff -u src/sys/dev/pci/pcireg.h:1.94 src/sys/dev/pci/pcireg.h:1.95 --- src/sys/dev/pci/pcireg.h:1.94 Fri May 30 03:42:38 2014 +++ src/sys/dev/pci/pcireg.h Mon Jun 9 11:08:05 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: pcireg.h,v 1.94 2014/05/30 03:42:38 msaitoh Exp $ */ +/* $NetBSD: pcireg.h,v 1.95 2014/06/09 11:08:05 msaitoh Exp $ */ /* * Copyright (c) 1995, 1996, 1999, 2000 @@ -280,6 +280,8 @@ typedef u_int8_t pci_revision_t; #define PCI_INTERFACE_RTC_ISA 0x01 #define PCI_SUBCLASS_SYSTEM_PCIHOTPLUG 0x04 #define PCI_SUBCLASS_SYSTEM_SDHC 0x05 +#define PCI_SUBCLASS_SYSTEM_IOMMU 0x06 +#define PCI_SUBCLASS_SYSTEM_RCEC 0x07 #define PCI_SUBCLASS_SYSTEM_MISC 0x80 /* 0x09 input subclasses */