From 7ec9bd5917d71f594da5890bc35aaec07352d5c1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 15 Oct 2014 09:31:41 -0500 Subject: mpc8260 libcpu and mpc6260ads BSP: Fix warnings --- .../libbsp/powerpc/mpc8260ads/console/console.c | 28 ++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/mpc8260ads/console') diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c b/c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c index a6497aa0f4..9a020c82fe 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/console/console.c @@ -1,6 +1,4 @@ /* - * console.c - * * This file contains the MBX8xx termios serial I/O package. * Only asynchronous I/O is supported. * @@ -14,6 +12,16 @@ * SCC3 /dev/tty3 4 * SCC4 /dev/tty4 5 * + * The SCCs and SMCs on the eval board are assigned as follows + * + * Channel Device Minor Termios + * SMC1 /dev/tty3 4 no + * SMC2 /dev/tty4 5 no + * SCC1 /dev/tty0 0 no + * SCC2 /dev/console 1 yes + * SCC3 /dev/tty1 2 no * USED FOR NETWORK I/F + * SCC4 /dev/tty2 3 no * USED FOR NETWORK I/F + * * All ports support termios. The use of termios is recommended for real-time * applications. Termios provides buffering and input processing. When not * using termios, processing is limited to the substitution of LF for CR on @@ -64,7 +72,9 @@ * the sub-devices using minor device numbers. It is not possible to have * other protocols running on the other ports when this driver is used as * currently written. - * + */ + +/* * Based on code (alloc860.c in eth_comm port) by * Jay Monkman (jmonkman@frasca.com), * Copyright (C) 1998 by Frasca International, Inc. @@ -75,17 +85,6 @@ * * Modifications by Andy Dachs for MPC8260 * support. - * - * The SCCs and SMCs on the eval board are assigned as follows - * - * Channel Device Minor Termios - * SMC1 /dev/tty3 4 no - * SMC2 /dev/tty4 5 no - * SCC1 /dev/tty0 0 no - * SCC2 /dev/console 1 yes - * SCC3 /dev/tty1 2 no * USED FOR NETWORK I/F - * SCC4 /dev/tty2 3 no * USED FOR NETWORK I/F - * */ #include #include @@ -451,7 +450,6 @@ rtems_device_driver console_control( /* * Support routine for console-generic */ - int mbx8xx_console_get_configuration(void) { #if UARTS_IO_MODE == 1 -- cgit v1.2.3