1213136Spjd/*-
2213136Spjd * Copyright (c) 1998 Robert Nordier
3213136Spjd * All rights reserved.
4213136Spjd *
5213136Spjd * Redistribution and use in source and binary forms are freely
6213136Spjd * permitted provided that the above copyright notice and this
7213136Spjd * paragraph and the following disclaimer are duplicated in all
8213136Spjd * such forms.
9213136Spjd *
10213136Spjd * This software is provided "AS IS" and without any express or
11213136Spjd * implied warranties, including, without limitation, the implied
12213136Spjd * warranties of merchantability and fitness for a particular
13213136Spjd * purpose.
14213136Spjd *
15213136Spjd * $FreeBSD: releng/11.0/sys/boot/i386/common/cons.h 299655 2016-05-13 10:59:46Z ngie $
16213136Spjd */
17213136Spjd
18213136Spjd#ifndef _CONS_H_
19213136Spjd#define	_CONS_H_
20213136Spjd
21213136Spjd#define IO_KEYBOARD	1
22213136Spjd#define IO_SERIAL	2
23213136Spjd
24213136Spjdextern uint8_t ioctrl;
25213136Spjd
26213136Spjdvoid putc(int c);
27213136Spjdvoid xputc(int c);
28213136Spjdvoid putchar(int c);
29213136Spjdint getc(int fn);
30213136Spjdint xgetc(int fn);
31299655Sngieint getchar(void);
32213136Spjdint keyhit(unsigned int secs);
33213136Spjdvoid getstr(char *cmdstr, size_t cmdstrsize);
34213136Spjd
35213136Spjd#endif	/* !_CONS_H_ */
36