1*1f94b218SZhenzhong Duan /* 2*1f94b218SZhenzhong Duan * Host IOMMU device abstract 3*1f94b218SZhenzhong Duan * 4*1f94b218SZhenzhong Duan * Copyright (C) 2024 Intel Corporation. 5*1f94b218SZhenzhong Duan * 6*1f94b218SZhenzhong Duan * Authors: Zhenzhong Duan <zhenzhong.duan@intel.com> 7*1f94b218SZhenzhong Duan * 8*1f94b218SZhenzhong Duan * This work is licensed under the terms of the GNU GPL, version 2. See 9*1f94b218SZhenzhong Duan * the COPYING file in the top-level directory. 10*1f94b218SZhenzhong Duan */ 11*1f94b218SZhenzhong Duan 12*1f94b218SZhenzhong Duan #include "qemu/osdep.h" 13*1f94b218SZhenzhong Duan #include "sysemu/host_iommu_device.h" 14*1f94b218SZhenzhong Duan OBJECT_DEFINE_ABSTRACT_TYPE(HostIOMMUDevice,host_iommu_device,HOST_IOMMU_DEVICE,OBJECT)15*1f94b218SZhenzhong DuanOBJECT_DEFINE_ABSTRACT_TYPE(HostIOMMUDevice, 16*1f94b218SZhenzhong Duan host_iommu_device, 17*1f94b218SZhenzhong Duan HOST_IOMMU_DEVICE, 18*1f94b218SZhenzhong Duan OBJECT) 19*1f94b218SZhenzhong Duan 20*1f94b218SZhenzhong Duan static void host_iommu_device_class_init(ObjectClass *oc, void *data) 21*1f94b218SZhenzhong Duan { 22*1f94b218SZhenzhong Duan } 23*1f94b218SZhenzhong Duan host_iommu_device_init(Object * obj)24*1f94b218SZhenzhong Duanstatic void host_iommu_device_init(Object *obj) 25*1f94b218SZhenzhong Duan { 26*1f94b218SZhenzhong Duan } 27*1f94b218SZhenzhong Duan host_iommu_device_finalize(Object * obj)28*1f94b218SZhenzhong Duanstatic void host_iommu_device_finalize(Object *obj) 29*1f94b218SZhenzhong Duan { 30*1f94b218SZhenzhong Duan HostIOMMUDevice *hiod = HOST_IOMMU_DEVICE(obj); 31*1f94b218SZhenzhong Duan 32*1f94b218SZhenzhong Duan g_free(hiod->name); 33*1f94b218SZhenzhong Duan } 34