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 16*ca987d46SWarner Losh #ifndef _CONS_H_ 17*ca987d46SWarner Losh #define _CONS_H_ 18*ca987d46SWarner Losh 19*ca987d46SWarner Losh #define IO_KEYBOARD 1 20*ca987d46SWarner Losh #define IO_SERIAL 2 21*ca987d46SWarner Losh 22*ca987d46SWarner Losh extern uint8_t ioctrl; 23*ca987d46SWarner Losh 24*ca987d46SWarner Losh void putc(int c); 25*ca987d46SWarner Losh void xputc(int c); 26*ca987d46SWarner Losh void putchar(int c); 27*ca987d46SWarner Losh int getc(int fn); 28*ca987d46SWarner Losh int xgetc(int fn); 29*ca987d46SWarner Losh int getchar(void); 30*ca987d46SWarner Losh int keyhit(unsigned int secs); 31*ca987d46SWarner Losh void getstr(char *cmdstr, size_t cmdstrsize); 32*ca987d46SWarner Losh 33*ca987d46SWarner Losh #endif /* !_CONS_H_ */ 34