source: rtems/c/src/lib/libcpu/sh/sh7045/include/sci.h @ 7ae5125

4.104.114.84.95
Last change on this file since 7ae5125 was 7ae5125, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 16, 2001 at 9:08:28 PM

2001-08-10 Radzislaw Galler <rgaller@…>

  • score/cpu_asm.c (sh_set_irq_priority): Changed interrupt vector number range check and handling of interrupt priority regs to conform SH2 specs.
  • sci/sci_termios.c: New file.
  • include/sci_termios.h: New file.
  • include/Makefile.am (EXTRA_DIST): Added sci_termios.h. (include_sh_HEADERS): Added sci_termios.h.
  • score/ispsh7045.c (isp): Calling an ISR with immediate argument casued negative sign extension for vector numbers of 128 and above. This was fixed.
  • sci/sci.c: Cleaned initialization of SCI registers; added necessary setup for new TERMIOS console cooperation
  • Property mode set to 100644
File size: 2.0 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#include <rtems/libio.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/*
35 * Devices are set to 9600 bps, 8 databits, 1 stopbit, no
36 * parity and asynchronous mode by default.
37 *
38 * NOTE:
39 *       The onboard serial devices of the SH do not support hardware
40 *       handshake.
41 */ 
42
43#define DEVSCI_DRIVER_TABLE_ENTRY \
44  { sh_sci_initialize, sh_sci_open, sh_sci_close, sh_sci_read, \
45      sh_sci_write, sh_sci_control }
46
47extern rtems_device_driver sh_sci_initialize(
48  rtems_device_major_number,
49  rtems_device_minor_number,
50  void *
51);
52
53extern rtems_device_driver sh_sci_open(
54  rtems_device_major_number,
55  rtems_device_minor_number,
56  void *
57);
58
59extern rtems_device_driver sh_sci_close(
60  rtems_device_major_number,
61  rtems_device_minor_number,
62  void *
63);
64
65extern rtems_device_driver sh_sci_read(
66  rtems_device_major_number,
67  rtems_device_minor_number,
68  void *
69);
70
71extern rtems_device_driver sh_sci_write(
72  rtems_device_major_number,
73  rtems_device_minor_number,
74  void *
75);
76
77extern rtems_device_driver sh_sci_control(
78  rtems_device_major_number,
79  rtems_device_minor_number,
80  void *
81);
82   
83extern const rtems_termios_callbacks * sh_sci_get_termios_handlers( 
84  rtems_boolean poll
85);
86   
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif
Note: See TracBrowser for help on using the repository browser.