Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/adb.c

    rf9b2cb4c rf81498d  
    4949
    5050static int adb_port_init(kbd_dev_t *);
    51 static void adb_port_write(uint8_t);
     51static void adb_port_yield(void);
     52static void adb_port_reclaim(void);
     53static void adb_port_write(uint8_t data);
    5254
    5355kbd_port_ops_t adb_port = {
    5456        .init = adb_port_init,
     57        .yield = adb_port_yield,
     58        .reclaim = adb_port_reclaim,
    5559        .write = adb_port_write
    5660};
     
    6973                return rc;
    7074       
    71         dev_sess = loc_service_connect(service_id, INTERFACE_DDF, 0);
     75        dev_sess = loc_service_connect(EXCHANGE_ATOMIC, service_id, 0);
    7276        if (dev_sess == NULL) {
    7377                printf("%s: Failed to connect to device\n", NAME);
     
    8286        }
    8387       
    84         port_id_t port;
    85         rc = async_create_callback_port(exch, INTERFACE_ADB_CB, 0, 0,
    86             kbd_port_events, NULL, &port);
    87        
     88        rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL);
    8889        async_exchange_end(exch);
    8990        if (rc != EOK) {
     
    9495       
    9596        return EOK;
     97}
     98
     99static void adb_port_yield(void)
     100{
     101}
     102
     103static void adb_port_reclaim(void)
     104{
    96105}
    97106
Note: See TracChangeset for help on using the changeset viewer.