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