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

4.104.114.84.95
Last change on this file since ee733965 was ee733965, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 17, 1999 at 8:24:53 PM

Jay Monkman <jmonkman@…> submitted the eth_comm BSP for a PPC860
based board.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1#ifndef _M860_CONSOLE_H_
2#define _M860_CONSOLE_H_
3
4#include <rtems/libio.h>
5
6int m860_smc_set_attributes(int, const struct termios*);
7int m860_scc_set_attributes(int, const struct termios*);
8void m860_scc_initialize(int);
9void m860_smc_initialize(int);
10int m860_char_poll_read(int);
11int m860_char_poll_write(int, const char*, int);
12rtems_isr m860_scc1_console_interrupt_handler(rtems_vector_number);
13rtems_isr m860_scc2_console_interrupt_handler(rtems_vector_number);
14rtems_isr m860_scc3_console_interrupt_handler(rtems_vector_number);
15rtems_isr m860_scc4_console_interrupt_handler(rtems_vector_number);
16rtems_isr m860_smc1_console_interrupt_handler(rtems_vector_number);
17rtems_isr m860_smc2_console_interrupt_handler(rtems_vector_number);
18int m860_buf_poll_read(int, char**);
19int m860_buf_poll_write(int, char*, int);
20void m860_console_initialize(void);
21rtems_device_driver m860_console_read(rtems_device_major_number,
22                                      rtems_device_minor_number,
23                                      void*);
24rtems_device_driver m860_console_write(rtems_device_major_number,
25                                       rtems_device_minor_number,
26                                       void*);
27
28
29typedef struct Buf_t_ {
30  struct Buf_t_ *next;
31  volatile char *buf;
32  volatile int   len;
33  int   pos;
34} Buf_t;
35
36#define SMC1_MINOR    0
37#define SMC2_MINOR    1
38#define SCC1_MINOR    2
39#define SCC2_MINOR    3
40#define SCC3_MINOR    4
41#define SCC4_MINOR    5
42
43
44#endif
Note: See TracBrowser for help on using the repository browser.