Page MenuHomeFreeBSD

D27229.id.diff
No OneTemporary

D27229.id.diff

Index: head/sys/dev/iommu/iommu.h
===================================================================
--- head/sys/dev/iommu/iommu.h
+++ head/sys/dev/iommu/iommu.h
@@ -67,6 +67,7 @@
struct iommu_unit {
struct mtx lock;
+ device_t dev;
int unit;
int dma_enabled;
Index: head/sys/x86/iommu/intel_drv.c
===================================================================
--- head/sys/x86/iommu/intel_drv.c
+++ head/sys/x86/iommu/intel_drv.c
@@ -411,6 +411,7 @@
unit = device_get_softc(dev);
unit->dev = dev;
unit->iommu.unit = device_get_unit(dev);
+ unit->iommu.dev = dev;
dmaru = dmar_find_by_index(unit->iommu.unit);
if (dmaru == NULL)
return (EINVAL);

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 13, 3:47 AM (10 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38832083
Default Alt Text
D27229.id.diff (677 B)

Event Timeline