Changeset 2f79a38 in mainline for uspace/drv/char/ps2mouse/chardev.c
- Timestamp:
- 2012-01-04T00:45:06Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd87ae0
- Parents:
- 22e4e9b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ps2mouse/chardev.c
r22e4e9b r2f79a38 40 40 }; 41 41 42 s tatic ssize_t chardev_read_int(async_exch_t *exch, void *data, size_t size)42 ssize_t chardev_read(async_exch_t *exch, void *data, size_t size) 43 43 { 44 44 if (!exch) … … 55 55 } 56 56 57 s tatic ssize_t chardev_write_int(async_exch_t *exch, const void *data, size_t size)57 ssize_t chardev_write(async_exch_t *exch, const void *data, size_t size) 58 58 { 59 59 if (!exch) … … 67 67 message[0], message[1], message[2]); 68 68 } 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.