1*ca987d46SWarner Losh /*- 2*ca987d46SWarner Losh * Copyright (c) 1998 Robert Nordier 3*ca987d46SWarner Losh * All rights reserved. 4*ca987d46SWarner Losh * 5*ca987d46SWarner Losh * Redistribution and use in source and binary forms are freely 6*ca987d46SWarner Losh * permitted provided that the above copyright notice and this 7*ca987d46SWarner Losh * paragraph and the following disclaimer are duplicated in all 8*ca987d46SWarner Losh * such forms. 9*ca987d46SWarner Losh * 10*ca987d46SWarner Losh * This software is provided "AS IS" and without any express or 11*ca987d46SWarner Losh * implied warranties, including, without limitation, the implied 12*ca987d46SWarner Losh * warranties of merchantability and fitness for a particular 13*ca987d46SWarner Losh * purpose. 14*ca987d46SWarner Losh * 15*ca987d46SWarner Losh * $FreeBSD$ 16*ca987d46SWarner Losh */ 17*ca987d46SWarner Losh 18*ca987d46SWarner Losh #ifndef _CONS_H_ 19*ca987d46SWarner Losh #define _CONS_H_ 20*ca987d46SWarner Losh 21*ca987d46SWarner Losh #define IO_KEYBOARD 1 22*ca987d46SWarner Losh #define IO_SERIAL 2 23*ca987d46SWarner Losh 24*ca987d46SWarner Losh extern uint8_t ioctrl; 25*ca987d46SWarner Losh 26*ca987d46SWarner Losh void putc(int c); 27*ca987d46SWarner Losh void xputc(int c); 28*ca987d46SWarner Losh void putchar(int c); 29*ca987d46SWarner Losh int getc(int fn); 30*ca987d46SWarner Losh int xgetc(int fn); 31*ca987d46SWarner Losh int getchar(void); 32*ca987d46SWarner Losh int keyhit(unsigned int secs); 33*ca987d46SWarner Losh void getstr(char *cmdstr, size_t cmdstrsize); 34*ca987d46SWarner Losh 35*ca987d46SWarner Losh #endif /* !_CONS_H_ */ 36