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

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
console.h
1/*
2 * Console declarations
3 *
4 *
5 * MPC5xx port sponsored by Defence Research and Development Canada - Suffield
6 * Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca)
7 *
8 * The license and distribution terms for this file may be
9 * found in the file LICENSE in this distribution or at
10 * http://www.rtems.org/license/LICENSE.
11 */
12
13#ifndef _MPC5XX_CONSOLE_H
14#define _MPC5XX_CONSOLE_H
15
16#include <rtems/libio.h>
17#include <rtems/termiostypes.h>
18
19void m5xx_uart_initialize(int minor);
20
21/* Termios callbacks */
22int m5xx_uart_firstOpen(int maj, int min, void *arg);
23int m5xx_uart_lastClose(int maj, int min, void *arg);
24int m5xx_uart_pollRead(int minor);
25ssize_t m5xx_uart_pollWrite(int minor, const char* buf, size_t len);
26ssize_t m5xx_uart_write (int minor, const char *buf, size_t len);
27int m5xx_uart_setAttributes(int, const struct termios* t);
28
29#define NUM_PORTS 2 /* number of serial ports */
30
31#define SCI1_MINOR 0
32#define SCI2_MINOR 1
33
34#endif /* _MPC5XX_CONSOLE_H */
libio.h
Basic IO API.
termiostypes.h