/* This function queues a completion wait command into the command buffer of an IOMMU  */
static int __iommu_completion_wait(struct amd_iommu *iommu)
/* This function queues a completion wait command into the command buffer of an IOMMU  */
static int __iommu_completion_wait(struct amd_iommu *iommu)
{
	struct iommu_cmd cmd;
	 memset(&cmd, 0, sizeof(cmd));
	 cmd.data[0] = CMD_COMPL_WAIT_INT_MASK;
	 CMD_SET_TYPE(&cmd, CMD_COMPL_WAIT);
	 return __iommu_queue_command(iommu, &cmd);
}