Last change
on this file since 3605c4e was
6ad36947,
checked in by Joel Sherrill <joel.sherrill@…>, on 04/10/03 at 16:35:13
|
2003-04-10 Till Straumann <strauman@…>
PR 379/bsps
- console/polled_io.c: libcpu provides 'printk' already.
Therefore, the implementation in this file was removed (still
used for the bootloader, though). It now provides BSP_output_char()
for libcpu's printk().
- console/uart.c, console/uart.h: BSP_output_char_via_serial()
prototype changed to match the BSP_output_char_function_type. Note
that the motorola BSPs use polled-io for the output_char routine, not
the uart.c version. The latter can be used be other BSPs however
(e.g. SVGM).
- console/console.c, console/consoleIo.h, console/polled_io.c,
irq/irq_init.c, openpic/openpic.c, pci/detect_raven_bridge.c:
Unfortunately, the supported 'printk' format string subset of the
polled-io and libcpu implementations are different - hence, a few
format strings in the ppc/shared BSP were changed.
|
-
Property mode set to
100644
|
File size:
933 bytes
|
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.OARcorp.com/rtems/license.html. |
---|
9 | * |
---|
10 | * $Id$ |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef __CONSOLE_IO_H |
---|
14 | #define __CONSOLE_IO_H |
---|
15 | |
---|
16 | |
---|
17 | typedef enum { |
---|
18 | CONSOLE_LOG = 1, |
---|
19 | CONSOLE_SERIAL = 2, |
---|
20 | CONSOLE_VGA = 3, |
---|
21 | CONSOLE_VACUUM = 4 |
---|
22 | }ioType; |
---|
23 | |
---|
24 | typedef volatile unsigned char * __io_ptr; |
---|
25 | |
---|
26 | typedef struct { |
---|
27 | __io_ptr io_base; |
---|
28 | __io_ptr isa_mem_base; |
---|
29 | } board_memory_map; |
---|
30 | |
---|
31 | extern board_memory_map *ptr_mem_map; |
---|
32 | |
---|
33 | extern int select_console(ioType t); |
---|
34 | /* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */ |
---|
35 | extern void debug_putc(const unsigned char c); |
---|
36 | extern void debug_putc_onlcr(const char c); |
---|
37 | extern int debug_getc(void); |
---|
38 | extern int debug_tstc(void); |
---|
39 | int kbdreset(void); |
---|
40 | |
---|
41 | |
---|
42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.