Ignore:
File:
1 edited

Legend:

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

    rf9b2cb4c rf81498d  
    4747
    4848static int chardev_port_init(kbd_dev_t *);
     49static void chardev_port_yield(void);
     50static void chardev_port_reclaim(void);
    4951static void chardev_port_write(uint8_t data);
    5052
    5153kbd_port_ops_t chardev_port = {
    5254        .init = chardev_port_init,
     55        .yield = chardev_port_yield,
     56        .reclaim = chardev_port_reclaim,
    5357        .write = chardev_port_write
    5458};
     
    8488        }
    8589       
    86         dev_sess = loc_service_connect(service_id, INTERFACE_DDF,
     90        dev_sess = loc_service_connect(EXCHANGE_ATOMIC, service_id,
    8791            IPC_FLAG_BLOCKING);
    8892        if (dev_sess == NULL) {
     
    98102        }
    99103       
    100         port_id_t port;
    101         rc = async_create_callback_port(exch, INTERFACE_CHAR_CB, 0, 0,
    102             kbd_port_events, NULL, &port);
    103        
     104        /* NB: The callback connection is slotted for removal */
     105        rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL);
    104106        async_exchange_end(exch);
    105107       
     
    111113       
    112114        return 0;
     115}
     116
     117static void chardev_port_yield(void)
     118{
     119}
     120
     121static void chardev_port_reclaim(void)
     122{
    113123}
    114124
Note: See TracChangeset for help on using the changeset viewer.