Skip to contentSkip to conversation

Categorize devices: i82374

PATCH In review Ernest Esene 1 participant 1 message Apr 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v3 2/3 Categorize devices: i82374

Set category and description for iommu devices

---
v3:
* remove user_creatable
v2:
* split into separate patches

---
 hw/dma/i82374.c | 3 +++
 1 file changed, 3 insertions(+)
hw/dma/i82374.c +3 -0
index 892f655a7e..aeb3da8ba6 100644
@@ -147,6 +147,9 @@ static void i82374_class_init(ObjectClass *klass, void *data)
     dc->realize = i82374_realize;
     dc->vmsd = &vmstate_i82374;
     dc->props = i82374_properties;
+    dc->desc = "Intel Enhanced DMA controller";
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
+    dc->user_creatable = false;
 }
 
 static const TypeInfo i82374_info = {
Signature · 1 line
2.14.2