Blame SOURCES/0007-add-missing-PCI-storage-subclasses-688.patch

df7b7f
From f965cd50d9005353d4b8879f609d04df3c881da2 Mon Sep 17 00:00:00 2001
df7b7f
From: Dan Callaghan <dcallagh@redhat.com>
df7b7f
Date: Mon, 29 Jun 2015 10:30:58 +1000
df7b7f
Subject: [PATCH 07/26] add missing PCI storage subclasses (#688)
df7b7f
df7b7f
---
df7b7f
 src/core/pci.cc | 8 ++++++++
df7b7f
 1 file changed, 8 insertions(+)
df7b7f
df7b7f
diff --git a/src/core/pci.cc b/src/core/pci.cc
df7b7f
index 7c09eb8..fbfd143 100644
df7b7f
--- a/src/core/pci.cc
df7b7f
+++ b/src/core/pci.cc
df7b7f
@@ -103,6 +103,8 @@ __ID("@(#) $Id$");
df7b7f
 #define PCI_CLASS_STORAGE_FLOPPY     0x0102
df7b7f
 #define PCI_CLASS_STORAGE_IPI        0x0103
df7b7f
 #define PCI_CLASS_STORAGE_RAID       0x0104
df7b7f
+#define PCI_CLASS_STORAGE_SATA       0x0106
df7b7f
+#define PCI_CLASS_STORAGE_SAS        0x0107
df7b7f
 #define PCI_CLASS_STORAGE_OTHER      0x0180
df7b7f
 
df7b7f
 #define PCI_BASE_CLASS_NETWORK       0x02
df7b7f
@@ -332,6 +334,12 @@ static const char *get_class_name(unsigned int c)
df7b7f
       return "scsi";
df7b7f
     case PCI_CLASS_STORAGE_IDE:
df7b7f
       return "ide";
df7b7f
+    case PCI_CLASS_STORAGE_RAID:
df7b7f
+      return "raid";
df7b7f
+    case PCI_CLASS_STORAGE_SATA:
df7b7f
+      return "sata";
df7b7f
+    case PCI_CLASS_STORAGE_SAS:
df7b7f
+      return "sas";
df7b7f
     case PCI_CLASS_BRIDGE_HOST:
df7b7f
       return "host";
df7b7f
     case PCI_CLASS_BRIDGE_ISA:
df7b7f
-- 
df7b7f
2.10.2
df7b7f