Ignore:
File:
1 edited

Legend:

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

    rf81498d rf9b2cb4c  
    4949
    5050static int adb_port_init(kbd_dev_t *);
    51 static void adb_port_yield(void);
    52 static void adb_port_reclaim(void);
    53 static void adb_port_write(uint8_t data);
     51static void adb_port_write(uint8_t);
    5452
    5553kbd_port_ops_t adb_port = {
    5654        .init = adb_port_init,
    57         .yield = adb_port_yield,
    58         .reclaim = adb_port_reclaim,
    5955        .write = adb_port_write
    6056};
     
    7369                return rc;
    7470       
    75         dev_sess = loc_service_connect(EXCHANGE_ATOMIC, service_id, 0);
     71        dev_sess = loc_service_connect(service_id, INTERFACE_DDF, 0);
    7672        if (dev_sess == NULL) {
    7773                printf("%s: Failed to connect to device\n", NAME);
     
    8682        }
    8783       
    88         rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL);
     84        port_id_t port;
     85        rc = async_create_callback_port(exch, INTERFACE_ADB_CB, 0, 0,
     86            kbd_port_events, NULL, &port);
     87       
    8988        async_exchange_end(exch);
    9089        if (rc != EOK) {
     
    9594       
    9695        return EOK;
    97 }
    98 
    99 static void adb_port_yield(void)
    100 {
    101 }
    102 
    103 static void adb_port_reclaim(void)
    104 {
    10596}
    10697
Note: See TracChangeset for help on using the changeset viewer.