RTEMS  5.1
consoleIo.h
1 /*
2  * consoleIo.h -- console I/O package interface
3  *
4  * Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
5  *
6  * The license and distribution terms for this file may be
7  * found in the file LICENSE in this distribution or at
8  * http://www.rtems.org/license/LICENSE.
9  */
10 
11 #ifndef __CONSOLE_IO_H
12 #define __CONSOLE_IO_H
13 
14 typedef enum {
15  CONSOLE_LOG = 1,
16  CONSOLE_SERIAL = 2,
17  CONSOLE_VGA = 3,
18  CONSOLE_VACUUM = 4
19 }ioType;
20 
21 typedef volatile unsigned char * __io_ptr;
22 
23 typedef struct {
24  __io_ptr io_base;
25  __io_ptr isa_mem_base;
27 
28 extern board_memory_map *ptr_mem_map;
29 
30 extern int select_console(ioType t);
31 /* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */
32 extern void debug_putc(const char c);
33 extern void debug_putc_onlcr(const char c);
34 extern int debug_getc(void);
35 extern int debug_tstc(void);
36 int kbdreset(void);
37 
38 #endif
Definition: consoleIo.h:23