Ignore:
File:
1 edited

Legend:

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

    r0bd66f5 rfafb8e5  
    216216
    217217                uint8_t code = 0;
    218                 rc = chardev_read(kbd->chardev, &code, 1, &nread);
     218                rc = chardev_read(kbd->chardev, &code, 1, &nread, chardev_f_none);
    219219                if (rc != EOK)
    220220                        return EIO;
     
    229229                        map_size = sizeof(scanmap_e0) / sizeof(unsigned int);
    230230
    231                         rc = chardev_read(kbd->chardev, &code, 1, &nread);
     231                        rc = chardev_read(kbd->chardev, &code, 1, &nread,
     232                            chardev_f_none);
    232233                        if (rc != EOK)
    233234                                return EIO;
     
    236237
    237238                        if (code == 0x2a) {  /* Print Screen */
    238                                 rc = chardev_read(kbd->chardev, &code, 1, &nread);
     239                                rc = chardev_read(kbd->chardev, &code, 1, &nread,
     240                                    chardev_f_none);
    239241                                if (rc != EOK)
    240242                                        return EIO;
     
    243245                                        continue;
    244246
    245                                 rc = chardev_read(kbd->chardev, &code, 1, &nread);
     247                                rc = chardev_read(kbd->chardev, &code, 1, &nread,
     248                                    chardev_f_none);
    246249                                if (rc != EOK)
    247250                                        return EIO;
     
    254257
    255258                        if (code == 0x46) {  /* Break */
    256                                 rc = chardev_read(kbd->chardev, &code, 1, &nread);
     259                                rc = chardev_read(kbd->chardev, &code, 1, &nread,
     260                                    chardev_f_none);
    257261                                if (rc != EOK)
    258262                                        return EIO;
     
    261265                                        continue;
    262266
    263                                 rc = chardev_read(kbd->chardev, &code, 1, &nread);
     267                                rc = chardev_read(kbd->chardev, &code, 1, &nread,
     268                                    chardev_f_none);
    264269                                if (rc != EOK)
    265270                                        return EIO;
     
    274279                /* Extended special set */
    275280                if (code == KBD_SCANCODE_SET_EXTENDED_SPECIAL) {
    276                         rc = chardev_read(kbd->chardev, &code, 1, &nread);
     281                        rc = chardev_read(kbd->chardev, &code, 1, &nread,
     282                            chardev_f_none);
    277283                        if (rc != EOK)
    278284                                return EIO;
     
    281287                                continue;
    282288
    283                         rc = chardev_read(kbd->chardev, &code, 1, &nread);
     289                        rc = chardev_read(kbd->chardev, &code, 1, &nread,
     290                            chardev_f_none);
    284291                        if (rc != EOK)
    285292                                return EIO;
     
    288295                                continue;
    289296
    290                         rc = chardev_read(kbd->chardev, &code, 1, &nread);
     297                        rc = chardev_read(kbd->chardev, &code, 1, &nread,
     298                            chardev_f_none);
    291299                        if (rc != EOK)
    292300                                return EIO;
     
    295303                                continue;
    296304
    297                         rc = chardev_read(kbd->chardev, &code, 1, &nread);
     305                        rc = chardev_read(kbd->chardev, &code, 1, &nread,
     306                            chardev_f_none);
    298307                        if (rc != EOK)
    299308                                return EIO;
     
    302311                                continue;
    303312
    304                         rc = chardev_read(kbd->chardev, &code, 1, &nread);
     313                        rc = chardev_read(kbd->chardev, &code, 1, &nread,
     314                            chardev_f_none);
    305315                        if (rc != EOK)
    306316                                return EIO;
     
    334344static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall)
    335345{
    336         const sysarg_t method = IPC_GET_IMETHOD(*icall);
     346        const sysarg_t method = ipc_get_imethod(icall);
    337347        xt_kbd_t *kbd = ddf_dev_data_get(ddf_fun_get_dev(fun));
    338348        unsigned mods;
     
    345355                 * assume AT keyboard with Scan Code Set 1.
    346356                 */
    347                 mods = IPC_GET_ARG1(*icall);
     357                mods = ipc_get_arg1(icall);
    348358                const uint8_t status = 0 |
    349359                    ((mods & KM_CAPS_LOCK) ? LI_CAPS : 0) |
Note: See TracChangeset for help on using the changeset viewer.