From patchwork Wed Jul 25 06:29:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hideki EIRAKU X-Patchwork-Id: 1235741 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A87A7DFFC1 for ; Wed, 25 Jul 2012 06:31:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932891Ab2GYGaT (ORCPT ); Wed, 25 Jul 2012 02:30:19 -0400 Received: from mail-gg0-f174.google.com ([209.85.161.174]:37486 "EHLO mail-gg0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932884Ab2GYGaQ (ORCPT ); Wed, 25 Jul 2012 02:30:16 -0400 Received: by mail-gg0-f174.google.com with SMTP id u4so348785ggl.19 for ; Tue, 24 Jul 2012 23:30:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=3iF84tx8P8AjjQ+GjEd0Rn/PkqMSGRL4D/ROL0mgob4=; b=MD652ZHSj1MUaRx8qV6CQB1EjF06SLh38lZqIr+3Hb0dPb6BPGASTBbu5eImHKqbBz FLUR55/PZadoiKp1NVyO+OS49jD4OmyHxsWot23kOQQ3f2XaNWbc9LtTWL5K9PFQ5exk btsS4g2+YGeGwCTp2ruj81IcxFwO+SmqQz1qDIm3cxHrXZ5pzXg5SlahRSRbHwicbtu+ LmQMUDxyzYd81nTLmZWUwS6+x4hKd32xLKoOvlZAxGSRzbYe3KCONj81jhcLjGn3rNto 0olpxrFan0II0TZKW+gPH0/j57Kzjewv9ZWYJYJPnExnkUuTU21y5tZo0ypMfRBksO0F ieaQ== Received: by 10.66.87.70 with SMTP id v6mr10316759paz.14.1343197816223; Tue, 24 Jul 2012 23:30:16 -0700 (PDT) Received: from localhost.localdomain ([219.106.231.132]) by mx.google.com with ESMTPS id jz4sm13740730pbc.17.2012.07.24.23.30.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 23:30:15 -0700 (PDT) From: Hideki EIRAKU To: Russell King , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Mauro Carvalho Chehab , Florian Tobias Schandinat Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-fbdev@vger.kernel.org, Katsuya MATSUBARA , Hideki EIRAKU Subject: [PATCH 1/3] ARM: dma-mapping: define ARCH_HAS_DMA_MMAP_COHERENT Date: Wed, 25 Jul 2012 15:29:22 +0900 Message-Id: <1343197764-13659-2-git-send-email-hdk@igel.co.jp> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1343197764-13659-1-git-send-email-hdk@igel.co.jp> References: <1343197764-13659-1-git-send-email-hdk@igel.co.jp> X-Gm-Message-State: ALoCoQlh3L2Wg0JvUIzwNAf7lEnHdggxNcg6so/inOUB3HzcLJQ7JiMqQcq5TMW8FKW0PycHramQ Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org ARCH_HAS_DMA_MMAP_COHERENT indicates that there is dma_mmap_coherent() API in this architecture. The name is already defined in PowerPC. Signed-off-by: Hideki EIRAKU --- arch/arm/include/asm/dma-mapping.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index bbef15d..f41cd30 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h @@ -187,6 +187,7 @@ extern int arm_dma_mmap(struct device *dev, struct vm_area_struct *vma, struct dma_attrs *attrs); #define dma_mmap_coherent(d, v, c, h, s) dma_mmap_attrs(d, v, c, h, s, NULL) +#define ARCH_HAS_DMA_MMAP_COHERENT static inline int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr,