diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-16 21:50:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-16 21:50:01 +0000 |
commit | 3a5fec8fefe59cd53f0c0e6d260162b1819e92f6 (patch) | |
tree | 41e1bfdb85d37f98c05b5a00f28fc5fa3288516f /c/src/lib/libcpu/sh/sh7045/include/sci_termios.h | |
parent | 2001-08-01 Radzislaw Galler <rgaller@et.put.poznan.pl> (diff) | |
download | rtems-3a5fec8fefe59cd53f0c0e6d260162b1819e92f6.tar.bz2 |
2001-08-10 Radzislaw Galler <rgaller@et.put.poznan.pl>
* 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
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/sh/sh7045/include/sci_termios.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/sh/sh7045/include/sci_termios.h b/c/src/lib/libcpu/sh/sh7045/include/sci_termios.h new file mode 100644 index 0000000000..008e5e0f6f --- /dev/null +++ b/c/src/lib/libcpu/sh/sh7045/include/sci_termios.h @@ -0,0 +1,67 @@ +/* + * COPYRIGHT (c) 1989-2001. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + * + */ + +#ifndef _SH_SCI_TERMIOS_H_ +#define _SH_SCI_TERMIOS_H_ + +#ifdef __cplusplus +extern "C"{ +#endif + + +int sh_sci_set_attributes( + int minor, + const struct termios *t +); + +void sh_sci_initialize_interrupts(int minor); + +void sh_sci_init(int minor); + +int sh_sci_write_support_int( + int minor, + const char *buf, + int len +); + +int sh_sci_write_support_polled( + int minor, + const char *buf, + int len +); + +void sh_sci_write_polled( + int minor, + char c +); + +int sh_sci_inbyte_nonblocking_polled(int minor); + + +int sh_sci_first_open( + int major, + int minor, + void *arg +); + +int sh_sci_last_close( + int major, + int minor, + void *arg +); + +#ifdef __cplusplus +} +#endif + + +#endif /* _SH_SCI_TERMIOS_H_ */ |