Changeset 2f79a38 in mainline for uspace/drv/char/ps2mouse/chardev.c


Ignore:
Timestamp:
2012-01-04T00:45:06Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bd87ae0
Parents:
22e4e9b
Message:

ps2mouse: User exchange rather than session in chardev iface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/ps2mouse/chardev.c

    r22e4e9b r2f79a38  
    4040};
    4141
    42 static ssize_t chardev_read_int(async_exch_t *exch, void *data, size_t size)
     42ssize_t chardev_read(async_exch_t *exch, void *data, size_t size)
    4343{
    4444        if (!exch)
     
    5555}
    5656
    57 static ssize_t chardev_write_int(async_exch_t *exch, const void *data, size_t size)
     57ssize_t chardev_write(async_exch_t *exch, const void *data, size_t size)
    5858{
    5959        if (!exch)
     
    6767            message[0], message[1], message[2]);
    6868}
    69 
    70 
    71 ssize_t chardev_write(async_sess_t *sess, const void *data, size_t size)
    72 {
    73         async_exch_t *exch = async_exchange_begin(sess);
    74         const ssize_t ret = chardev_write_int(exch, data, size);
    75         async_exchange_end(exch);
    76         return ret;
    77 }
    78 
    79 ssize_t chardev_read(async_sess_t *sess, void *data, size_t size)
    80 {
    81         async_exch_t *exch = async_exchange_begin(sess);
    82         const ssize_t ret = chardev_read_int(exch, data, size);
    83         async_exchange_end(exch);
    84         return ret;
    85 }
Note: See TracChangeset for help on using the changeset viewer.