summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c b/c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c
index e611b3bda8..76c1cb0314 100644
--- a/c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c
+++ b/c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c
@@ -74,7 +74,6 @@ static volatile m860BufferDescriptor_t *RxBd[NIFACES], *TxBd[NIFACES];
*/
static int m860_get_brg_cd(int);
unsigned char m860_get_brg_clk(int);
-void m860_console_reserve_resources(rtems_configuration_table *);
unsigned char m860_get_brg_clk(int);
@@ -102,8 +101,8 @@ m860_get_brg_cd (int baud)
/* at any time since the OS started. It needs to be fixed. FIXME */
unsigned char m860_get_brg_clk(int baud)
{
- static short brg_spd[4];
- static char brg_used[4];
+ static int brg_spd[4];
+ static char brg_used[4];
int i;
/* first try to find a BRG that is already at the right speed */
@@ -385,8 +384,8 @@ m860_smc_initialize (int port) /* port is the SMC number (i.e. 1 or 2) */
/*
* Put SMC in NMSI mode, connect SMC to BRG
*/
- m860.simode &= ~0x7000 << ((port-1) * 8);
- m860.simode |= brg << (12 + ((port-1) * 8));
+ m860.simode &= ~(0x7000 << ((port-1) * 16));
+ m860.simode |= brg << (12 + ((port-1) * 16));
/*
* Set up SMC1 parameter RAM common to all protocols
@@ -770,14 +769,6 @@ m860_buf_poll_write (int minor, char *buf, int len)
return 0;
}
-/*
- * This is needed in case we use TERMIOS
- */
-void m860_console_reserve_resources(rtems_configuration_table *configuration)
-{
- rtems_termios_reserve_resources (configuration, 1);
-}
-
void m860_console_initialize(void)
{
int i;