Changes in uspace/srv/hid/input/port/adb.c [f9b2cb4c:f81498d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/adb.c
rf9b2cb4c rf81498d 49 49 50 50 static int adb_port_init(kbd_dev_t *); 51 static void adb_port_write(uint8_t); 51 static void adb_port_yield(void); 52 static void adb_port_reclaim(void); 53 static void adb_port_write(uint8_t data); 52 54 53 55 kbd_port_ops_t adb_port = { 54 56 .init = adb_port_init, 57 .yield = adb_port_yield, 58 .reclaim = adb_port_reclaim, 55 59 .write = adb_port_write 56 60 }; … … 69 73 return rc; 70 74 71 dev_sess = loc_service_connect( service_id, INTERFACE_DDF, 0);75 dev_sess = loc_service_connect(EXCHANGE_ATOMIC, service_id, 0); 72 76 if (dev_sess == NULL) { 73 77 printf("%s: Failed to connect to device\n", NAME); … … 82 86 } 83 87 84 port_id_t port; 85 rc = async_create_callback_port(exch, INTERFACE_ADB_CB, 0, 0, 86 kbd_port_events, NULL, &port); 87 88 rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL); 88 89 async_exchange_end(exch); 89 90 if (rc != EOK) { … … 94 95 95 96 return EOK; 97 } 98 99 static void adb_port_yield(void) 100 { 101 } 102 103 static void adb_port_reclaim(void) 104 { 96 105 } 97 106
Note:
See TracChangeset
for help on using the changeset viewer.