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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libcpu/] [powerpc/] [mpc860/] [include/] [console.h] - Blame information for rev 607

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  $Id: console.h,v 1.2 2001-09-27 12:01:29 chris Exp $
3
 */
4
 
5
#ifndef _M860_CONSOLE_H_
6
#define _M860_CONSOLE_H_
7
 
8
#include <rtems/libio.h>
9
 
10
int m860_smc_set_attributes(int, const struct termios*);
11
int m860_scc_set_attributes(int, const struct termios*);
12
void m860_scc_initialize(int);
13
void m860_smc_initialize(int);
14
int m860_char_poll_read(int);
15
int m860_char_poll_write(int, const char*, int);
16
rtems_isr m860_scc1_console_interrupt_handler(rtems_vector_number);
17
rtems_isr m860_scc2_console_interrupt_handler(rtems_vector_number);
18
rtems_isr m860_scc3_console_interrupt_handler(rtems_vector_number);
19
rtems_isr m860_scc4_console_interrupt_handler(rtems_vector_number);
20
rtems_isr m860_smc1_console_interrupt_handler(rtems_vector_number);
21
rtems_isr m860_smc2_console_interrupt_handler(rtems_vector_number);
22
int m860_buf_poll_read(int, char**);
23
int m860_buf_poll_write(int, char*, int);
24
void m860_console_initialize(void);
25
rtems_device_driver m860_console_read(rtems_device_major_number,
26
                                      rtems_device_minor_number,
27
                                      void*);
28
rtems_device_driver m860_console_write(rtems_device_major_number,
29
                                       rtems_device_minor_number,
30
                                       void*);
31
 
32
 
33
typedef struct Buf_t_ {
34
  struct Buf_t_ *next;
35
  volatile char *buf;
36
  volatile int   len;
37
  int   pos;
38
} Buf_t;
39
 
40
#define SMC1_MINOR    0
41
#define SMC2_MINOR    1
42
#define SCC1_MINOR    2
43
#define SCC2_MINOR    3
44
#define SCC3_MINOR    4
45
#define SCC4_MINOR    5
46
 
47
 
48
#endif

powered by: WebSVN 2.1.0

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