From 2739742c24f1a55365e71f0722bfdce8994e9c4e Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Sat, 15 Aug 2009 09:19:19 +0900 Subject: sh: Provide the kmap_coherent() interface generically. This plugs in kmap_coherent() for the non-SH4 cases to permit the pg-mmu.c bits to be used generically across all CPUs. SH-5 is still in the TODO state, but will move over to fixmap and the generic interface gradually. Signed-off-by: Paul Mundt --- arch/sh/mm/cache-sh5.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'arch/sh/mm/cache-sh5.c') diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c index 698113fce81..28f3c8fb1b9 100644 --- a/arch/sh/mm/cache-sh5.c +++ b/arch/sh/mm/cache-sh5.c @@ -29,6 +29,21 @@ void __init p3_cache_init(void) dtlb_cache_slot = sh64_get_wired_dtlb_entry(); } +void __init kmap_coherent_init(void) +{ + /* XXX ... */ +} + +void *kmap_coherent(struct page *page, unsigned long addr) +{ + /* XXX ... */ + return NULL; +} + +void kunmap_coherent(void) +{ +} + #ifdef CONFIG_DCACHE_DISABLED #define sh64_dcache_purge_all() do { } while (0) #define sh64_dcache_purge_coloured_phy_page(paddr, eaddr) do { } while (0) -- cgit v1.2.3-18-g5258