xref: /netbsd-src/sys/arch/cobalt/stand/boot/ns16550.h (revision b87210fa510e6eecfd48e218f3aefcb05cbe4636)
1*b87210faStsutsui /*	$NetBSD: ns16550.h,v 1.6 2008/05/14 13:29:28 tsutsui Exp $	*/
22b74542aScdi 
32b74542aScdi /*-
41a8652c7Stsutsui  * Copyright (c) 2008 Izumi Tsutsui.  All rights reserved.
52b74542aScdi  *
62b74542aScdi  * Redistribution and use in source and binary forms, with or without
72b74542aScdi  * modification, are permitted provided that the following conditions
82b74542aScdi  * are met:
92b74542aScdi  * 1. Redistributions of source code must retain the above copyright
102b74542aScdi  *    notice, this list of conditions and the following disclaimer.
112b74542aScdi  * 2. Redistributions in binary form must reproduce the above copyright
122b74542aScdi  *    notice, this list of conditions and the following disclaimer in the
132b74542aScdi  *    documentation and/or other materials provided with the distribution.
142b74542aScdi  *
152b74542aScdi  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
162b74542aScdi  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
172b74542aScdi  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
182b74542aScdi  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
192b74542aScdi  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
202b74542aScdi  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
212b74542aScdi  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
222b74542aScdi  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23*b87210faStsutsui  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24*b87210faStsutsui  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
252b74542aScdi  */
262b74542aScdi 
272b74542aScdi #ifndef COMPROBE
282b74542aScdi #define COMPROBE 0xa020001c
292b74542aScdi #endif
302b74542aScdi 
311a8652c7Stsutsui void *com_init(int, int);
321a8652c7Stsutsui void com_putc(void *, int);
331a8652c7Stsutsui int com_getc(void *);
341a8652c7Stsutsui int com_scankbd(void *);
35