4.104.114.84.95
Line | |
---|
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 found in the file LICENSE in this distribution or at |
---|
8 | * http://www.rtems.com/license/LICENSE. |
---|
9 | * |
---|
10 | * $Id$ |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef __CONSOLE_IO_H |
---|
14 | #define __CONSOLE_IO_H |
---|
15 | |
---|
16 | typedef enum { |
---|
17 | CONSOLE_LOG = 1, |
---|
18 | CONSOLE_SERIAL = 2, |
---|
19 | CONSOLE_VGA = 3, |
---|
20 | CONSOLE_VACUUM = 4 |
---|
21 | }ioType; |
---|
22 | |
---|
23 | typedef volatile unsigned char * __io_ptr; |
---|
24 | |
---|
25 | typedef struct { |
---|
26 | __io_ptr io_base; |
---|
27 | __io_ptr isa_mem_base; |
---|
28 | } board_memory_map; |
---|
29 | |
---|
30 | extern board_memory_map *ptr_mem_map; |
---|
31 | |
---|
32 | extern int select_console(ioType t); |
---|
33 | /* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */ |
---|
34 | extern void debug_putc(const unsigned char c); |
---|
35 | extern void debug_putc_onlcr(const char c); |
---|
36 | extern int debug_getc(void); |
---|
37 | extern int debug_tstc(void); |
---|
38 | int kbdreset(void); |
---|
39 | |
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.