1*ce099b40Smartin /* $NetBSD: prf.c,v 1.3 2008/04/28 20:23:36 martin Exp $ */
297aa1417Scdi
397aa1417Scdi /*-
497aa1417Scdi * Copyright (c) 2005 The NetBSD Foundation, Inc.
597aa1417Scdi * All rights reserved.
697aa1417Scdi *
797aa1417Scdi * This code is derived from software contributed to The NetBSD Foundation
897aa1417Scdi * by Kazuki Sakamoto.
997aa1417Scdi *
1097aa1417Scdi * Redistribution and use in source and binary forms, with or without
1197aa1417Scdi * modification, are permitted provided that the following conditions
1297aa1417Scdi * are met:
1397aa1417Scdi * 1. Redistributions of source code must retain the above copyright
1497aa1417Scdi * notice, this list of conditions and the following disclaimer.
1597aa1417Scdi * 2. Redistributions in binary form must reproduce the above copyright
1697aa1417Scdi * notice, this list of conditions and the following disclaimer in the
1797aa1417Scdi * documentation and/or other materials provided with the distribution.
1897aa1417Scdi *
1997aa1417Scdi * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2097aa1417Scdi * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2197aa1417Scdi * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2297aa1417Scdi * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2397aa1417Scdi * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2497aa1417Scdi * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2597aa1417Scdi * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2697aa1417Scdi * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2797aa1417Scdi * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2897aa1417Scdi * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2997aa1417Scdi * POSSIBILITY OF SUCH DAMAGE.
3097aa1417Scdi */
3197aa1417Scdi
3297aa1417Scdi #include <lib/libsa/stand.h>
3397aa1417Scdi #include <machine/promlib.h>
3497aa1417Scdi
3597aa1417Scdi void
putchar(int c)364c3c91e6Suwe putchar(int c)
3797aa1417Scdi {
384c3c91e6Suwe
3997aa1417Scdi prom_putchar(c);
4097aa1417Scdi }
4197aa1417Scdi
4297aa1417Scdi int
getchar(void)434c3c91e6Suwe getchar(void)
4497aa1417Scdi {
454c3c91e6Suwe
4697aa1417Scdi return (prom_getchar());
4797aa1417Scdi }
48