File indexing completed on 2025-05-11 08:23:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef _MPC5XX_CONSOLE_H
0014 #define _MPC5XX_CONSOLE_H
0015
0016 #include <rtems/libio.h>
0017 #include <rtems/termiostypes.h>
0018
0019 void m5xx_uart_initialize(int minor);
0020
0021
0022 int m5xx_uart_firstOpen(int maj, int min, void *arg);
0023 int m5xx_uart_lastClose(int maj, int min, void *arg);
0024 int m5xx_uart_pollRead(int minor);
0025 ssize_t m5xx_uart_pollWrite(int minor, const char* buf, size_t len);
0026 ssize_t m5xx_uart_write (int minor, const char *buf, size_t len);
0027 int m5xx_uart_setAttributes(int, const struct termios* t);
0028
0029 #define NUM_PORTS 2
0030
0031 #define SCI1_MINOR 0
0032 #define SCI2_MINOR 1
0033
0034 #endif