Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:53

0001 /*
0002  *  consoleIo.h  -- console I/O package interface
0003  *
0004  *  Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
0005  *
0006  *  The license and distribution terms for this file may be
0007  *  found in the file LICENSE in this distribution or at
0008  *  http://www.rtems.org/license/LICENSE.
0009  */
0010 
0011 #ifndef __CONSOLE_IO_H
0012 #define __CONSOLE_IO_H
0013 
0014 typedef enum {
0015   CONSOLE_LOG       = 1,
0016   CONSOLE_SERIAL        = 2,
0017   CONSOLE_VGA       = 3,
0018   CONSOLE_VACUUM    = 4
0019 }ioType;
0020 
0021 typedef volatile unsigned char * __io_ptr;
0022 
0023 typedef struct {
0024   __io_ptr io_base;
0025   __io_ptr isa_mem_base;
0026 } board_memory_map;
0027 
0028 extern board_memory_map *ptr_mem_map;
0029 
0030 extern int select_console(ioType t);
0031 /* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */
0032 extern void debug_putc(const char c);
0033 extern void debug_putc_onlcr(const char c);
0034 extern int debug_getc(void);
0035 extern int debug_tstc(void);
0036 int kbdreset(void);
0037 
0038 #endif