RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
sh
gensh2
include
sh
sci_termios.h
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
3
/*
4
* COPYRIGHT (c) 1989-2001.
5
* On-Line Applications Research Corporation (OAR).
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
9
* are met:
10
* 1. Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
* 2. Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26
* POSSIBILITY OF SUCH DAMAGE.
27
*
28
*/
29
30
#ifndef _SH_SCI_TERMIOS_H_
31
#define _SH_SCI_TERMIOS_H_
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
38
int
sh_sci_set_attributes(
39
int
minor,
40
const
struct
termios *t
41
);
42
43
void
sh_sci_initialize_interrupts(
int
minor);
44
45
void
sh_sci_init(
int
minor);
46
47
ssize_t sh_sci_write_support_int(
48
int
minor,
49
const
char
*buf,
50
size_t
len
51
);
52
53
ssize_t sh_sci_write_support_polled(
54
int
minor,
55
const
char
*buf,
56
size_t
len
57
);
58
59
void
sh_sci_write_polled(
60
int
minor,
61
char
c
62
);
63
64
int
sh_sci_inbyte_nonblocking_polled(
int
minor);
65
66
67
int
sh_sci_first_open(
68
int
major,
69
int
minor,
70
void
*arg
71
);
72
73
int
sh_sci_last_close(
74
int
major,
75
int
minor,
76
void
*arg
77
);
78
79
#ifdef __cplusplus
80
}
81
#endif
82
83
84
#endif
/* _SH_SCI_TERMIOS_H_ */
Generated by
1.18.0