xref: /openbsd-src/sys/arch/sparc64/dev/cons.h (revision 28d09237077354eff565f9f3ef991865a249ce6c)
1*28d09237Sjsg /*	$OpenBSD: cons.h,v 1.6 2024/05/22 05:51:49 jsg Exp $	*/
2284584b0Sjason /*	$NetBSD: cons.h,v 1.3 2000/05/19 05:26:17 eeh Exp $	*/
3284584b0Sjason 
4284584b0Sjason /*-
5284584b0Sjason  * Copyright (c) 2000 Eduardo E. Horvath
6284584b0Sjason  * All rights reserved.
7284584b0Sjason  *
8284584b0Sjason  * Redistribution and use in source and binary forms, with or without
9284584b0Sjason  * modification, are permitted provided that the following conditions
10284584b0Sjason  * are met:
11284584b0Sjason  * 1. Redistributions of source code must retain the above copyright
12284584b0Sjason  *    notice, this list of conditions and the following disclaimer.
13284584b0Sjason  * 2. Redistributions in binary form must reproduce the above copyright
14284584b0Sjason  *    notice, this list of conditions and the following disclaimer in the
15284584b0Sjason  *    documentation and/or other materials provided with the distribution.
16284584b0Sjason  * 3. The name of the author may not be used to endorse or promote products
17284584b0Sjason  *    derived from this software without specific prior written permission.
18284584b0Sjason  *
19284584b0Sjason  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20284584b0Sjason  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21284584b0Sjason  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22284584b0Sjason  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23284584b0Sjason  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24284584b0Sjason  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25284584b0Sjason  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26284584b0Sjason  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27284584b0Sjason  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28284584b0Sjason  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29284584b0Sjason  * SUCH DAMAGE.
30284584b0Sjason  */
31284584b0Sjason 
32284584b0Sjason /* These are shared with the consinit OBP console */
33284584b0Sjason extern int stdin, stdout;
34c4071fd1Smillert void pcons_cnpollc(dev_t dev, int on);
35284584b0Sjason 
36284584b0Sjason struct consdev;
37284584b0Sjason struct zs_chanstate;
38284584b0Sjason 
39c4071fd1Smillert extern int  zs_getc(void *arg);
40c4071fd1Smillert extern void zs_putc(void *arg, int c);
41