From patchwork Mon Aug 6 09:55:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hideki EIRAKU X-Patchwork-Id: 1277781 Return-Path: X-Original-To: patchwork-linux-fbdev@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 B4F18DFFED for ; Mon, 6 Aug 2012 09:56:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755695Ab2HFJ4S (ORCPT ); Mon, 6 Aug 2012 05:56:18 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:34158 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755217Ab2HFJ4P (ORCPT ); Mon, 6 Aug 2012 05:56:15 -0400 Received: by yhmm54 with SMTP id m54so2264164yhm.19 for ; Mon, 06 Aug 2012 02:56:14 -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=OIqvZNufPb7d1q0MVYwup9KPrutQ+6w32uLb67MNfuHNZsgJbCrTDMwZqgJepfyLDR PnapeaM7LcXldi02GbUnk9hasdj5sk0FsQneqh+fYPa2WEIf0Jyi++WkInyc5j6f5rGb DDxaHov0SMNHt4QFHozoq1lqnNK3UM62qfOxTZR8Du9jDOU4/UUoK3Mwp3E4tjGIx4VP qz0nlvVMS2lZbTr3/n+0NIAdV2iULWc4a4vHHAFyzofhV89LxhELTkPXv5b3bGppDWIH RgJd90SHeKBk2Yx29iR2dLZNmC0ooZRs6X5xe5I9cd6Vo9xpam+UVh6tswv2LPN9BFjx u87w== Received: by 10.66.72.5 with SMTP id z5mr16925962pau.17.1344246974217; Mon, 06 Aug 2012 02:56:14 -0700 (PDT) Received: from localhost.localdomain ([219.106.231.132]) by mx.google.com with ESMTPS id qd10sm8650359pbb.38.2012.08.06.02.56.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Aug 2012 02:56:13 -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 v3 1/4] ARM: dma-mapping: define ARCH_HAS_DMA_MMAP_COHERENT Date: Mon, 6 Aug 2012 18:55:21 +0900 Message-Id: <1344246924-32620-2-git-send-email-hdk@igel.co.jp> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1344246924-32620-1-git-send-email-hdk@igel.co.jp> References: <1344246924-32620-1-git-send-email-hdk@igel.co.jp> X-Gm-Message-State: ALoCoQmXKRZqL+blb1r6VZT+LmcBTROED1D+HPMUsSHfScnXA4GNFAKmR5pDs8TeTqDw1S7wR5R0 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,