summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/shared/comm/uart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-13 21:21:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-13 21:21:31 +0000
commitda8ae79b3e66ab119dd7973bb42a36e8fee50ff8 (patch)
tree699dc5cff90363015cea2479055b5790dcfc4d08 /c/src/lib/libbsp/i386/shared/comm/uart.c
parentPatch rtems-19991203.sh2.diff from John M. Mills <jmills@tga.com> which (diff)
downloadrtems-da8ae79b3e66ab119dd7973bb42a36e8fee50ff8.tar.bz2
Warning removal patch from Philip A. Prindeville <philipp@zembu.com>.
Diffstat (limited to 'c/src/lib/libbsp/i386/shared/comm/uart.c')
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/uart.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.c b/c/src/lib/libbsp/i386/shared/comm/uart.c
index b3e3174b69..db87d08682 100644
--- a/c/src/lib/libbsp/i386/shared/comm/uart.c
+++ b/c/src/lib/libbsp/i386/shared/comm/uart.c
@@ -35,14 +35,11 @@ uread(int uart, unsigned int reg)
{
register unsigned char val;
- if(uart == 0)
- {
- i386_inport_byte(COM1_BASE_IO+reg, val);
- }
- else
- {
- i386_inport_byte(COM2_BASE_IO+reg, val);
- }
+ if (uart == 0) {
+ inport_byte(COM1_BASE_IO+reg, val);
+ } else {
+ inport_byte(COM2_BASE_IO+reg, val);
+ }
return val;
}
@@ -50,14 +47,11 @@ uread(int uart, unsigned int reg)
static inline void
uwrite(int uart, int reg, unsigned int val)
{
- if(uart == 0)
- {
- i386_outport_byte(COM1_BASE_IO+reg, val);
- }
- else
- {
- i386_outport_byte(COM2_BASE_IO+reg, val);
- }
+ if (uart == 0) {
+ outport_byte(COM1_BASE_IO+reg, val);
+ } else {
+ outport_byte(COM2_BASE_IO+reg, val);
+ }
}
#ifdef UARTDEBUG