forked from Imagelibrary/rtems
2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/serial/z85c30.c, libchip/serial/ns16550.c, libchip/serial/mc68681.c: Reflect termios_baud_to_number having been renamed to rtems_termios_baud_to_number.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libchip/serial/z85c30.c, libchip/serial/ns16550.c,
|
||||||
|
libchip/serial/mc68681.c: Reflect termios_baud_to_number having been
|
||||||
|
renamed to rtems_termios_baud_to_number.
|
||||||
|
|
||||||
2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libchip/serial/sersupp.h: Remove termios_baud_to_index,
|
* libchip/serial/sersupp.h: Remove termios_baud_to_index,
|
||||||
|
|||||||
@@ -590,7 +590,7 @@ MC68681_STATIC int mc68681_baud_rate(
|
|||||||
if (!baud_requested)
|
if (!baud_requested)
|
||||||
baud_requested = B9600; /* default to 9600 baud */
|
baud_requested = B9600; /* default to 9600 baud */
|
||||||
|
|
||||||
baud_requested = termios_baud_to_index( baud_requested );
|
baud_requested = rtems_termios_baud_to_index( baud_requested );
|
||||||
|
|
||||||
baud_tbl = (mc68681_baud_table_t *) Console_Port_Tbl[minor].ulClock;
|
baud_tbl = (mc68681_baud_table_t *) Console_Port_Tbl[minor].ulClock;
|
||||||
if (!baud_tbl)
|
if (!baud_tbl)
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ NS16550_STATIC int ns16550_open(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set initial baud */
|
/* Set initial baud */
|
||||||
rtems_termios_set_initial_baud( tty, (int) c->pDeviceParams);
|
rtems_termios_set_initial_baud( tty, (int32_t) c->pDeviceParams);
|
||||||
|
|
||||||
return RTEMS_SUCCESSFUL;
|
return RTEMS_SUCCESSFUL;
|
||||||
}
|
}
|
||||||
@@ -397,7 +397,7 @@ NS16550_STATIC int ns16550_set_attributes(
|
|||||||
|
|
||||||
ulBaudDivisor = NS16550_Baud(
|
ulBaudDivisor = NS16550_Baud(
|
||||||
(uint32_t) Console_Port_Tbl[minor].ulClock,
|
(uint32_t) Console_Port_Tbl[minor].ulClock,
|
||||||
termios_baud_to_number(baud_requested)
|
rtems_termios_baud_to_number(baud_requested)
|
||||||
);
|
);
|
||||||
|
|
||||||
ucLineControl = 0;
|
ucLineControl = 0;
|
||||||
@@ -474,7 +474,6 @@ NS16550_STATIC void ns16550_process( int minor)
|
|||||||
ns16550_context *ctx = d->pDeviceContext;
|
ns16550_context *ctx = d->pDeviceContext;
|
||||||
uint32_t port = c->ulCtrlPort1;
|
uint32_t port = c->ulCtrlPort1;
|
||||||
getRegister_f get = c->getRegister;
|
getRegister_f get = c->getRegister;
|
||||||
setRegister_f set = c->setRegister;
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
char buf [SP_FIFO_SIZE];
|
char buf [SP_FIFO_SIZE];
|
||||||
|
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ Z85C30_STATIC int z85c30_set_attributes(
|
|||||||
|
|
||||||
ulBaudDivisor = Z85C30_Baud(
|
ulBaudDivisor = Z85C30_Baud(
|
||||||
(uint32_t) Console_Port_Tbl[minor].ulClock,
|
(uint32_t) Console_Port_Tbl[minor].ulClock,
|
||||||
(uint32_t) termios_baud_to_number( baud_requested )
|
(uint32_t) rtems_termios_baud_to_number( baud_requested )
|
||||||
);
|
);
|
||||||
|
|
||||||
wr3 = SCC_WR3_RX_EN;
|
wr3 = SCC_WR3_RX_EN;
|
||||||
|
|||||||
Reference in New Issue
Block a user