1*ce099b40Smartin /* $NetBSD: prf.c,v 1.2 2008/04/28 20:23:34 martin Exp $ */
268fe5b6fSgarbled
368fe5b6fSgarbled /*-
468fe5b6fSgarbled * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
568fe5b6fSgarbled * All rights reserved.
668fe5b6fSgarbled *
768fe5b6fSgarbled * This code is derived from software contributed to The NetBSD Foundation
868fe5b6fSgarbled * by Kazuki Sakamoto.
968fe5b6fSgarbled *
1068fe5b6fSgarbled * Redistribution and use in source and binary forms, with or without
1168fe5b6fSgarbled * modification, are permitted provided that the following conditions
1268fe5b6fSgarbled * are met:
1368fe5b6fSgarbled * 1. Redistributions of source code must retain the above copyright
1468fe5b6fSgarbled * notice, this list of conditions and the following disclaimer.
1568fe5b6fSgarbled * 2. Redistributions in binary form must reproduce the above copyright
1668fe5b6fSgarbled * notice, this list of conditions and the following disclaimer in the
1768fe5b6fSgarbled * documentation and/or other materials provided with the distribution.
1868fe5b6fSgarbled *
1968fe5b6fSgarbled * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2068fe5b6fSgarbled * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2168fe5b6fSgarbled * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2268fe5b6fSgarbled * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2368fe5b6fSgarbled * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2468fe5b6fSgarbled * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2568fe5b6fSgarbled * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2668fe5b6fSgarbled * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2768fe5b6fSgarbled * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2868fe5b6fSgarbled * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2968fe5b6fSgarbled * POSSIBILITY OF SUCH DAMAGE.
3068fe5b6fSgarbled */
3168fe5b6fSgarbled #include <lib/libsa/stand.h>
3268fe5b6fSgarbled #include "boot.h"
3368fe5b6fSgarbled
3468fe5b6fSgarbled void
putchar(int c)3568fe5b6fSgarbled putchar(int c)
3668fe5b6fSgarbled {
3768fe5b6fSgarbled
3868fe5b6fSgarbled cnputc(c);
3968fe5b6fSgarbled }
4068fe5b6fSgarbled
4168fe5b6fSgarbled int
getchar(void)4268fe5b6fSgarbled getchar(void)
4368fe5b6fSgarbled {
4468fe5b6fSgarbled
4568fe5b6fSgarbled return (cngetc());
4668fe5b6fSgarbled }
47