source: rtems/c/src/lib/libcpu/sh/sh7045/include/sci.h @ 0312d81f

4.104.114.84.95
Last change on this file since 0312d81f was 1c98d28, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 13, 1999 at 8:35:09 PM

Patch rtems-19991203.sh2.diff from John M. Mills <jmills@…> which
fixes some problems:

I found the problem which prevented opening 'dev/sci1' (the default
console) with the 'gensh2' (sh7045) BSP. Both SCI ports were being
initialized against the same minor device number: '0'. When I tried to
open minor-device '1', it naturally crashed. Fixing that one value in the
'sci_device[]' array solved the problem and allowed 'hello.exe' to run.

  • Property mode set to 100644
File size: 1.8 KB
Line 
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 *  Copyright assigned to U.S. Government, 1994.
17 *
18 *  The license and distribution terms for this file may be
19 *  found in the file LICENSE in this distribution or at
20 *  http://www.OARcorp.com/rtems/license.html.
21 *
22 *  $Id$
23 */
24
25#ifndef _sh_sci_h
26#define _sh_sci_h
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/*
33 * Devices are set to 9600 bps, 8 databits, 1 stopbit, no
34 * parity and asynchronous mode by default.
35 *
36 * NOTE:
37 *       The onboard serial devices of the SH do not support hardware
38 *       handshake.
39 */ 
40
41#define DEVSCI_DRIVER_TABLE_ENTRY \
42  { sh_sci_initialize, sh_sci_open, sh_sci_close, sh_sci_read, \
43      sh_sci_write, sh_sci_control }
44
45extern rtems_device_driver sh_sci_initialize(
46  rtems_device_major_number,
47  rtems_device_minor_number,
48  void *
49);
50
51extern rtems_device_driver sh_sci_open(
52  rtems_device_major_number,
53  rtems_device_minor_number,
54  void *
55);
56
57extern rtems_device_driver sh_sci_close(
58  rtems_device_major_number,
59  rtems_device_minor_number,
60  void *
61);
62
63extern rtems_device_driver sh_sci_read(
64  rtems_device_major_number,
65  rtems_device_minor_number,
66  void *
67);
68
69extern rtems_device_driver sh_sci_write(
70  rtems_device_major_number,
71  rtems_device_minor_number,
72  void *
73);
74
75extern rtems_device_driver sh_sci_control(
76  rtems_device_major_number,
77  rtems_device_minor_number,
78  void *
79);
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif
Note: See TracBrowser for help on using the repository browser.