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-1998. |
---|
20 | * On-Line Applications Research Corporation (OAR). |
---|
21 | * Copyright assigned to U.S. Government, 1994. |
---|
22 | * |
---|
23 | * The license and distribution terms for this file may be |
---|
24 | * found in the file LICENSE in this distribution or at |
---|
25 | * http://www.OARcorp.com/rtems/license.html. |
---|
26 | * |
---|
27 | * $Id$ |
---|
28 | */ |
---|
29 | |
---|
30 | #ifndef _CONSOLEX_DRIVER_h |
---|
31 | #define _CONSOLEX_DRIVER_h |
---|
32 | |
---|
33 | #include <rtems.h> |
---|
34 | #include <termios.h> |
---|
35 | |
---|
36 | #ifdef __cplusplus |
---|
37 | extern "C" { |
---|
38 | #endif |
---|
39 | |
---|
40 | #define CONSOLEX_DRIVER_TABLE_ENTRY \ |
---|
41 | { consolex_initialize, consolex_open, consolex_close, \ |
---|
42 | consolex_read, consolex_write, consolex_control } |
---|
43 | |
---|
44 | rtems_device_driver consolex_initialize( |
---|
45 | rtems_device_major_number, |
---|
46 | rtems_device_minor_number, |
---|
47 | void * |
---|
48 | ); |
---|
49 | |
---|
50 | rtems_device_driver consolex_open( |
---|
51 | rtems_device_major_number, |
---|
52 | rtems_device_minor_number, |
---|
53 | void * |
---|
54 | ); |
---|
55 | |
---|
56 | rtems_device_driver consolex_close( |
---|
57 | rtems_device_major_number, |
---|
58 | rtems_device_minor_number, |
---|
59 | void * |
---|
60 | ); |
---|
61 | |
---|
62 | rtems_device_driver consolex_read( |
---|
63 | rtems_device_major_number, |
---|
64 | rtems_device_minor_number, |
---|
65 | void * |
---|
66 | ); |
---|
67 | |
---|
68 | rtems_device_driver consolex_write( |
---|
69 | rtems_device_major_number, |
---|
70 | rtems_device_minor_number, |
---|
71 | void * |
---|
72 | ); |
---|
73 | |
---|
74 | rtems_device_driver consolex_control( |
---|
75 | rtems_device_major_number, |
---|
76 | rtems_device_minor_number, |
---|
77 | void * |
---|
78 | ); |
---|
79 | |
---|
80 | /* Low level IO functions */ |
---|
81 | void SCCInitialize(); |
---|
82 | rtems_boolean SCCGetOne(int port, char *ch); |
---|
83 | char SCCGetOneBlocked(int port); |
---|
84 | rtems_boolean SCCSendOne(int port, char ch); |
---|
85 | void SCCSendOneBlocked(int port, char ch); |
---|
86 | unsigned32 SCCSetAttributes(int port, struct termios *t); |
---|
87 | unsigned32 SCCGetAttributes(int port, struct termios *t); |
---|
88 | |
---|
89 | #ifdef __cplusplus |
---|
90 | } |
---|
91 | #endif |
---|
92 | |
---|
93 | #endif |
---|
94 | /* end of include file */ |
---|