Changes in uspace/srv/hid/input/port/chardev.c [f9b2cb4c:f81498d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/chardev.c
rf9b2cb4c rf81498d 47 47 48 48 static int chardev_port_init(kbd_dev_t *); 49 static void chardev_port_yield(void); 50 static void chardev_port_reclaim(void); 49 51 static void chardev_port_write(uint8_t data); 50 52 51 53 kbd_port_ops_t chardev_port = { 52 54 .init = chardev_port_init, 55 .yield = chardev_port_yield, 56 .reclaim = chardev_port_reclaim, 53 57 .write = chardev_port_write 54 58 }; … … 84 88 } 85 89 86 dev_sess = loc_service_connect( service_id, INTERFACE_DDF,90 dev_sess = loc_service_connect(EXCHANGE_ATOMIC, service_id, 87 91 IPC_FLAG_BLOCKING); 88 92 if (dev_sess == NULL) { … … 98 102 } 99 103 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); 104 106 async_exchange_end(exch); 105 107 … … 111 113 112 114 return 0; 115 } 116 117 static void chardev_port_yield(void) 118 { 119 } 120 121 static void chardev_port_reclaim(void) 122 { 113 123 } 114 124
Note:
See TracChangeset
for help on using the changeset viewer.