From patchwork Thu Jul 26 11:13:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hideki EIRAKU X-Patchwork-Id: 1241641 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7BC974025E for ; Thu, 26 Jul 2012 11:13:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752439Ab2GZLNm (ORCPT ); Thu, 26 Jul 2012 07:13:42 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:57342 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752430Ab2GZLNl (ORCPT ); Thu, 26 Jul 2012 07:13:41 -0400 Received: by yhmm54 with SMTP id m54so1795176yhm.19 for ; Thu, 26 Jul 2012 04:13:41 -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=Rnn7pc1HxzuD/F+x3BsIAKne9SXzMIzfSIyLwiElhzJjAQb63estF/OVKCBiftLb7I BkJN1qOa3QzYj58T1rjnYm4kDxNESNHPeYXyklQLyt6uQOApW6wuEnd8fHBQTLfNgfSw 85M86vJGLORFN5gSWlL3HNWJjcaqICZAlX1RXQQT7u+fGdxTLtbSyaww0Nr2U2x7as2r /54zW4rApi21MLZEcQggMdBDQlqwPNY9GAwhe7FNpPAXpHxUtp6NxBVfkmAq9B/DYOWX xeahXISY3SLuBLf6PAPLWkclsmY77jIza8SBnmqCOwhZs0mY08Gh4vPOi1kUoEMhCG1+ m42g== Received: by 10.66.86.2 with SMTP id l2mr19751176paz.58.1343301220554; Thu, 26 Jul 2012 04:13:40 -0700 (PDT) Received: from localhost.localdomain ([219.106.231.132]) by mx.google.com with ESMTPS id ru10sm16359210pbc.50.2012.07.26.04.13.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jul 2012 04:13:39 -0700 (PDT) From: Hideki EIRAKU To: Russell King , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Mauro Carvalho Chehab , Florian Tobias Schandinat , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-fbdev@vger.kernel.org, alsa-devel@alsa-project.org, Katsuya MATSUBARA , Hideki EIRAKU Subject: [PATCH v2 1/4] ARM: dma-mapping: define ARCH_HAS_DMA_MMAP_COHERENT Date: Thu, 26 Jul 2012 20:13:08 +0900 Message-Id: <1343301191-26001-2-git-send-email-hdk@igel.co.jp> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1343301191-26001-1-git-send-email-hdk@igel.co.jp> References: <1343301191-26001-1-git-send-email-hdk@igel.co.jp> X-Gm-Message-State: ALoCoQmwP2uJhq6hZ8J598mDV3NaiTF1NRTK+pW4bIkzUD4DF4WTtq4fVdmPuc9b4NEeBPbHG28/ Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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,