Changeset 3ed964f9 in rtems


Ignore:
Timestamp:
Apr 9, 2010, 10:44:05 PM (10 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
7ffa1bae
Parents:
c193baad
Message:

adapt _write_ functions to new prototype

Location:
c/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    rc193baad r3ed964f9  
     12010-04-10      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * libchip/serial/serial.h, serial/mc68681.c, serial/mc68681_p.h,
     4        serial/ns16550.c, serial/ns16550_p.h, serial/serial.h,
     5        serial/z85c30.c, serial/z85c30_p.h: adapt _write_ functions to new
     6        prototype
     7
    182010-04-08      Joel Sherrill <joel.sherrilL@OARcorp.com>
    29
  • c/src/libchip/serial/mc68681.c

    rc193baad r3ed964f9  
    449449 */
    450450
    451 MC68681_STATIC int mc68681_write_support_int(
     451MC68681_STATIC ssize_t mc68681_write_support_int(
    452452  int         minor,
    453453  const char *buf,
    454   int         len
     454  size_t      len
    455455)
    456456{
     
    482482  rtems_interrupt_enable(Irql);
    483483
    484   return 1;
     484  return 0;
    485485}
    486486
     
    492492 */
    493493
    494 MC68681_STATIC int mc68681_write_support_polled(
     494MC68681_STATIC ssize_t mc68681_write_support_polled(
    495495  int         minor,
    496496  const char *buf,
    497   int         len
     497  size_t      len
    498498)
    499499{
  • c/src/libchip/serial/mc68681_p.h

    rc193baad r3ed964f9  
    280280MC68681_STATIC void mc68681_initialize_interrupts(int minor);
    281281
    282 MC68681_STATIC int mc68681_write_support_int(
     282MC68681_STATIC ssize_t mc68681_write_support_int(
    283283  int   minor,
    284284  const char *buf,
    285   int  len
    286 );
    287 
    288 MC68681_STATIC int mc68681_write_support_polled(
     285  size_t len
     286);
     287
     288MC68681_STATIC ssize_t mc68681_write_support_polled(
    289289  int   minor,
    290290  const char *buf,
    291   int   len
     291  size_t   len
    292292  );
    293293
  • c/src/libchip/serial/ns16550.c

    rc193baad r3ed964f9  
    532532 * Returns always zero.
    533533 */
    534 NS16550_STATIC int ns16550_write_support_int(
     534NS16550_STATIC ssize_t ns16550_write_support_int(
    535535  int minor,
    536536  const char *buf,
    537   int len
     537  size_t len
    538538)
    539539{
     
    660660 */
    661661
    662 NS16550_STATIC int ns16550_write_support_polled(
     662NS16550_STATIC ssize_t ns16550_write_support_polled(
    663663  int         minor,
    664664  const char *buf,
    665   int         len
     665  size_t      len
    666666)
    667667{
  • c/src/libchip/serial/ns16550_p.h

    rc193baad r3ed964f9  
    172172NS16550_STATIC void ns16550_initialize_interrupts(int minor);
    173173
    174 NS16550_STATIC int ns16550_write_support_int(
     174NS16550_STATIC ssize_t ns16550_write_support_int(
    175175  int   minor,
    176176  const char *buf,
    177   int  len
    178 );
    179 
    180 NS16550_STATIC int ns16550_write_support_polled(
     177  size_t len
     178);
     179
     180NS16550_STATIC ssize_t ns16550_write_support_polled(
    181181  int   minor,
    182182  const char *buf,
    183   int  len
     183  size_t len
    184184  );
    185185
  • c/src/libchip/serial/serial.h

    rc193baad r3ed964f9  
    3636  int     (*deviceLastClose)(int major, int minor, void *arg);
    3737  int     (*deviceRead)(int minor);
    38   int     (*deviceWrite)(int minor, const char *buf, int len);
     38  ssize_t (*deviceWrite)(int minor, const char *buf, size_t len);
    3939  void    (*deviceInitialize)(int minor);
    4040  void    (*deviceWritePolled)(int minor, char cChar);
  • c/src/libchip/serial/z85c30.c

    rc193baad r3ed964f9  
    744744 */
    745745
    746 Z85C30_STATIC int z85c30_write_support_int(
     746Z85C30_STATIC ssize_t z85c30_write_support_int(
    747747  int   minor,
    748748  const char *buf,
    749   int  len)
     749  size_t len)
    750750{
    751751  uint32_t       Irql;
     
    779779  rtems_interrupt_enable(Irql);
    780780
    781   return 1;
     781  return 0;
    782782}
    783783
     
    821821 */
    822822
    823 Z85C30_STATIC int z85c30_write_support_polled(
     823Z85C30_STATIC ssize_t z85c30_write_support_polled(
    824824  int   minor,
    825825  const char *buf,
    826   int  len)
     826  size_t len)
    827827{
    828828  int nwrite=0;
  • c/src/libchip/serial/z85c30_p.h

    rc193baad r3ed964f9  
    382382Z85C30_STATIC void z85c30_initialize_interrupts(int minor);
    383383
    384 Z85C30_STATIC int z85c30_write_support_int(
     384Z85C30_STATIC ssize_t z85c30_write_support_int(
    385385  int   minor,
    386386  const char *buf,
    387   int  len
    388 );
    389 
    390 Z85C30_STATIC int z85c30_write_support_polled(
     387  size_t len
     388);
     389
     390Z85C30_STATIC ssize_t z85c30_write_support_polled(
    391391  int   minor,
    392392  const char *buf,
    393   int  len
     393  size_t len
    394394);
    395395
Note: See TracChangeset for help on using the changeset viewer.