diff options
Diffstat (limited to 'c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c')
-rw-r--r-- | c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c b/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c index af832cfdbd..4073f0ce5d 100644 --- a/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c +++ b/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c @@ -440,6 +440,8 @@ MG5UART_STATIC void mg5uart_write_polled( */ +extern void mips_default_isr(int vector); + #define __ISR(_TYPE, _OFFSET) \ MG5UART_STATIC void mg5uart_process_isr_ ## _TYPE ( \ int minor \ @@ -450,8 +452,7 @@ MG5UART_STATIC void mg5uart_write_polled( ) \ { \ int minor; \ - extern void mips_default_isr(int vector); \ - \ + \ for(minor=0 ; minor<Console_Port_Count ; minor++) { \ if( Console_Port_Tbl[minor].deviceType == SERIAL_MG5UART && \ 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) - - - MG5UART_STATIC void mg5uart_process_isr_rx_error( int minor, 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, const char *buf, - int len + size_t len ) { int nwrite = 0; |