source: rtems/c/src/lib/libcpu/powerpc/mpc860/include/console.h @ 60f67aea

4.104.114.84.95
Last change on this file since 60f67aea was 60f67aea, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 18, 1999 at 3:11:24 PM

Added CVS Id string.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  $Id$
3 */
4
5#ifndef _M860_CONSOLE_H_
6#define _M860_CONSOLE_H_
7
8#include <rtems/libio.h>
9
10int m860_smc_set_attributes(int, const struct termios*);
11int m860_scc_set_attributes(int, const struct termios*);
12void m860_scc_initialize(int);
13void m860_smc_initialize(int);
14int m860_char_poll_read(int);
15int m860_char_poll_write(int, const char*, int);
16rtems_isr m860_scc1_console_interrupt_handler(rtems_vector_number);
17rtems_isr m860_scc2_console_interrupt_handler(rtems_vector_number);
18rtems_isr m860_scc3_console_interrupt_handler(rtems_vector_number);
19rtems_isr m860_scc4_console_interrupt_handler(rtems_vector_number);
20rtems_isr m860_smc1_console_interrupt_handler(rtems_vector_number);
21rtems_isr m860_smc2_console_interrupt_handler(rtems_vector_number);
22int m860_buf_poll_read(int, char**);
23int m860_buf_poll_write(int, char*, int);
24void m860_console_initialize(void);
25rtems_device_driver m860_console_read(rtems_device_major_number,
26                                      rtems_device_minor_number,
27                                      void*);
28rtems_device_driver m860_console_write(rtems_device_major_number,
29                                       rtems_device_minor_number,
30                                       void*);
31
32
33typedef 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
Note: See TracBrowser for help on using the repository browser.