1*ce099b40Smartin /* -*-C++-*- $NetBSD: mips_console.h,v 1.4 2008/04/28 20:23:20 martin Exp $ */ 2bd926f64Such 3bd926f64Such /*- 4bd926f64Such * Copyright (c) 2001 The NetBSD Foundation, Inc. 5bd926f64Such * All rights reserved. 6bd926f64Such * 7bd926f64Such * This code is derived from software contributed to The NetBSD Foundation 8bd926f64Such * by UCHIYAMA Yasushi. 9bd926f64Such * 10bd926f64Such * Redistribution and use in source and binary forms, with or without 11bd926f64Such * modification, are permitted provided that the following conditions 12bd926f64Such * are met: 13bd926f64Such * 1. Redistributions of source code must retain the above copyright 14bd926f64Such * notice, this list of conditions and the following disclaimer. 15bd926f64Such * 2. Redistributions in binary form must reproduce the above copyright 16bd926f64Such * notice, this list of conditions and the following disclaimer in the 17bd926f64Such * documentation and/or other materials provided with the distribution. 18bd926f64Such * 19bd926f64Such * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20bd926f64Such * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21bd926f64Such * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22bd926f64Such * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23bd926f64Such * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24bd926f64Such * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25bd926f64Such * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26bd926f64Such * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27bd926f64Such * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28bd926f64Such * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29bd926f64Such * POSSIBILITY OF SUCH DAMAGE. 30bd926f64Such */ 31bd926f64Such 32bd926f64Such #ifndef _HPCBOOT_MIPS_CONSOLE_H_ 33bd926f64Such #define _HPCBOOT_MIPS_CONSOLE_H_ 34bd926f64Such 35bd926f64Such #include <hpcboot.h> 36bd926f64Such #include <console.h> 37bd926f64Such 38bd926f64Such class MIPSConsole : public SerialConsole { 39bd926f64Such private: 40bd926f64Such static MIPSConsole *_instance; 41bd926f64Such MIPSConsole(void); 42bd926f64Such 43bd926f64Such public: 44bd926f64Such virtual ~MIPSConsole(); 45bd926f64Such static MIPSConsole *Instance(void); 46bd926f64Such }; 47bd926f64Such #endif //_HPCBOOT_MIPS_CONSOLE_H_ 48