From 6cc0581bc805c8bf7ea057c065c3c36caf744ef3 Mon Sep 17 00:00:00 2001 From: Lyonel Vincent Date: Sun, 24 Mar 2019 11:18:57 +0100 Subject: [PATCH 8/8] merge Github PR44 Add a class 'nvme' for NVMe devices --- src/core/pci.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/pci.cc b/src/core/pci.cc index c8380c3034be..21b9033285ff 100644 --- a/src/core/pci.cc +++ b/src/core/pci.cc @@ -105,6 +105,7 @@ __ID("@(#) $Id$"); #define PCI_CLASS_STORAGE_RAID 0x0104 #define PCI_CLASS_STORAGE_SATA 0x0106 #define PCI_CLASS_STORAGE_SAS 0x0107 +#define PCI_CLASS_STORAGE_NVME 0x0108 #define PCI_CLASS_STORAGE_OTHER 0x0180 #define PCI_BASE_CLASS_NETWORK 0x02 @@ -340,6 +341,8 @@ static const char *get_class_name(unsigned int c) return "sata"; case PCI_CLASS_STORAGE_SAS: return "sas"; + case PCI_CLASS_STORAGE_NVME: + return "nvme"; case PCI_CLASS_BRIDGE_HOST: return "host"; case PCI_CLASS_BRIDGE_ISA: -- 2.17.1