forked from Imagelibrary/rtems
2010-04-28 Joel Sherrill <joel.sherrilL@OARcorp.com>
* mongoosev/duart/mg5uart.c: Remove warnings.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2010-04-28 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||||
|
|
||||||
|
* mongoosev/duart/mg5uart.c: Remove warnings.
|
||||||
|
|
||||||
2009-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2009-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* Makefile.am: Add shared/interrupts/isr_entries.h.
|
* Makefile.am: Add shared/interrupts/isr_entries.h.
|
||||||
|
|||||||
@@ -440,6 +440,8 @@ MG5UART_STATIC void mg5uart_write_polled(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
extern void mips_default_isr(int vector);
|
||||||
|
|
||||||
#define __ISR(_TYPE, _OFFSET) \
|
#define __ISR(_TYPE, _OFFSET) \
|
||||||
MG5UART_STATIC void mg5uart_process_isr_ ## _TYPE ( \
|
MG5UART_STATIC void mg5uart_process_isr_ ## _TYPE ( \
|
||||||
int minor \
|
int minor \
|
||||||
@@ -450,8 +452,7 @@ MG5UART_STATIC void mg5uart_write_polled(
|
|||||||
) \
|
) \
|
||||||
{ \
|
{ \
|
||||||
int minor; \
|
int minor; \
|
||||||
extern void mips_default_isr(int vector); \
|
\
|
||||||
\
|
|
||||||
for(minor=0 ; minor<Console_Port_Count ; minor++) { \
|
for(minor=0 ; minor<Console_Port_Count ; minor++) { \
|
||||||
if( Console_Port_Tbl[minor].deviceType == SERIAL_MG5UART && \
|
if( Console_Port_Tbl[minor].deviceType == SERIAL_MG5UART && \
|
||||||
vector == Console_Port_Tbl[minor].ulIntVector + _OFFSET ) { \
|
vector == Console_Port_Tbl[minor].ulIntVector + _OFFSET ) { \
|
||||||
@@ -469,9 +470,6 @@ __ISR(tx_ready, MG5UART_IRQ_TX_READY)
|
|||||||
__ISR(rx_ready, MG5UART_IRQ_RX_READY)
|
__ISR(rx_ready, MG5UART_IRQ_RX_READY)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
MG5UART_STATIC void mg5uart_process_isr_rx_error(
|
MG5UART_STATIC void mg5uart_process_isr_rx_error(
|
||||||
int minor,
|
int minor,
|
||||||
uint32_t mask
|
uint32_t mask
|
||||||
@@ -679,10 +677,10 @@ MG5UART_STATIC int mg5uart_write_support_int(
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
MG5UART_STATIC int mg5uart_write_support_polled(
|
MG5UART_STATIC ssize_t mg5uart_write_support_polled(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int nwrite = 0;
|
int nwrite = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user