RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sci.h
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.rtems.org/license/LICENSE.
20 */
21
22#ifndef _sh_sci_h
23#define _sh_sci_h
24
25#include <rtems/libio.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*
32 * Devices are set to 9600 bps, 8 databits, 1 stopbit, no
33 * parity and asynchronous mode by default.
34 *
35 * NOTE:
36 * The onboard serial devices of the SH do not support hardware
37 * handshake.
38 */
39
40#define DEVSCI_DRIVER_TABLE_ENTRY \
41 { sh_sci_initialize, sh_sci_open, sh_sci_close, sh_sci_read, \
42 sh_sci_write, sh_sci_control }
43
44extern rtems_device_driver sh_sci_initialize(
45 rtems_device_major_number,
46 rtems_device_minor_number,
47 void *
48);
49
50extern rtems_device_driver sh_sci_open(
51 rtems_device_major_number,
52 rtems_device_minor_number,
53 void *
54);
55
56extern rtems_device_driver sh_sci_close(
57 rtems_device_major_number,
58 rtems_device_minor_number,
59 void *
60);
61
62extern rtems_device_driver sh_sci_read(
63 rtems_device_major_number,
64 rtems_device_minor_number,
65 void *
66);
67
68extern rtems_device_driver sh_sci_write(
69 rtems_device_major_number,
70 rtems_device_minor_number,
71 void *
72);
73
74extern rtems_device_driver sh_sci_control(
75 rtems_device_major_number,
76 rtems_device_minor_number,
77 void *
78);
79
80extern const rtems_termios_callbacks * sh_sci_get_termios_handlers(
81 bool poll
82);
83
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif
rtems_status_code
Classic API Status.
Definition: status.h:43
Basic IO API.
Definition: libio.h:1879