1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright 2024-2025 Tomeu Vizoso <tomeu@tomeuvizoso.net> */ 3 4 #ifndef __ROCKET_DRV_H__ 5 #define __ROCKET_DRV_H__ 6 7 #include "rocket_device.h" 8 9 struct rocket_iommu_domain { 10 struct iommu_domain *domain; 11 struct kref kref; 12 }; 13 14 struct rocket_file_priv { 15 struct rocket_device *rdev; 16 17 struct rocket_iommu_domain *domain; 18 }; 19 20 struct rocket_iommu_domain *rocket_iommu_domain_get(struct rocket_file_priv *rocket_priv); 21 void rocket_iommu_domain_put(struct rocket_iommu_domain *domain); 22 23 #endif 24