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