forked from Imagelibrary/rtems
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.
43 lines
933 B
C
43 lines
933 B
C
/*
|
|
* consoleIo.h -- console I/O package interface
|
|
*
|
|
* Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in found in the file LICENSE in this distribution or at
|
|
* http://www.OARcorp.com/rtems/license.html.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef __CONSOLE_IO_H
|
|
#define __CONSOLE_IO_H
|
|
|
|
|
|
typedef enum {
|
|
CONSOLE_LOG = 1,
|
|
CONSOLE_SERIAL = 2,
|
|
CONSOLE_VGA = 3,
|
|
CONSOLE_VACUUM = 4
|
|
}ioType;
|
|
|
|
typedef volatile unsigned char * __io_ptr;
|
|
|
|
typedef struct {
|
|
__io_ptr io_base;
|
|
__io_ptr isa_mem_base;
|
|
} board_memory_map;
|
|
|
|
extern board_memory_map *ptr_mem_map;
|
|
|
|
extern int select_console(ioType t);
|
|
/* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */
|
|
extern void debug_putc(const unsigned char c);
|
|
extern void debug_putc_onlcr(const char c);
|
|
extern int debug_getc(void);
|
|
extern int debug_tstc(void);
|
|
int kbdreset(void);
|
|
|
|
|
|
#endif
|