source: rtems/c/src/lib/libbsp/powerpc/shared/console/consoleIo.h @ bde9bb5

4.104.114.84.95
Last change on this file since bde9bb5 was bde9bb5, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 6, 2001 at 3:58:49 PM

2001-03-30 Eric Valette <valette@…>

  • Makefile.am, console/consoleIo.h, include/bsp.h: These modifications are part of the conversion of the mpc8xx CPU to the "new exception processing model."
  • Property mode set to 100644
File size: 1002 bytes
RevLine 
[acc25ee]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
17typedef enum {
18  CONSOLE_LOG           = 1,
19  CONSOLE_SERIAL        = 2,
20  CONSOLE_VGA           = 3,
21  CONSOLE_VACUUM        = 4
22}ioType;
23
24typedef volatile unsigned char * __io_ptr;
25
26typedef struct {
27  __io_ptr io_base;
28  __io_ptr isa_mem_base;
29  __io_ptr pci_mmio_base;
30  __io_ptr pci_dma_offset;
31} board_memory_map;
32
33extern board_memory_map *ptr_mem_map;
34extern unsigned long ticks_per_ms;
35
36extern int select_console(ioType t);
[bde9bb5]37/* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */
[acc25ee]38extern void udelay(int);
39extern void debug_putc(const unsigned char c);
40extern int debug_getc(void);
41extern int debug_tstc(void);
42int kbdreset(void);
43
44
45#endif
Note: See TracBrowser for help on using the repository browser.