RTEMS: bsps/sh/gensh1/include/sh/sci.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
sci.h
1/*
2 * Driver for the sh1 703x 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#ifdef __cplusplus
26extern "C" {
27#endif
28
29/*
30 * Devices are set to 9600 bps, 8 databits, 1 stopbit, no
31 * parity and asynchronous mode by default.
32 *
33 * NOTE:
34 * The onboard serial devices of the SH do not support hardware
35 * handshake.
36 */
37
38#define DEVSCI_DRIVER_TABLE_ENTRY \
39 { sh_sci_initialize, sh_sci_open, sh_sci_close, sh_sci_read, \
40 sh_sci_write, sh_sci_control }
41
42extern rtems_device_driver sh_sci_initialize(
43 rtems_device_major_number,
44 rtems_device_minor_number,
45 void *
46);
47
48extern rtems_device_driver sh_sci_open(
49 rtems_device_major_number,
50 rtems_device_minor_number,
51 void *
52);
53
54extern rtems_device_driver sh_sci_close(
55 rtems_device_major_number,
56 rtems_device_minor_number,
57 void *
58);
59
60extern rtems_device_driver sh_sci_read(
61 rtems_device_major_number,
62 rtems_device_minor_number,
63 void *
64);
65
66extern rtems_device_driver sh_sci_write(
67 rtems_device_major_number,
68 rtems_device_minor_number,
69 void *
70);
71
72extern rtems_device_driver sh_sci_control(
73 rtems_device_major_number,
74 rtems_device_minor_number,
75 void *
76);
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43