Changeset dd0c8a0 in mainline for uspace/drv/char/ps2mouse/ps2mouse.c
- Timestamp:
- 2013-09-29T06:56:33Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a9bd960d
- Parents:
- 3deb0155 (diff), 13be2583 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ps2mouse/ps2mouse.c
r3deb0155 rdd0c8a0 70 70 #define PS2_BUTTON_MASK(button) (1 << button) 71 71 72 #define MOUSE_READ_BYTE_TEST(sess, value ) \72 #define MOUSE_READ_BYTE_TEST(sess, value_) \ 73 73 do { \ 74 uint8_t value = (value_); \ 74 75 uint8_t data = 0; \ 75 76 const ssize_t size = chardev_read(sess, &data, 1); \ … … 78 79 return size < 0 ? size : EIO; \ 79 80 } \ 80 if (data != (value)) { \81 if (data != value) { \ 81 82 ddf_msg(LVL_DEBUG, "Failed testing byte: got %hhx vs. %hhx)", \ 82 data, (value)); \83 data, value); \ 83 84 return EIO; \ 84 85 } \ 85 86 } while (0) 86 87 87 #define MOUSE_WRITE_BYTE(sess, value ) \88 #define MOUSE_WRITE_BYTE(sess, value_) \ 88 89 do { \ 90 uint8_t value = (value_); \ 89 91 uint8_t data = (value); \ 90 92 const ssize_t size = chardev_write(sess, &data, 1); \
Note:
See TracChangeset
for help on using the changeset viewer.