source: rtems/c/src/lib/libcpu/sh/sh7032/include/sci.h @ 59e73f37

4.104.114.84.95
Last change on this file since 59e73f37 was 4a238002, checked in by Joel Sherrill <joel.sherrill@…>, on 11/18/99 at 21:22:58

Patch from "John M. Mills" <jmills@…> with subsequent cleanup from
Ralf Corsepius <corsepiu@…> that adds initial Hitachi SH-2
support to RTEMS. Ralf's comments are:

Changes:
------

  1. SH-Port:
  • Many files renamed.
  • CONSOLE_DEVNAME and MHZ defines removed from libcpu.
  • console.c moved to libbsp/sh/shared, build in libbsp/sh/<BSP>/console applying VPATH.
  • CONSOLE_DEVNAME made BSP-specific, replacement is defined in bsp.h
  • MHZ define replaced with HZ (extendent resolution) in custom/*.cfg
  • -DHZ=HZ used in bspstart.c, only
  • Makefile variable HZ used in bsp-dependent directories only.
  1. SH1-Port
  • clock-driver rewritten to provide better resolution for odd CPU frequencies. This driver is only partially tested on hardware, ie. sightly experimental, but I don't expect severe problems with it.
  • Polling SCI-driver added. This driver is experimental and completly untested yet. Therefore it is not yet used for the console (/dev/console is still pointing to /dev/null, cf. gensh1/bsp.h).
  • minor changes to the timer driver
  • SH1 specific delay()/CPU_delay() now is implemented as a function
  1. SH2-Port
  • Merged
  • IMO, the code is still in its infancy. Therefore I have interspersed comments (FIXME) it for items which I think John should look after.
  • sci and console drivers partially rewritten and extended (John, I hope you don't mind).
  • Copyright notices are not yet adapted
  • Property mode set to 100644
File size: 1.8 KB
Line 
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 *  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.