From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpRzS-0005oR-W7 for qemu-devel@nongnu.org; Thu, 12 Jul 2012 18:36:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpRzS-00015E-5p for qemu-devel@nongnu.org; Thu, 12 Jul 2012 18:36:06 -0400 Message-ID: <4FFF5143.8030206@freescale.com> Date: Thu, 12 Jul 2012 17:35:47 -0500 From: Scott Wood MIME-Version: 1.0 References: <1341899497-23265-1-git-send-email-aik@ozlabs.ru> <1342083134-28669-1-git-send-email-aik@ozlabs.ru> In-Reply-To: <1342083134-28669-1-git-send-email-aik@ozlabs.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] RFC: vfio-powerpc: added VFIO support (v2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Alex Williamson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson On 07/12/2012 03:52 AM, Alexey Kardashevskiy wrote: > +/* -------- API for POWERPC IOMMU -------- */ > + > +#define POWERPC_IOMMU 2 > + > +struct tce_iommu_info { > + __u32 argsz; > + __u32 dma32_window_start; > + __u32 dma32_window_size; > +}; > + > +#define POWERPC_IOMMU_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 12) > + > +struct tce_iommu_dma_map { > + __u32 argsz; > + __u64 va; > + __u64 dmaaddr; > +}; > + > +#define POWERPC_IOMMU_MAP_DMA _IO(VFIO_TYPE, VFIO_BASE + 13) > +#define POWERPC_IOMMU_UNMAP_DMA _IO(VFIO_TYPE, VFIO_BASE + 14) I thought you were going to change the name to be less generic... -Scott