Changeset 2b96463 in mainline for uspace/srv/hid


Ignore:
Timestamp:
2011-01-28T15:15:11Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3ee48f2, 7a51d75
Parents:
ef8d655 (diff), ae0300b5 (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.
Message:

Merge mainline changes

Location:
uspace/srv/hid
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/adb_mouse/adb_dev.c

    ref8d655 r2b96463  
    6868
    6969        /* NB: The callback connection is slotted for removal */
     70        sysarg_t taskhash;
    7071        sysarg_t phonehash;
    71         if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
     72        if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) {
    7273                printf(NAME ": Failed to create callback from device\n");
    7374                return false;
    7475        }
    7576
    76         async_new_connection(phonehash, 0, NULL, adb_dev_events);
     77        async_new_connection(taskhash, phonehash, 0, NULL, adb_dev_events);
    7778
    7879        return 0;
  • uspace/srv/hid/char_mouse/chardev.c

    ref8d655 r2b96463  
    7070
    7171        /* NB: The callback connection is slotted for removal */
     72        sysarg_t taskhash;
    7273        sysarg_t phonehash;
    73         if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
     74        if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) {
    7475                printf(NAME ": Failed to create callback from device\n");
    7576                return false;
    7677        }
    7778
    78         async_new_connection(phonehash, 0, NULL, chardev_events);
     79        async_new_connection(taskhash, phonehash, 0, NULL, chardev_events);
    7980
    8081        return 0;
  • uspace/srv/hid/console/console.c

    ref8d655 r2b96463  
    727727        /* NB: The callback connection is slotted for removal */
    728728        sysarg_t phonehash;
     729        sysarg_t taskhash;
    729730        int rc = async_req_3_5(phone, IPC_M_CONNECT_TO_ME, SERVICE_CONSOLE,
    730             0, 0, NULL, NULL, NULL, NULL, &phonehash);
     731            0, 0, NULL, NULL, NULL, &taskhash, &phonehash);
    731732        if (rc != EOK) {
    732733                printf(NAME ": Failed to create callback from input device\n");
     
    734735        }
    735736       
    736         async_new_connection(phonehash, 0, NULL, keyboard_events);
     737        async_new_connection(taskhash, phonehash, 0, NULL, keyboard_events);
    737738
    738739        printf(NAME ": we got a hit (new keyboard \"%s\").\n", path);
     
    784785        /* NB: The callback connection is slotted for removal */
    785786        sysarg_t phonehash;
     787        sysarg_t taskhash;
    786788        int rc = async_req_3_5(phone, IPC_M_CONNECT_TO_ME, SERVICE_CONSOLE,
    787             0, 0, NULL, NULL, NULL, NULL, &phonehash);
     789            0, 0, NULL, NULL, NULL, &taskhash, &phonehash);
    788790        if (rc != EOK) {
    789791                printf(NAME ": Failed to create callback from input device\n");
     
    791793        }
    792794
    793         async_new_connection(phonehash, 0, NULL, keyboard_events);
     795        async_new_connection(taskhash, phonehash, 0, NULL, keyboard_events);
    794796
    795797        printf(NAME ": we got a hit (new keyboard \"/dev/%s\").\n",
     
    862864        }
    863865       
     866        sysarg_t taskhash;
    864867        sysarg_t phonehash;
    865         if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) {
     868        if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, &taskhash,
     869            &phonehash) != 0) {
    866870                printf(NAME ": Failed to create callback from mouse device\n");
    867871                mouse_phone = -1;
     
    869873        }
    870874       
    871         async_new_connection(phonehash, 0, NULL, mouse_events);
     875        async_new_connection(taskhash, phonehash, 0, NULL, mouse_events);
    872876skip_mouse:
    873877       
  • uspace/srv/hid/fb/main.c

    ref8d655 r2b96463  
    114114                return -1;
    115115       
    116         sysarg_t phonead;
    117         if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, &phonead) != 0)
     116        if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, NULL, NULL) != 0)
    118117                return -1;
    119118       
  • uspace/srv/hid/kbd/port/adb.c

    ref8d655 r2b96463  
    7171
    7272        /* NB: The callback connection is slotted for removal */
     73        sysarg_t taskhash;
    7374        sysarg_t phonehash;
    74         if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
     75        if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) {
    7576                printf(NAME ": Failed to create callback from device\n");
    7677                return false;
    7778        }
    7879
    79         async_new_connection(phonehash, 0, NULL, kbd_port_events);
     80        async_new_connection(taskhash, phonehash, 0, NULL, kbd_port_events);
    8081
    8182        return 0;
  • uspace/srv/hid/kbd/port/chardev.c

    ref8d655 r2b96463  
    9191
    9292        /* NB: The callback connection is slotted for removal */
     93        sysarg_t taskhash;
    9394        sysarg_t phonehash;
    94         if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
     95        if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) {
    9596                printf(NAME ": Failed to create callback from device\n");
    9697                return -1;
    9798        }
    9899
    99         async_new_connection(phonehash, 0, NULL, kbd_port_events);
     100        async_new_connection(taskhash, phonehash, 0, NULL, kbd_port_events);
    100101
    101102        return 0;
Note: See TracChangeset for help on using the changeset viewer.