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 NVMe.



details:   https://anonhg.NetBSD.org/src/rev/195f7b65c349
branches:  trunk
changeset: 339538:195f7b65c349
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Jul 27 15:46:03 2015 +0000

description:
Add NVMe.

diffstat:

 sys/dev/pci/pci_subr.c |  5 +++--
 sys/dev/pci/pcireg.h   |  3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r 3e458a4eeecd -r 195f7b65c349 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c    Mon Jul 27 15:45:20 2015 +0000
+++ b/sys/dev/pci/pci_subr.c    Mon Jul 27 15:46:03 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_subr.c,v 1.133 2014/11/24 07:53:43 msaitoh Exp $   */
+/*     $NetBSD: pci_subr.c,v 1.134 2015/07/27 15:46:03 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.133 2014/11/24 07:53:43 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.134 2015/07/27 15:46:03 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -114,6 +114,7 @@
 static const struct pci_class pci_interface_nvm[] = {
        { "vendor specific",    PCI_INTERFACE_NVM_VND,          NULL,   },
        { "NVMHCI 1.0",         PCI_INTERFACE_NVM_NVMHCI10,     NULL,   },
+       { "NVMe",               PCI_INTERFACE_NVM_NVME,         NULL,   },
        { NULL,                 0,                              NULL,   },
 };
 
diff -r 3e458a4eeecd -r 195f7b65c349 sys/dev/pci/pcireg.h
--- a/sys/dev/pci/pcireg.h      Mon Jul 27 15:45:20 2015 +0000
+++ b/sys/dev/pci/pcireg.h      Mon Jul 27 15:46:03 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcireg.h,v 1.102 2015/04/27 07:03:58 knakahara Exp $   */
+/*     $NetBSD: pcireg.h,v 1.103 2015/07/27 15:46:03 msaitoh Exp $     */
 
 /*
  * Copyright (c) 1995, 1996, 1999, 2000
@@ -187,6 +187,7 @@
 #define        PCI_SUBCLASS_MASS_STORAGE_NVM           0x08
 #define                PCI_INTERFACE_NVM_VND                   0x00
 #define                PCI_INTERFACE_NVM_NVMHCI10              0x01
+#define                PCI_INTERFACE_NVM_NVME                  0x02
 #define        PCI_SUBCLASS_MASS_STORAGE_MISC          0x80
 
 /* 0x02 network subclasses */



Home | Main Index | Thread Index | Old Index