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