Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/ps2mouse/ps2mouse.c

    rb7fd2a0 rdd8ab1c  
    7777        uint8_t data = 0; \
    7878        size_t nread; \
    79         const errno_t rc = chardev_read((mouse)->chardev, &data, 1, &nread); \
     79        const int rc = chardev_read((mouse)->chardev, &data, 1, &nread); \
    8080        if (rc != EOK) { \
    8181                ddf_msg(LVL_ERROR, "Failed reading byte: %s", str_error_name(rc));\
     
    9494        uint8_t data = (value); \
    9595        size_t nwr; \
    96         const errno_t rc = chardev_write((mouse)->chardev, &data, 1, &nwr); \
     96        const int rc = chardev_write((mouse)->chardev, &data, 1, &nwr); \
    9797        if (rc != EOK) { \
    9898                ddf_msg(LVL_ERROR, "Failed writing byte: %s", str_error_name(rc)); \
     
    101101} while (0)
    102102
    103 static errno_t polling_ps2(void *);
    104 static errno_t polling_intellimouse(void *);
    105 static errno_t probe_intellimouse(ps2_mouse_t *, bool);
     103static int polling_ps2(void *);
     104static int polling_intellimouse(void *);
     105static int probe_intellimouse(ps2_mouse_t *, bool);
    106106static void default_connection_handler(ddf_fun_t *, ipc_callid_t, ipc_call_t *);
    107107
     
    120120 * @return EOK on success or non-zero error code
    121121 */
    122 errno_t ps2_mouse_init(ps2_mouse_t *mouse, ddf_dev_t *dev)
     122int ps2_mouse_init(ps2_mouse_t *mouse, ddf_dev_t *dev)
    123123{
    124124        async_sess_t *parent_sess;
    125125        bool bound = false;
    126         errno_t rc;
     126        int rc;
    127127
    128128        mouse->client_sess = NULL;
     
    165165
    166166        /* Probe IntelliMouse extensions. */
    167         errno_t (*polling_f)(void*) = polling_ps2;
     167        int (*polling_f)(void*) = polling_ps2;
    168168        if (probe_intellimouse(mouse, false) == EOK) {
    169169                ddf_msg(LVL_NOTE, "Enabled IntelliMouse extensions");
     
    223223 * @return EOK on success or non-zero error code
    224224 */
    225 static errno_t ps2_mouse_read_packet(ps2_mouse_t *mouse, void *pbuf, size_t psize)
    226 {
    227         errno_t rc;
     225static int ps2_mouse_read_packet(ps2_mouse_t *mouse, void *pbuf, size_t psize)
     226{
     227        int rc;
    228228        size_t pos;
    229229        size_t nread;
     
    248248 * @return Never.
    249249 */
    250 errno_t polling_ps2(void *arg)
     250int polling_ps2(void *arg)
    251251{
    252252        ps2_mouse_t *mouse = (ps2_mouse_t *) arg;
    253         errno_t rc;
     253        int rc;
    254254
    255255        bool buttons[PS2_BUTTON_COUNT] = {};
     
    300300 * @return Never.
    301301 */
    302 static errno_t polling_intellimouse(void *arg)
     302static int polling_intellimouse(void *arg)
    303303{
    304304        ps2_mouse_t *mouse = (ps2_mouse_t *) arg;
    305         errno_t rc;
     305        int rc;
    306306
    307307        bool buttons[INTELLIMOUSE_BUTTON_COUNT] = {};
     
    373373 * See http://www.computer-engineering.org/ps2mouse/ for details.
    374374 */
    375 static errno_t probe_intellimouse(ps2_mouse_t *mouse, bool buttons)
     375static int probe_intellimouse(ps2_mouse_t *mouse, bool buttons)
    376376{
    377377        MOUSE_WRITE_BYTE(mouse, PS2_MOUSE_SET_SAMPLE_RATE);
Note: See TracChangeset for help on using the changeset viewer.