Changeset 4c53333 in mainline for uspace/srv/hid/input/port/adb.c
- Timestamp:
- 2013-07-11T08:21:10Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 64e63ce1
- Parents:
- 80445cf (diff), c8bb1633 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/adb.c
r80445cf r4c53333 37 37 #include <ipc/adb.h> 38 38 #include <async.h> 39 #include <input.h>40 #include <kbd_port.h>41 #include <kbd.h>42 39 #include <vfs/vfs.h> 43 40 #include <fcntl.h> 44 41 #include <errno.h> 45 42 #include <loc.h> 43 #include "../input.h" 44 #include "../kbd_port.h" 45 #include "../kbd.h" 46 46 47 47 static void kbd_port_events(ipc_callid_t iid, ipc_call_t *icall, void *arg); … … 65 65 static int adb_port_init(kbd_dev_t *kdev) 66 66 { 67 kbd_dev = kdev; 68 67 69 const char *dev = "adb/kbd"; 68 70 service_id_t service_id; 69 async_exch_t *exch; 70 int rc; 71 72 kbd_dev = kdev; 73 74 rc = loc_service_get_id(dev, &service_id, 0); 71 int rc = loc_service_get_id(dev, &service_id, 0); 75 72 if (rc != EOK) 76 73 return rc; … … 82 79 } 83 80 84 exch = async_exchange_begin(dev_sess);81 async_exch_t *exch = async_exchange_begin(dev_sess); 85 82 if (exch == NULL) { 86 83 printf("%s: Failed starting exchange with device\n", NAME); … … 89 86 } 90 87 91 /* NB: The callback connection is slotted for removal */92 88 rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL); 93 89 async_exchange_end(exch); … … 122 118 ipc_callid_t callid = async_get_call(&call); 123 119 124 int retval ;120 int retval = EOK; 125 121 126 122 if (!IPC_GET_IMETHOD(call)) {
Note:
See TracChangeset
for help on using the changeset viewer.