From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmpSs-0000tD-MO for qemu-devel@nongnu.org; Mon, 16 Jan 2012 11:31:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmpSe-0001Ts-Cy for qemu-devel@nongnu.org; Mon, 16 Jan 2012 11:31:17 -0500 Received: from mail-vx0-f173.google.com ([209.85.220.173]:52073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmpSe-0001TY-9Z for qemu-devel@nongnu.org; Mon, 16 Jan 2012 11:31:08 -0500 Received: by mail-vx0-f173.google.com with SMTP id fk14so763460vcb.4 for ; Mon, 16 Jan 2012 08:31:08 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 16 Jan 2012 17:30:43 +0100 Message-Id: <1326731457-9056-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1326731457-9056-1-git-send-email-pbonzini@redhat.com> References: <1326731457-9056-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 01/15] dma-helpers: make QEMUSGList target independent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Paolo Bonzini --- dma.h | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dma.h b/dma.h index a13209d..d50019b 100644 --- a/dma.h +++ b/dma.h @@ -17,6 +17,13 @@ typedef struct ScatterGatherEntry ScatterGatherEntry; +struct QEMUSGList { + ScatterGatherEntry *sg; + int nsg; + int nalloc; + size_t size; +}; + #if defined(TARGET_PHYS_ADDR_BITS) typedef target_phys_addr_t dma_addr_t; @@ -32,13 +39,6 @@ struct ScatterGatherEntry { dma_addr_t len; }; -struct QEMUSGList { - ScatterGatherEntry *sg; - int nsg; - int nalloc; - dma_addr_t size; -}; - void qemu_sglist_init(QEMUSGList *qsg, int alloc_hint); void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len); void qemu_sglist_destroy(QEMUSGList *qsg); -- 1.7.7.1