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: 1235731 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 8C910DFFC0 for ; Wed, 25 Jul 2012 06:31:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932899Ab2GYGaT (ORCPT ); Wed, 25 Jul 2012 02:30:19 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:40782 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932882Ab2GYGaQ (ORCPT ); Wed, 25 Jul 2012 02:30:16 -0400 Received: by mail-gh0-f174.google.com with SMTP id r11so371876ghr.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=pbkVFzj25L+8ZEQuCR0Xm5GaqcbUFq+riNr4xm5HPa2sMxT7P8F0l7SYx4w/QULTMF WI2VHlOK/DAhFAJTDnIwg2LSVp1Exvj6aDHWkuWsX70qeSwozy+2ou/Heg2QZY+XyqDQ /LjQ0SisJMj84ypW2QrIgtIIJDwg3qTEeVjmSLXVwAPbdkTMr6bGnhjuS5nBObCTnSEk mc4+RMXjSC9Tcu5UCxfuteLK6Br/HEzD2uHaHHcrbEQPZO9BOf/h2I9+3w2jQgWhc+VM gY+fMnlFxpm40hwJXWbrLQG7u6WCReFebRhRwjXJp3LyQPzl2HygCvYtug1j4zzbBfRJ TNvg== 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: ALoCoQmCxMcdDnnet8G2tRsQBpM1ZXIhvzl6GvPpwJFUcyNTdOqUN8ZC2gClyUbOXuBUQJvr6pph 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,