RTEMS: bsps/powerpc/include/mpc8260/console.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
console.h
1#ifndef _MPC8260_CONSOLE_H
2#define _MPC8260_CONSOLE_H
3
4#include <rtems/libio.h>
5
6void m8xx_uart_initialize(void);
7void m8xx_uart_interrupts_initialize(void);
8void m8xx_uart_scc_initialize (int minor);
9void m8xx_uart_smc_initialize (int minor);
10
11/* Termios callbacks */
12int m8xx_uart_pollRead(int minor);
13ssize_t m8xx_uart_pollWrite(int minor, const char* buf, size_t len);
14ssize_t m8xx_uart_write(int minor, const char *buf, size_t len);
15int m8xx_uart_setAttributes(int, const struct termios* t);
16
17
18#if 0
19int m8260_smc_set_attributes(int, const struct termios*);
20int m8260_scc_set_attributes(int, const struct termios*);
21void m8260_scc_initialize(int);
22void m8260_smc_initialize(int);
23int m8260_char_poll_read(int);
24int m8260_char_poll_write(int, const char*, int);
25 rtems_isr m8260_scc1_console_interrupt_handler(rtems_vector_number);
26 rtems_isr m8260_scc2_console_interrupt_handler(rtems_vector_number);
27 rtems_isr m8260_scc3_console_interrupt_handler(rtems_vector_number);
28 rtems_isr m8260_scc4_console_interrupt_handler(rtems_vector_number);
29 rtems_isr m8260_smc1_console_interrupt_handler(rtems_vector_number);
30 rtems_isr m8260_smc2_console_interrupt_handler(rtems_vector_number);
31int m8260_buf_poll_read(int, char**);
32int m8260_buf_poll_write(int, char*, int);
33void m8260_console_initialize(void);
34 rtems_device_driver m8260_console_read(rtems_device_major_number,
35 rtems_device_minor_number,
36 void*);
37 rtems_device_driver m8260_console_write(rtems_device_major_number,
38 rtems_device_minor_number,
39 void*);
40
41
42typedef struct Buf_t_ {
43 struct Buf_t_ *next;
44 volatile char *buf;
45 volatile int len;
46 int pos;
47} Buf_t;
48#endif
49
50#define NUM_PORTS 6
51
52#define SMC1_MINOR 0
53#define SMC2_MINOR 1
54#define SCC1_MINOR 2
55#define SCC2_MINOR 3
56#define SCC3_MINOR 4
57#define SCC4_MINOR 5
58
59
60#endif
rtems_isr
ISR_Handler rtems_isr
Return type for interrupt handler.
Definition: intr.h:52
rtems_vector_number
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43
libio.h
Basic IO API.