1*ce099b40Smartin /* -*-C++-*- $NetBSD: mips_tx39.cpp,v 1.5 2008/04/28 20:23:20 martin Exp $ */
29173eae7Such
39173eae7Such /*-
49173eae7Such * Copyright (c) 2001 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 #include <console.h>
339173eae7Such #include <memory.h>
349173eae7Such #include <mips/mips_tx39.h>
359173eae7Such
TX39XX(Console * & cons,MemoryManager * & mem,enum ArchitectureOps arch)369173eae7Such TX39XX::TX39XX(Console *&cons, MemoryManager *&mem, enum ArchitectureOps arch)
379173eae7Such : MIPSArchitecture(cons, mem)
389173eae7Such {
399173eae7Such _boot_func = TX39XX::boot_func;
409173eae7Such }
419173eae7Such
~TX39XX()429173eae7Such TX39XX::~TX39XX()
439173eae7Such {
449173eae7Such /* NO-OP */
459173eae7Such }
469173eae7Such
BOOT_FUNC_(TX39XX)479173eae7Such BOOT_FUNC_(TX39XX)
489173eae7Such
499173eae7Such BOOL
509173eae7Such TX39XX::init()
519173eae7Such {
529173eae7Such MIPSArchitecture::init();
539173eae7Such
549173eae7Such // set D-RAM information
559173eae7Such _mem->loadBank(0x04000000, // D-RAM bank 0/1
569173eae7Such 0x04000000);
579173eae7Such
589173eae7Such return TRUE;
599173eae7Such }
609173eae7Such
619173eae7Such void
systemInfo()629173eae7Such TX39XX::systemInfo()
639173eae7Such {
649173eae7Such MIPSArchitecture::systemInfo();
659173eae7Such DPRINTF((TEXT("TX39\n")));
669173eae7Such }
679173eae7Such
689173eae7Such void
cacheFlush()699173eae7Such TX39XX::cacheFlush()
709173eae7Such {
719173eae7Such MIPS_TX39XX_CACHE_FLUSH();
729173eae7Such }
73