4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef _MPC8XX_CONSOLE_H |
---|
6 | #define _MPC8XX_CONSOLE_H |
---|
7 | |
---|
8 | #include <rtems/libio.h> |
---|
9 | |
---|
10 | void m8xx_uart_reserve_resources(rtems_configuration_table *configuration); |
---|
11 | void m8xx_uart_initialize(void); |
---|
12 | void m8xx_uart_interrupts_initialize(void); |
---|
13 | void m8xx_uart_scc_initialize (int minor); |
---|
14 | void m8xx_uart_smc_initialize (int minor); |
---|
15 | |
---|
16 | /* Termios callbacks */ |
---|
17 | int m8xx_uart_pollRead(int minor); |
---|
18 | int m8xx_uart_pollWrite(int minor, const char* buf, int len); |
---|
19 | int m8xx_uart_write(int minor, const char *buf, int len); |
---|
20 | int m8xx_uart_setAttributes(int, const struct termios* t); |
---|
21 | |
---|
22 | |
---|
23 | #ifdef mpc860 |
---|
24 | #define NUM_PORTS 6 /* number of serial ports for mpc860 */ |
---|
25 | #else |
---|
26 | #define NUM_PORTS 4 /* number of serial ports for mpc821 */ |
---|
27 | #endif |
---|
28 | |
---|
29 | #define SMC1_MINOR 0 |
---|
30 | #define SMC2_MINOR 1 |
---|
31 | #define SCC1_MINOR 2 |
---|
32 | #define SCC2_MINOR 3 |
---|
33 | #define SCC3_MINOR 4 |
---|
34 | #define SCC4_MINOR 5 |
---|
35 | |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.