source: rtems/c/src/lib/libcpu/sh/sh7045/include/sci_termios.h @ c8f3e82

Last change on this file since c8f3e82 was 3a5fec8, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 16, 2001 at 9:50:01 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: 1.0 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2001.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.OARcorp.com/rtems/license.html.
8 *
9 * $Id$
10 *
11 */
12
13#ifndef _SH_SCI_TERMIOS_H_
14#define _SH_SCI_TERMIOS_H_
15
16#ifdef __cplusplus
17extern "C"{
18#endif
19
20
21int sh_sci_set_attributes( 
22  int minor,
23  const struct termios *t
24);
25
26void sh_sci_initialize_interrupts(int minor);
27
28void sh_sci_init(int minor);
29   
30int sh_sci_write_support_int(
31    int         minor, 
32    const char *buf, 
33    int         len
34);
35   
36int sh_sci_write_support_polled(
37  int         minor,
38  const char *buf,
39  int         len
40);
41   
42void sh_sci_write_polled(
43    int minor,
44    char c
45);
46
47int sh_sci_inbyte_nonblocking_polled(int minor);
48   
49
50int sh_sci_first_open(
51  int major,
52  int minor,
53  void *arg
54);
55
56int sh_sci_last_close(
57  int major,
58  int minor,
59  void *arg
60);
61
62#ifdef __cplusplus
63}
64#endif
65
66
67#endif /* _SH_SCI_TERMIOS_H_ */
Note: See TracBrowser for help on using the repository browser.