diff options
Diffstat (limited to 'usr/src/uts/intel/sys/iommulib.h')
-rw-r--r-- | usr/src/uts/intel/sys/iommulib.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/usr/src/uts/intel/sys/iommulib.h b/usr/src/uts/intel/sys/iommulib.h index a13864f5f7..a765179c3f 100644 --- a/usr/src/uts/intel/sys/iommulib.h +++ b/usr/src/uts/intel/sys/iommulib.h @@ -98,16 +98,9 @@ typedef struct iommulib_ops { /* - * IOMMULIB_HDL() checks if there is an IOMMU controlling the dip's DMA - * IOMMU_USED() checks if the dip associated with the DMA handle has DMA - * controlled by an IOMMU. - * This ensures that we use the right dip associated with the - * DMA handle irrespective of which dip's context we call - * ddi_dma_* routines in. + * IOMMU_USED() checks if there is an IOMMU controlling the dip's DMA */ -#define IOMMULIB_HDL(dip) (DEVI(dip)->devi_iommulib_handle) -#define IOMMU_USED(dmahdl) \ -(DEVI(((struct ddi_dma_impl *)(dmahdl))->dmai_rdip)->devi_iommulib_handle) +#define IOMMU_USED(dip) (DEVI(dip)->devi_iommulib_handle) typedef enum { IOMMU_NEXOPS_VERSION_INVALID = 0, |