1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
/* consolex.h
*
* This file describes the Extended Console Device Driver
* This driver provides support for the standard C Library.
*
* This file was created originally by
* On-Line Applications Research Corporation (OAR)
* and modified by:
*
* Katsutoshi Shibuya - BU-Denken Co.,Ltd. - Sapporo, JAPAN
*
* featuring support of:
*
* - Multi-SCC chip handling
* - Non-blocking I/O (O_NDELAY flag in libc)
* - Raw mode device (no CR/LF detection)
* - RTS/CTS flow control
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#ifndef _CONSOLEX_DRIVER_h
#define _CONSOLEX_DRIVER_h
#include <rtems.h>
#include <termios.h>
#ifdef __cplusplus
extern "C" {
#endif
#define CONSOLEX_DRIVER_TABLE_ENTRY \
{ consolex_initialize, consolex_open, consolex_close, \
consolex_read, consolex_write, consolex_control }
rtems_device_driver consolex_initialize(
rtems_device_major_number,
rtems_device_minor_number,
void *
);
rtems_device_driver consolex_open(
rtems_device_major_number,
rtems_device_minor_number,
void *
);
rtems_device_driver consolex_close(
rtems_device_major_number,
rtems_device_minor_number,
void *
);
rtems_device_driver consolex_read(
rtems_device_major_number,
rtems_device_minor_number,
void *
);
rtems_device_driver consolex_write(
rtems_device_major_number,
rtems_device_minor_number,
void *
);
rtems_device_driver consolex_control(
rtems_device_major_number,
rtems_device_minor_number,
void *
);
/* Low level IO functions */
void SCCInitialize();
rtems_boolean SCCGetOne(int port, char *ch);
char SCCGetOneBlocked(int port);
rtems_boolean SCCSendOne(int port, char ch);
void SCCSendOneBlocked(int port, char ch);
unsigned32 SCCSetAttributes(int port, struct termios *t);
unsigned32 SCCGetAttributes(int port, struct termios *t);
#ifdef __cplusplus
}
#endif
#endif
/* end of include file */
|