Ignore:
File:
1 edited

Legend:

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

    rf81498d rf9b2cb4c  
    4747
    4848static int chardev_port_init(kbd_dev_t *);
    49 static void chardev_port_yield(void);
    50 static void chardev_port_reclaim(void);
    5149static void chardev_port_write(uint8_t data);
    5250
    5351kbd_port_ops_t chardev_port = {
    5452        .init = chardev_port_init,
    55         .yield = chardev_port_yield,
    56         .reclaim = chardev_port_reclaim,
    5753        .write = chardev_port_write
    5854};
     
    8884        }
    8985       
    90         dev_sess = loc_service_connect(EXCHANGE_ATOMIC, service_id,
     86        dev_sess = loc_service_connect(service_id, INTERFACE_DDF,
    9187            IPC_FLAG_BLOCKING);
    9288        if (dev_sess == NULL) {
     
    10298        }
    10399       
    104         /* NB: The callback connection is slotted for removal */
    105         rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL);
     100        port_id_t port;
     101        rc = async_create_callback_port(exch, INTERFACE_CHAR_CB, 0, 0,
     102            kbd_port_events, NULL, &port);
     103       
    106104        async_exchange_end(exch);
    107105       
     
    113111       
    114112        return 0;
    115 }
    116 
    117 static void chardev_port_yield(void)
    118 {
    119 }
    120 
    121 static void chardev_port_reclaim(void)
    122 {
    123113}
    124114
Note: See TracChangeset for help on using the changeset viewer.