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

4.104.114.84.95
Last change on this file since 37731c2b was acc25ee, checked in by Joel Sherrill <joel.sherrill@…>, on 12/02/99 at 14:31:19

Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@…>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.

  • Property mode set to 100644
File size: 996 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
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);
37extern int printk(const char *, ...) __attribute__((format(printf, 1, 2)));
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.