From 9a3c35a942d76b0844d801be0572b4609eb70b56 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 30 Sep 2009 02:51:32 +0000 Subject: =?UTF-8?q?2009-09-30=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libcsupport/include/rtems/termiostypes.h: Include stdlib.h. Add rtems_termios_baud_t. Rename termios_number_to_baud into rtems_termios_number_to_baud, termios_baud_to_number into rtems_termios_baud_to_number, termios_baud_to_index into rtems_termios_baud_to_index. --- cpukit/libcsupport/include/rtems/termiostypes.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'cpukit/libcsupport/include/rtems/termiostypes.h') diff --git a/cpukit/libcsupport/include/rtems/termiostypes.h b/cpukit/libcsupport/include/rtems/termiostypes.h index 92cb2ec22f..ebba9ca9f7 100644 --- a/cpukit/libcsupport/include/rtems/termiostypes.h +++ b/cpukit/libcsupport/include/rtems/termiostypes.h @@ -20,6 +20,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -179,12 +180,17 @@ extern int rtems_termios_nlinesw; #define PPPDISC 5 /* PPP discipline */ #define MAXLDISC 8 +/* baudrate xxx integer type */ +typedef int32_t rtems_termios_baud_t; + /* convert xxx integer to equivalent Bxxx constant */ -int termios_number_to_baud(int baud); +int rtems_termios_number_to_baud(rtems_termios_baud_t baud); + /* convert Bxxx constant to xxx integer */ -int termios_baud_to_number(int termios_baud); +rtems_termios_baud_t rtems_termios_baud_to_number(int termios_baud); + /* convert Bxxx constant to index */ -int termios_baud_to_index(int termios_baud); +int rtems_termios_baud_to_index(rtems_termios_baud_t termios_baud); /* * This method is used by a driver to tell termios its @@ -194,7 +200,7 @@ int termios_baud_to_index(int termios_baud); */ int rtems_termios_set_initial_baud( struct rtems_termios_tty *ttyp, - int baud + rtems_termios_baud_t baud ); #ifdef __cplusplus -- cgit v1.2.3