From patchwork Fri Feb 5 15:50:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Bottomley X-Patchwork-Id: 77364 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o15FpICL010141 for ; Fri, 5 Feb 2010 15:51:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754062Ab0BEPvR (ORCPT ); Fri, 5 Feb 2010 10:51:17 -0500 Received: from cantor2.suse.de ([195.135.220.15]:52426 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754023Ab0BEPvR (ORCPT ); Fri, 5 Feb 2010 10:51:17 -0500 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 8148F89FC6; Fri, 5 Feb 2010 16:51:16 +0100 (CET) From: James Bottomley To: linux-arch@vger.kernel.org Cc: linux-parisc@vger.kernel.org, rmk@arm.linux.org.uk, lethal@linux-sh.org, torvalds@linux-foundation.org, hch@lst.de, James Bottomley Subject: [PATCHv3 4/5] sh: add mm API for DMA to vmalloc/vmap areas Date: Fri, 5 Feb 2010 09:50:56 -0600 Message-Id: <1265385057-2575-5-git-send-email-James.Bottomley@suse.de> X-Mailer: git-send-email 1.6.5 In-Reply-To: <1265385057-2575-4-git-send-email-James.Bottomley@suse.de> References: <1265385057-2575-1-git-send-email-James.Bottomley@suse.de> <1265385057-2575-2-git-send-email-James.Bottomley@suse.de> <1265385057-2575-3-git-send-email-James.Bottomley@suse.de> <1265385057-2575-4-git-send-email-James.Bottomley@suse.de> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 05 Feb 2010 15:51:18 +0000 (UTC) diff --git a/arch/sh/include/asm/cacheflush.h b/arch/sh/include/asm/cacheflush.h index dda96eb..da3ebec 100644 --- a/arch/sh/include/asm/cacheflush.h +++ b/arch/sh/include/asm/cacheflush.h @@ -63,6 +63,14 @@ static inline void flush_anon_page(struct vm_area_struct *vma, if (boot_cpu_data.dcache.n_aliases && PageAnon(page)) __flush_anon_page(page, vmaddr); } +static inline void flush_kernel_vmap_range(void *addr, int size) +{ + __flush_wback_region(addr, size); +} +static inline void invalidate_kernel_vmap_range(void *addr, int size) +{ + __flush_invalidate_region(addr, size); +} #define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE static inline void flush_kernel_dcache_page(struct page *page)