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