OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [shared/] [console/] [consoleIo.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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: consoleIo.h,v 1.2 2001-09-27 12:01:06 chris Exp $
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
  __io_ptr pci_mmio_base;
30
  __io_ptr pci_dma_offset;
31
} board_memory_map;
32
 
33
extern board_memory_map *ptr_mem_map;
34
extern unsigned long ticks_per_ms;
35
 
36
extern int select_console(ioType t);
37
extern int printk(const char *, ...) __attribute__((format(printf, 1, 2)));
38
extern void udelay(int);
39
extern void debug_putc(const unsigned char c);
40
extern int debug_getc(void);
41
extern int debug_tstc(void);
42
int kbdreset(void);
43
 
44
 
45
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.