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