xref: /netbsd-src/sys/arch/hpc/stand/hpcboot/sh3/sh_mmu.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /* -*-C++-*-	$NetBSD: sh_mmu.h,v 1.6 2008/04/28 20:23:20 martin Exp $	*/
29173eae7Such 
39173eae7Such /*-
42e968e7eSuch  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
59173eae7Such  * All rights reserved.
69173eae7Such  *
79173eae7Such  * This code is derived from software contributed to The NetBSD Foundation
89173eae7Such  * by UCHIYAMA Yasushi.
99173eae7Such  *
109173eae7Such  * Redistribution and use in source and binary forms, with or without
119173eae7Such  * modification, are permitted provided that the following conditions
129173eae7Such  * are met:
139173eae7Such  * 1. Redistributions of source code must retain the above copyright
149173eae7Such  *    notice, this list of conditions and the following disclaimer.
159173eae7Such  * 2. Redistributions in binary form must reproduce the above copyright
169173eae7Such  *    notice, this list of conditions and the following disclaimer in the
179173eae7Such  *    documentation and/or other materials provided with the distribution.
189173eae7Such  *
199173eae7Such  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
209173eae7Such  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
219173eae7Such  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
229173eae7Such  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
239173eae7Such  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
249173eae7Such  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
259173eae7Such  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
269173eae7Such  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
279173eae7Such  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
289173eae7Such  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
299173eae7Such  * POSSIBILITY OF SUCH DAMAGE.
309173eae7Such  */
319173eae7Such 
329173eae7Such #ifndef _HPCBOOT_SH_MMU_H_
339173eae7Such #define	_HPCBOOT_SH_MMU_H_
349173eae7Such 
35acb09f98Such #include <memory.h>
369173eae7Such 
379173eae7Such class MemoryManager_SHMMU : public MemoryManager {
389173eae7Such private:
39acb09f98Such 	typedef MemoryManager super;
409173eae7Such 
419173eae7Such public:
MemoryManager_SHMMU(Console * & cons,size_t pagesize)429173eae7Such 	MemoryManager_SHMMU(Console *&cons, size_t pagesize)
439173eae7Such 		: MemoryManager(cons, pagesize) {
442e968e7eSuch 		DPRINTF((TEXT("MemoryManager: SH3 MMU\n")));
459173eae7Such 	}
~MemoryManager_SHMMU(void)46acb09f98Such 	virtual ~MemoryManager_SHMMU(void) { /* NO-OP */ }
47acb09f98Such 	virtual paddr_t searchPage(vaddr_t vaddr);
48acb09f98Such 
49acb09f98Such 	static void MMUDump(void);
50acb09f98Such 	static void CacheDump(void);
519173eae7Such };
529173eae7Such 
539173eae7Such #endif // _HPCBOOT_SH_MMU_H_
54