1 | /* |
---|
2 | * Driver for the sh2 704x on-chip serial devices (sci) |
---|
3 | * |
---|
4 | * Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and |
---|
5 | * Bernd Becker (becker@faw.uni-ulm.de) |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany |
---|
8 | * |
---|
9 | * This program is distributed in the hope that it will be useful, |
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
12 | * |
---|
13 | * |
---|
14 | * COPYRIGHT (c) 1998. |
---|
15 | * On-Line Applications Research Corporation (OAR). |
---|
16 | * |
---|
17 | * The license and distribution terms for this file may be |
---|
18 | * found in the file LICENSE in this distribution or at |
---|
19 | * http://www.OARcorp.com/rtems/license.html. |
---|
20 | * |
---|
21 | * $Id$ |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef _sh_sci_h |
---|
25 | #define _sh_sci_h |
---|
26 | |
---|
27 | #include <rtems/libio.h> |
---|
28 | |
---|
29 | #ifdef __cplusplus |
---|
30 | extern "C" { |
---|
31 | #endif |
---|
32 | |
---|
33 | /* |
---|
34 | * Devices are set to 9600 bps, 8 databits, 1 stopbit, no |
---|
35 | * parity and asynchronous mode by default. |
---|
36 | * |
---|
37 | * NOTE: |
---|
38 | * The onboard serial devices of the SH do not support hardware |
---|
39 | * handshake. |
---|
40 | */ |
---|
41 | |
---|
42 | #define DEVSCI_DRIVER_TABLE_ENTRY \ |
---|
43 | { sh_sci_initialize, sh_sci_open, sh_sci_close, sh_sci_read, \ |
---|
44 | sh_sci_write, sh_sci_control } |
---|
45 | |
---|
46 | extern rtems_device_driver sh_sci_initialize( |
---|
47 | rtems_device_major_number, |
---|
48 | rtems_device_minor_number, |
---|
49 | void * |
---|
50 | ); |
---|
51 | |
---|
52 | extern rtems_device_driver sh_sci_open( |
---|
53 | rtems_device_major_number, |
---|
54 | rtems_device_minor_number, |
---|
55 | void * |
---|
56 | ); |
---|
57 | |
---|
58 | extern rtems_device_driver sh_sci_close( |
---|
59 | rtems_device_major_number, |
---|
60 | rtems_device_minor_number, |
---|
61 | void * |
---|
62 | ); |
---|
63 | |
---|
64 | extern rtems_device_driver sh_sci_read( |
---|
65 | rtems_device_major_number, |
---|
66 | rtems_device_minor_number, |
---|
67 | void * |
---|
68 | ); |
---|
69 | |
---|
70 | extern rtems_device_driver sh_sci_write( |
---|
71 | rtems_device_major_number, |
---|
72 | rtems_device_minor_number, |
---|
73 | void * |
---|
74 | ); |
---|
75 | |
---|
76 | extern rtems_device_driver sh_sci_control( |
---|
77 | rtems_device_major_number, |
---|
78 | rtems_device_minor_number, |
---|
79 | void * |
---|
80 | ); |
---|
81 | |
---|
82 | extern const rtems_termios_callbacks * sh_sci_get_termios_handlers( |
---|
83 | rtems_boolean poll |
---|
84 | ); |
---|
85 | |
---|
86 | |
---|
87 | #ifdef __cplusplus |
---|
88 | } |
---|
89 | #endif |
---|
90 | |
---|
91 | #endif |
---|