Changeset 2daa19f in rtems


Ignore:
Timestamp:
Apr 12, 2010, 4:34:31 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
4d0771e
Parents:
5da993c0
Message:

Reflect termios API changes.

Location:
c/src/lib/libbsp/i386
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/console/console.c

    r5da993c0 r2daa19f  
    117117extern int  rtems_kbpoll( void );
    118118
    119 static int
    120 ibmpc_console_write(int minor, const char *buf, int len)
    121 {
    122   int count;
     119static ssize_t
     120ibmpc_console_write(int minor, const char *buf, size_t len)
     121{
     122  size_t count;
    123123  for (count = 0; count < len; count++)
    124124  {
     
    127127      _IBMPC_outch( '\r' );            /* LF = LF + CR */
    128128  }
    129   return 0;
     129  return count;
    130130}
    131131
  • c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c

    r5da993c0 r2daa19f  
    589589 * It does nothing write now.
    590590 */
    591 static int write_aux_echo( int minor, const char * buffer, int count )
     591static ssize_t write_aux_echo( int minor, const char * buffer, size_t count )
    592592{
    593593   return 0;
  • c/src/lib/libbsp/i386/shared/comm/uart.c

    r5da993c0 r2daa19f  
    572572}
    573573
    574 int
    575 BSP_uart_termios_write_com1(int minor, const char *buf, int len)
     574ssize_t
     575BSP_uart_termios_write_com1(int minor, const char *buf, size_t len)
    576576{
    577577  assert(buf != NULL);
     
    603603  }
    604604
    605   return 0;
    606 }
    607 
    608 int
    609 BSP_uart_termios_write_com2(int minor, const char *buf, int len)
     605  return 1;
     606}
     607
     608ssize_t
     609BSP_uart_termios_write_com2(int minor, const char *buf, size_t len)
    610610{
    611611  assert(buf != NULL);
     
    637637  }
    638638
    639   return 0;
     639  return 1;
    640640}
    641641
  • c/src/lib/libbsp/i386/shared/comm/uart.h

    r5da993c0 r2daa19f  
    2525int  BSP_uart_termios_read_com1(int uart);
    2626int  BSP_uart_termios_read_com2(int uart);
    27 int  BSP_uart_termios_write_com1(int minor, const char *buf, int len);
    28 int  BSP_uart_termios_write_com2(int minor, const char *buf, int len);
     27ssize_t BSP_uart_termios_write_com1(int minor, const char *buf, size_t len);
     28ssize_t BSP_uart_termios_write_com2(int minor, const char *buf, size_t len);
    2929void BSP_uart_termios_isr_com1();
    3030void BSP_uart_termios_isr_com2();
Note: See TracChangeset for help on using the changeset viewer.