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

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